@@ -22,8 +22,9 @@ discard block |
||
| 22 | 22 | { |
| 23 | 23 | foreach(self::$CRON_ARRAY as $cron => $frequency) |
| 24 | 24 | { |
| 25 | - if(!$this->time_to_run($frequency)) |
|
| 26 | - continue; |
|
| 25 | + if(!$this->time_to_run($frequency)) {
|
|
| 26 | + continue; |
|
| 27 | + } |
|
| 27 | 28 | |
| 28 | 29 | Loader::load('utility', "cron/{$cron}"); |
| 29 | 30 | $reflection = new ReflectionClass($cron); |
@@ -48,18 +49,21 @@ discard block |
||
| 48 | 49 | |
| 49 | 50 | foreach($time as $key => $value) |
| 50 | 51 | { |
| 51 | - if($value == '*') |
|
| 52 | - continue; |
|
| 52 | + if($value == '*') {
|
|
| 53 | + continue; |
|
| 54 | + } |
|
| 53 | 55 | if(stristr($value, '/')) |
| 54 | 56 | { |
| 55 | 57 | $value = substr($value, 2); |
| 56 | - if($cur[$key] % $value == 0) |
|
| 57 | - continue; |
|
| 58 | - else |
|
| 59 | - return; |
|
| 58 | + if($cur[$key] % $value == 0) {
|
|
| 59 | + continue; |
|
| 60 | + } else {
|
|
| 61 | + return; |
|
| 62 | + } |
|
| 60 | 63 | } |
| 61 | - if($cur[$key] == $value) |
|
| 62 | - continue; |
|
| 64 | + if($cur[$key] == $value) {
|
|
| 65 | + continue; |
|
| 66 | + } |
|
| 63 | 67 | return; |
| 64 | 68 | } |
| 65 | 69 | return true; |