@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | public function getScriptUrls() |
| 259 | 259 | { |
| 260 | - $scripts = array_values(array_map(function ($v) { |
|
| 260 | + $scripts = array_values(array_map(function($v) { |
|
| 261 | 261 | return $v->getUrl(); |
| 262 | 262 | }, $this->_headScriptFiles)); |
| 263 | 263 | $scripts = array_merge($scripts, array_values($this->_scriptFiles)); |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | public function getStyleSheetUrls() |
| 551 | 551 | { |
| 552 | 552 | $stylesheets = array_values( |
| 553 | - array_map(function ($e) { |
|
| 553 | + array_map(function($e) { |
|
| 554 | 554 | return is_array($e) ? $e[0] : $e; |
| 555 | 555 | }, $this->_styleSheetFiles) |
| 556 | 556 | ); |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | class TActiveRecordInvalidFinderResult extends \Prado\TEnumerable |
| 30 | 30 | { |
| 31 | - public const Null = 'Null'; |
|
| 31 | + public const null = 'Null'; |
|
| 32 | 32 | public const Exception = 'Exception'; |
| 33 | 33 | } |
@@ -113,17 +113,17 @@ discard block |
||
| 113 | 113 | * Indexes for the rare fields. |
| 114 | 114 | * In order to save memory, rare fields will only be created if they are needed. |
| 115 | 115 | */ |
| 116 | - public const RF_CONTROLS = 0; // child controls |
|
| 117 | - public const RF_CHILD_STATE = 1; // child state field |
|
| 118 | - public const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
| 119 | - public const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
| 120 | - public const RF_SKIN_ID = 4; // skin ID |
|
| 121 | - public const RF_DATA_BINDINGS = 5; // data bindings |
|
| 122 | - public const RF_EVENTS = 6; // event handlers |
|
| 123 | - public const RF_CONTROLSTATE = 7; // controlstate |
|
| 124 | - public const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
| 125 | - public const RF_ADAPTER = 9; // adapter |
|
| 126 | - public const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
| 116 | + public const RF_CONTROLS = 0; // child controls |
|
| 117 | + public const RF_CHILD_STATE = 1; // child state field |
|
| 118 | + public const RF_NAMED_CONTROLS = 2; // list of controls whose namingcontainer is this control |
|
| 119 | + public const RF_NAMED_CONTROLS_ID = 3; // counter for automatic id |
|
| 120 | + public const RF_SKIN_ID = 4; // skin ID |
|
| 121 | + public const RF_DATA_BINDINGS = 5; // data bindings |
|
| 122 | + public const RF_EVENTS = 6; // event handlers |
|
| 123 | + public const RF_CONTROLSTATE = 7; // controlstate |
|
| 124 | + public const RF_NAMED_OBJECTS = 8; // controls declared with ID on template |
|
| 125 | + public const RF_ADAPTER = 9; // adapter |
|
| 126 | + public const RF_AUTO_BINDINGS = 10; // auto data bindings |
|
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | 129 | * @var string control ID |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | public function getUniqueID() |
| 414 | 414 | { |
| 415 | 415 | if ($this->_uid === '' || $this->_uid === null) { // need to build the UniqueID |
| 416 | - $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
| 416 | + $this->_uid = ''; // set to not-null, so that clearCachedUniqueID() may take action |
|
| 417 | 417 | if ($namingContainer = $this->getNamingContainer()) { |
| 418 | 418 | if ($this->getPage() === $namingContainer) { |
| 419 | 419 | return ($this->_uid = $this->_id); |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | if ($this->_routeBehaviorName) { |
| 111 | 111 | if ($this->_localize) { |
| 112 | 112 | $_property = $this->_property; |
| 113 | - $this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function ($v) use ($owner, $_property) { |
|
| 113 | + $this->_paramBehavior = new TMapRouteBehavior($this->_parameter, function($v) use ($owner, $_property) { |
|
| 114 | 114 | $owner->$_property = Prado::localize($v); |
| 115 | 115 | }); |
| 116 | 116 | } else { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 11 => '(?:november|noviembre|novembre|nov|Ноябрь|Ноя|नवम्बर|نوفمبر)', |
| 98 | 98 | 12 => '(?:december|dezember|diciembre|décembre|dicembre|dec|dez|déc|dic|Декабрь|Дек|दिसम्बर|ديسمبر)' |
| 99 | 99 | ], |
| 100 | - self::DAY_OF_WEEK => [ //no Arabic as those are just numbered days of the week |
|
| 100 | + self::DAY_OF_WEEK => [//no Arabic as those are just numbered days of the week |
|
| 101 | 101 | 0 => '(?:sunday|sonntag|sun|son|su|so|domingo|do|d|dimanche|dim|domenica|dom|Воскресенье|Вск|Вс|रविवार|रवि)', |
| 102 | 102 | 1 => '(?:monday|montag|mon|mo|lune|lu|l|lundi|lun|lunedì|Понедельник|Пнд|Пн|सोमवार|सोम)', |
| 103 | 103 | 2 => '(?:tuesday|dienstag|die|tue|tu|di|martes|ma|m|k|mardi|mar|martedì|Вторник|Втр|Вт|मंगलवार|मंगल)', |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | $nhour = null; |
| 739 | 739 | $z = -1; |
| 740 | 740 | $s = (!$days[$lastdata['mday']] || !$months[$lastdata['mon']] || !$years[$year]) ? 0 : $lastdata['hours']; |
| 741 | - for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z ; $i++) { |
|
| 741 | + for ($i = $s + $hextra, $dextra = 0; $i != $s + $hextra + $z; $i++) { |
|
| 742 | 742 | if ($i > 23) { |
| 743 | 743 | $dextra = 1; |
| 744 | 744 | $i = 0; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | public const CYAN = 36; |
| 46 | 46 | public const LIGHT_GRAY = 37; |
| 47 | 47 | // '256' => '38', // 38:2:<red>:<green>:<blue> or 38:5:<256-color> |
| 48 | - public const DEFAULT = 39; |
|
| 48 | + public const default = 39; |
|
| 49 | 49 | |
| 50 | 50 | public const DARK_GRAY = 90; |
| 51 | 51 | public const LIGHT_RED = 91; |
@@ -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 | } |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | $task->setProcessCount($count = ($task->getProcessCount() + 1)); |
| 338 | 338 | |
| 339 | 339 | $cmd = $this->getDbConnection()->createCommand( |
| 340 | - "UPDATE {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 340 | + "update {$this->_tableName} SET processcount=:count, lastexectime=:time, options=:task WHERE name=:name AND active IS NOT NULL" |
|
| 341 | 341 | ); |
| 342 | 342 | $cmd->bindValue(":count", $count, PDO::PARAM_STR); |
| 343 | 343 | $cmd->bindValue(":time", $time, PDO::PARAM_STR); |
@@ -603,7 +603,7 @@ discard block |
||
| 603 | 603 | } |
| 604 | 604 | |
| 605 | 605 | $cmd = $this->getDbConnection()->createCommand( |
| 606 | - "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" |
|
| 606 | + "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 | 607 | ); |
| 608 | 608 | $cmd->bindValue(":schedule", $schedule = $task->getSchedule(), PDO::PARAM_STR); |
| 609 | 609 | $cmd->bindValue(":task", $taskExec = $task->getTask(), PDO::PARAM_STR); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $config = $this->getActiveRecordConfig(); |
| 139 | 139 | $output = $this->getOutputFile($args[2]); |
| 140 | 140 | if (is_file($output) && !$this->_overwrite) { |
| 141 | - $this->_outWriter->writeError("File $output already exists, skipping. "); |
|
| 141 | + $this->_outWriter->writeError("file $output already exists, skipping. "); |
|
| 142 | 142 | } elseif ($config !== false && $output !== false) { |
| 143 | 143 | $this->generateActiveRecord($config, $args[1], $output); |
| 144 | 144 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | * @soapproperty |
| 229 | 229 | */ |
| 230 | 230 | |
| 231 | -EOD; |
|
| 231 | +eod; |
|
| 232 | 232 | } |
| 233 | 233 | $prop .= "\tpublic $name;"; |
| 234 | 234 | return $prop; |
@@ -261,6 +261,6 @@ discard block |
||
| 261 | 261 | } |
| 262 | 262 | } |
| 263 | 263 | |
| 264 | -EOD; |
|
| 264 | +eod; |
|
| 265 | 265 | } |
| 266 | 266 | } |