Skip to content

Commit

Permalink
prep
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Oct 28, 2024
1 parent e8af181 commit 9020670
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 119 deletions.
2 changes: 1 addition & 1 deletion app/Concerns/Enums/HasLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait HasLabel
{
protected function labelKeyPrefix(): ?string
{
return 'vulnerability.label';
return null;
}

public function label(): string
Expand Down
2 changes: 1 addition & 1 deletion app/Imports/VulnerabilitiesImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class VulnerabilitiesImport implements ToCollection, WithHeadingRow
{
public function collection(Collection $rows): void
{
if ($rows->first()->count() === 2) {
if ($rows->first()?->count() === 2) {
VulnerabilityCategory::upsert($rows->toArray(), 'id');
} else {
Vulnerability::upsert(
Expand Down
117 changes: 0 additions & 117 deletions lang/ro/vulnerability.php

This file was deleted.

0 comments on commit 9020670

Please sign in to comment.