src/Commands/CheckAll.php 1 location
|
@@ 44-46 (lines=3) @@
|
41 |
|
$this->finishCommand($errorPrinter); |
42 |
|
$errorPrinter->printer->writeln('time: '.round(microtime(true) - $t1, 2).' (sec)', 2); |
43 |
|
|
44 |
|
if (random_int(1, 5) == 2 && Str::startsWith(request()->server('argv')[1] ?? '', 'check:al')) { |
45 |
|
ErrorPrinter::thanks($this); |
46 |
|
} |
47 |
|
|
48 |
|
return $errorPrinter->hasErrors() ? 1 : 0; |
49 |
|
} |
src/Commands/CheckImports.php 1 location
|
@@ 50-52 (lines=3) @@
|
47 |
|
|
48 |
|
$errorPrinter->printTime(); |
49 |
|
|
50 |
|
if (random_int(1, 7) == 2 && Str::startsWith(request()->server('argv')[1] ?? '', 'check:im')) { |
51 |
|
ErrorPrinter::thanks($this); |
52 |
|
} |
53 |
|
|
54 |
|
return $errorPrinter->hasErrors() ? 1 : 0; |
55 |
|
} |