@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $count = $cron->clearCronLog($this->getTimePeriod()); |
| 50 | 50 | |
| 51 | 51 | if ($cron->asa(TCronModule::SHELL_LOG_BEHAVIOR)) { |
| 52 | - $cron->getOutputWriter()->writeLine("Cleared {$count} Cron Task Logs", TShellWriter::GREEN); |
|
| 52 | + $cron->getOutputWriter()->writeLine("cleared {$count} Cron Task Logs", TShellWriter::GREEN); |
|
| 53 | 53 | } |
| 54 | 54 | } elseif (is_object($cron) && $cron->asa(TCronModule::SHELL_LOG_BEHAVIOR)) { |
| 55 | 55 | /** @var TCronModule $cron */ |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * @var string|TActiveRecordInvalidFinderResult |
| 101 | 101 | * @since 3.1.5 |
| 102 | 102 | */ |
| 103 | - private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null; |
|
| 103 | + private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null; |
|
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Initialize the active record manager. |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | $task->setProcessCount($count = ($task->getProcessCount() + 1)); |
| 334 | 334 | |
| 335 | 335 | $cmd = $this->getDbConnection()->createCommand( |
| 336 | - "UPDATE {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 336 | + "update {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 337 | 337 | ); |
| 338 | 338 | $cmd->bindValue(":count", $count, PDO::PARAM_STR); |
| 339 | 339 | $cmd->bindValue(":time", $time, PDO::PARAM_STR); |
@@ -604,7 +604,7 @@ discard block |
||
| 604 | 604 | } |
| 605 | 605 | |
| 606 | 606 | $cmd = $this->getDbConnection()->createCommand( |
| 607 | - "UPDATE {$this->_tableName} SET schedule=:schedule, task=:task, moduleid=:mid, username=:username, options=:options, processcount=:count, lastexectime=:time WHERE name=:name AND active IS NOT NULL" |
|
| 607 | + "update {$this->_tableName} SET schedule=:schedule, task=:task, moduleid=:mid, username=:username, options=:options, processcount=:count, lastexectime=:time WHERE name=:name AND active IS NOT NULL" |
|
| 608 | 608 | ); |
| 609 | 609 | $cmd->bindValue(":schedule", $schedule, PDO::PARAM_STR); |
| 610 | 610 | $cmd->bindValue(":task", $taskExec = $task->getTask(), PDO::PARAM_STR); |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $owner = $this->getOwner(); |
| 134 | 134 | if ($this->_localize) { |
| 135 | 135 | $_property = $this->_property; |
| 136 | - $this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function ($v) use ($owner, $_property) { |
|
| 136 | + $this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function($v) use ($owner, $_property) { |
|
| 137 | 137 | $owner->$_property = Prado::localize($v); |
| 138 | 138 | }); |
| 139 | 139 | } else { |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | 11 => '(?:november|noviembre|novembre|nov|Ноябрь|Ноя|नवम्बर|نوفمبر)', |
| 117 | 117 | 12 => '(?:december|dezember|diciembre|décembre|dicembre|dec|dez|déc|dic|Декабрь|Дек|दिसम्बर|ديسمبر)', |
| 118 | 118 | ], |
| 119 | - self::DAY_OF_WEEK => [ //no Arabic as those are just numbered days of the week |
|
| 119 | + self::DAY_OF_WEEK => [//no Arabic as those are just numbered days of the week |
|
| 120 | 120 | 0 => '(?:sunday|sonntag|sun|son|su|so|domingo|do|d|dimanche|dim|domenica|dom|Воскресенье|Вск|Вс|रविवार|रवि)', |
| 121 | 121 | 1 => '(?:monday|montag|mon|mo|lune|lu|l|lundi|lun|lunedì|Понедельник|Пнд|Пн|सोमवार|सोम)', |
| 122 | 122 | 2 => '(?:tuesday|dienstag|die|tue|tu|di|martes|ma|m|k|mardi|mar|martedì|Вторник|Втр|Вт|मंगलवार|मंगल)', |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | $nhour = null; |
| 644 | 644 | $z = -1; |
| 645 | 645 | $s = (!$days[$lastdata['mday']] || !$months[$lastdata['mon']] || !$years[$year]) ? 0 : $lastdata['hours']; |
| 646 | - for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z ; $i++) { |
|
| 646 | + for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z; $i++) { |
|
| 647 | 647 | if ($i > 23) { |
| 648 | 648 | $dextra = 1; |
| 649 | 649 | $i = 0; |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | $config = $this->getActiveRecordConfig(); |
| 138 | 138 | $output = $this->getOutputFile($args[2]); |
| 139 | 139 | if (is_file($output) && !$this->_overwrite) { |
| 140 | - $this->_outWriter->writeError("File $output already exists, skipping. "); |
|
| 140 | + $this->_outWriter->writeError("file $output already exists, skipping. "); |
|
| 141 | 141 | } elseif ($config !== false && $output !== false) { |
| 142 | 142 | $this->generateActiveRecord($config, $args[1], $output); |
| 143 | 143 | } |