@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | console.log ("[Tot Time] [Time ] [Level] [Category] [Message]"); |
85 | 85 | |
86 | -EOD; |
|
86 | +eod; |
|
87 | 87 | } |
88 | 88 | return ''; |
89 | 89 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | } |
123 | 123 | </script> |
124 | 124 | |
125 | -EOD; |
|
125 | +eod; |
|
126 | 126 | |
127 | 127 | return $string; |
128 | 128 | } |
@@ -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 | } |
@@ -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); |