@@ -379,7 +379,7 @@ |
||
| 379 | 379 | */ |
| 380 | 380 | protected function logCron($numtasks) |
| 381 | 381 | { |
| 382 | - Prado::log("Processing {$numtasks} Cron Tasks", TLogger::INFO, 'Prado.Cron.TCronModule'); |
|
| 382 | + Prado::log("processing {$numtasks} Cron Tasks", TLogger::INFO, 'Prado.Cron.TCronModule'); |
|
| 383 | 383 | $this->dyLogCron($numtasks); |
| 384 | 384 | $this->setLastCronTime(microtime(true)); |
| 385 | 385 | } |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | if (!$module) { |
| 62 | - $this->_outWriter->writeError("A {$moduleClass} is not found"); |
|
| 62 | + $this->_outWriter->writeError("a {$moduleClass} is not found"); |
|
| 63 | 63 | return true; |
| 64 | 64 | } |
| 65 | 65 | if (!$module->asa(TCronModule::SHELL_LOG_BEHAVIOR)) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $config = $this->getActiveRecordConfig($app_dir); |
| 45 | 45 | $output = $this->getOutputFile($app_dir, $args[2]); |
| 46 | 46 | if (is_file($output) && !$this->_overwrite) { |
| 47 | - $this->_outWriter->writeError("File $output already exists, skipping. "); |
|
| 47 | + $this->_outWriter->writeError("file $output already exists, skipping. "); |
|
| 48 | 48 | } elseif ($config !== false && $output !== false) { |
| 49 | 49 | $this->generateActiveRecord($config, $args[1], $output); |
| 50 | 50 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * @soapproperty |
| 158 | 158 | */ |
| 159 | 159 | |
| 160 | -EOD; |
|
| 160 | +eod; |
|
| 161 | 161 | } |
| 162 | 162 | $prop .= "\tpublic $name;"; |
| 163 | 163 | return $prop; |
@@ -190,6 +190,6 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | -EOD; |
|
| 193 | +eod; |
|
| 194 | 194 | } |
| 195 | 195 | } |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | $task->setProcessCount($count = ($task->getProcessCount() + 1)); |
| 302 | 302 | |
| 303 | 303 | $cmd = $this->getDbConnection()->createCommand( |
| 304 | - "UPDATE {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 304 | + "update {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 305 | 305 | ); |
| 306 | 306 | $cmd->bindValue(":count", $count, PDO::PARAM_STR); |
| 307 | 307 | $cmd->bindValue(":time", $time, PDO::PARAM_STR); |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | } |
| 541 | 541 | |
| 542 | 542 | $cmd = $this->getDbConnection()->createCommand( |
| 543 | - "UPDATE {$this->_tableName} SET schedule=:schedule, task=:task, moduleid=:mid, userid=:userid, options=:options, processcount=:count, lastexectime=:time WHERE name=:name AND active IS NOT NULL" |
|
| 543 | + "update {$this->_tableName} SET schedule=:schedule, task=:task, moduleid=:mid, userid=:userid, options=:options, processcount=:count, lastexectime=:time WHERE name=:name AND active IS NOT NULL" |
|
| 544 | 544 | ); |
| 545 | 545 | $cmd->bindValue(":schedule", $schedule = $task->getSchedule(), PDO::PARAM_STR); |
| 546 | 546 | $cmd->bindValue(":task", $taskExec = $task->getTask(), PDO::PARAM_STR); |
@@ -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 | $cron->getOutputWriter()->writeLine("No DB Cron Module to clean", TShellWriter::RED); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | $shell = new \Psy\Shell(); |
| 45 | 45 | $shell->setBoundObject($this); |
| 46 | - $shell->run(); |
|
| 46 | + $shell->run(); |
|
| 47 | 47 | return true; |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | if (count($args) > 1) { |
| 37 | 37 | $loaded = $this->initializePradoApplication($args[1]); |
| 38 | 38 | $this->getWriter()->flush(); |
| 39 | - if($loaded === false) { |
|
| 39 | + if ($loaded === false) { |
|
| 40 | 40 | return true; |
| 41 | 41 | } |
| 42 | 42 | } |