for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Traits\Seeds;
trait SeedingProgressBar
{
public function run()
$seeders = $this->seeders;
$this->command->info('Seeding ' . __CLASS__ . '...');
$this->command->getOutput()->progressStart(count($seeders));
foreach ($seeders as $class => $is_class) {
if ($is_class) {
$this->call($class, true);
call()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
call($class, true);
} else {
$method = $class;
$this->$method();
}
$this->command->getOutput()->progressAdvance();
$this->command->getOutput()->progressFinish();