Passed
Push — master ( 57d36e...277087 )
by Fabio
05:57
created
framework/Util/Cron/TCronModule.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -379,7 +379,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
framework/Util/Cron/TShellCronAction.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
framework/Shell/Actions/TActiveRecordGenAction.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
190 190
 	}
191 191
 }
192 192
 
193
-EOD;
193
+eod;
194 194
 	}
195 195
 }
Please login to merge, or discard this patch.
framework/Util/Cron/TDbCronModule.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
framework/Util/Cron/TDbCronCleanLogTask.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.