Skip to content

Commit

Permalink
Utilises laravel component
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed May 6, 2024
1 parent df0b30d commit 07ed649
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Domain/PackageAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\Enum\ViolationStatus;
use App\Exceptions\NonExistentPackageDirectory;
use App\Exceptions\NonExistentStepId;
use Illuminate\Support\Arr;
use Symfony\Component\Finder\Finder;

class PackageAnalyser
Expand Down Expand Up @@ -49,11 +50,8 @@ public function __construct(string $directoryToAnalyse)
['id' => 'cli-phar', 'summary' => 'Distribute CLI/TUI binaries via PHAR.', 'status' => ViolationStatus::Irrelevant],
['id' => 'composer-scripts', 'summary' => 'Utilise Composer scripts.', 'status' => ViolationStatus::False],
];
$this->stepIds = [];

foreach ($this->steps as $step) {
$this->stepIds[] = $step['id'];
}
$this->stepIds = Arr::pluck($this->steps, 'id');
}

/**
Expand Down

0 comments on commit 07ed649

Please sign in to comment.