@@ -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 | } |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | $writer->addAttribute('value', $text); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - switch($this->getAutoCompleteType()) { |
|
| 179 | + switch ($this->getAutoCompleteType()) { |
|
| 180 | 180 | case TTextBoxAutoCompleteType::Enabled: |
| 181 | 181 | $writer->addAttribute('autocomplete', 'on'); |
| 182 | 182 | break; |
@@ -424,7 +424,7 @@ |
||
| 424 | 424 | */ |
| 425 | 425 | protected function logCron($numtasks) |
| 426 | 426 | { |
| 427 | - Prado::log("Processing {$numtasks} Cron Tasks", TLogger::INFO, TCronModule::class); |
|
| 427 | + Prado::log("processing {$numtasks} Cron Tasks", TLogger::INFO, TCronModule::class); |
|
| 428 | 428 | $this->dyLogCron($numtasks); |
| 429 | 429 | $this->setLastCronTime(microtime(true)); |
| 430 | 430 | } |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | public static function parseEncodingLanguage(string &$encoding, &$lang) |
| 93 | 93 | { |
| 94 | - if(strpos($encoding, '.') !== false) { |
|
| 94 | + if (strpos($encoding, '.') !== false) { |
|
| 95 | 95 | $parts = explode($encoding, '.', 1); |
| 96 | 96 | $encoding = $parts[0]; |
| 97 | 97 | $lang = $parts[1]; |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | throw new TInvalidOperationException('classbehavior_detach_wrong_owner', $this->getName()); |
| 128 | 128 | } |
| 129 | 129 | parent::detach($component); |
| 130 | - if($this->_owners->remove($component) === 0 && !$this->_owners->getCount()) { |
|
| 130 | + if ($this->_owners->remove($component) === 0 && !$this->_owners->getCount()) { |
|
| 131 | 131 | $this->_owners = null; |
| 132 | 132 | $this->_name = null; |
| 133 | 133 | $this->_handlersInstalled = null; |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | protected function setHandlersStatus(TComponent $component, bool $attach): bool |
| 229 | 229 | { |
| 230 | 230 | $ref = is_array($this->_handlersInstalled) ? spl_object_id($component) : $component; |
| 231 | - if($attach) { |
|
| 231 | + if ($attach) { |
|
| 232 | 232 | if ($this->_owners && $this->_owners->contains($component) && !isset($this->_handlersInstalled[$ref])) { |
| 233 | 233 | $this->_handlersInstalled[$ref] = true; |
| 234 | 234 | return true; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | public static function mergeHandlers(...$args): array |
| 150 | 150 | { |
| 151 | - if(empty($args)) { |
|
| 151 | + if (empty($args)) { |
|
| 152 | 152 | return []; |
| 153 | 153 | } |
| 154 | 154 | $combined = []; |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | $strict = $this->getStrictEvents(); |
| 336 | 336 | foreach ($this->eventsLog() as $event => $handlers) { |
| 337 | 337 | if ($strict || $this->hasEvent($event)) { |
| 338 | - foreach($handlers as $handler) { |
|
| 338 | + foreach ($handlers as $handler) { |
|
| 339 | 339 | $component->attachEventHandler($event, is_string($handler) ? [$this, $handler] : $handler, $priority); |
| 340 | 340 | } |
| 341 | 341 | } |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $strict = $this->getStrictEvents(); |
| 356 | 356 | foreach ($this->eventsLog() as $event => $handlers) { |
| 357 | 357 | if ($strict || $this->hasEvent($event)) { |
| 358 | - foreach($handlers as $handler) { |
|
| 358 | + foreach ($handlers as $handler) { |
|
| 359 | 359 | $component->detachEventHandler($event, is_string($handler) ? [$this, $handler] : $handler); |
| 360 | 360 | } |
| 361 | 361 | } |
@@ -221,7 +221,7 @@ |
||
| 221 | 221 | if ($this->getOwner() !== $component) { |
| 222 | 222 | return false; |
| 223 | 223 | } |
| 224 | - if($attach ^ $this->_handlersInstalled) { |
|
| 224 | + if ($attach ^ $this->_handlersInstalled) { |
|
| 225 | 225 | $this->_handlersInstalled = $attach; |
| 226 | 226 | return true; |
| 227 | 227 | } |