Skip to content

Commit

Permalink
Apply StyleCI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmazter committed Aug 6, 2020
1 parent 887e7df commit 9577615
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/ScheduleEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

namespace Hmazter\LaravelScheduleList;

use Illuminate\Console\Parser;
use Cron\CronExpression;
use Illuminate\Console\Parser;
use Illuminate\Support\Carbon;

class ScheduleEvent
Expand Down Expand Up @@ -97,11 +97,15 @@ public function getShortCommand(): string
{
$command = $this->getFullCommand();
$command = substr($command, 0, strpos($command, '>'));
$command = trim(str_replace(
config('schedule-list.remove_strings_from_command', [
"'".PHP_BINARY."'",
"'artisan'",
]), '', $command)
$command = trim(
str_replace(
config('schedule-list.remove_strings_from_command', [
"'" . PHP_BINARY . "'",
"'artisan'",
]),
'',
$command
)
);

return $command;
Expand Down

0 comments on commit 9577615

Please sign in to comment.