Skip to content

Commit

Permalink
Merge branch 'master' into v2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
peppeocchi committed Sep 19, 2017
2 parents f8374af + a6e4430 commit 9d55b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ If you don't call any of this method, the job will run every minute (* * * * *).
```php
$scheduler->php('script.php')->everyMinute();
```
- `hourly` - Run once per hour. You can optionally pass the `$minute` you want to run, bu default it will run every hour at minute '00'.
- `hourly` - Run once per hour. You can optionally pass the `$minute` you want to run, by default it will run every hour at minute '00'.
```php
$scheduler->php('script.php')->hourly();
$scheduler->php('script.php')->hourly(53);
Expand Down
2 changes: 1 addition & 1 deletion src/GO/Scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function call(callable $fn, $args = [], $id = null)
public function php($script, $bin = null, $args = [], $id = null)
{
$bin = $bin !== null && is_string($bin) && file_exists($bin) ?
$bin : PHP_BINARY === '' ? '/usr/bin/php' : PHP_BINARY;
$bin : (PHP_BINARY === '' ? '/usr/bin/php' : PHP_BINARY);

$job = new Job($bin . ' ' . $script, $args, $id);

Expand Down

0 comments on commit 9d55b27

Please sign in to comment.