@@ -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; |
@@ -182,7 +182,7 @@ |
||
| 182 | 182 | $this->weakAdd($object); |
| 183 | 183 | } |
| 184 | 184 | if ($object === null) { |
| 185 | - $this->_c--; //on read only, parent::removeAt won't remove for scrub. |
|
| 185 | + $this->_c--; //on read only, parent::removeAt won't remove for scrub. |
|
| 186 | 186 | if ($i === $this->_c) { |
| 187 | 187 | array_pop($this->_d); |
| 188 | 188 | } else { |
@@ -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 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * @throws TInvalidDataValueException if the original value is not in the string array. |
| 156 | 156 | * @return string|\UnitEnum the valid enumeration value |
| 157 | 157 | */ |
| 158 | - public static function ensureEnum($value, $enums): string|\UnitEnum |
|
| 158 | + public static function ensureEnum($value, $enums): string | \UnitEnum |
|
| 159 | 159 | { |
| 160 | 160 | static $types = []; |
| 161 | 161 | if (func_num_args() === 2 && is_string($enums)) { |
@@ -163,13 +163,13 @@ discard block |
||
| 163 | 163 | $types[$enums] = new \ReflectionClass($enums); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - if($types[$enums]->isEnum()) { |
|
| 166 | + if ($types[$enums]->isEnum()) { |
|
| 167 | 167 | // Php 8.1 native enum instances |
| 168 | - if($value instanceof $enums) { |
|
| 168 | + if ($value instanceof $enums) { |
|
| 169 | 169 | return $value; |
| 170 | 170 | } |
| 171 | 171 | $enumValue = $enums::tryFrom($value); |
| 172 | - if($enumValue !== null) { |
|
| 172 | + if ($enumValue !== null) { |
|
| 173 | 173 | return $enumValue; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | enum TActiveRecordInvalidFinderResult: string |
| 28 | 28 | { |
| 29 | - case Null = 'Null'; |
|
| 29 | + case null = 'Null'; |
|
| 30 | 30 | case Exception = 'Exception'; |
| 31 | 31 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | protected function getTagName() |
| 59 | 59 | { |
| 60 | - switch($this->getButtonTag()) { |
|
| 60 | + switch ($this->getButtonTag()) { |
|
| 61 | 61 | case TButtonTag::Input: |
| 62 | 62 | return 'input'; |
| 63 | 63 | case TButtonTag::Button: |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | { |
| 108 | 108 | $page = $this->getPage(); |
| 109 | 109 | $page->ensureRenderInForm($this); |
| 110 | - switch($this->getButtonType()) { |
|
| 110 | + switch ($this->getButtonType()) { |
|
| 111 | 111 | case TButtonType::Submit: |
| 112 | 112 | $writer->addAttribute('type', 'submit'); |
| 113 | 113 | break; |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $this->_p = TPropertyValue::ensureInteger($value); |
| 106 | 106 | $this->setDefaultPriority($this->_dp); |
| 107 | 107 | $_d = []; |
| 108 | - foreach(array_keys($this->_d) as $priority) { |
|
| 108 | + foreach (array_keys($this->_d) as $priority) { |
|
| 109 | 109 | $newPriority = $this->ensurePriority($priority); |
| 110 | 110 | if (array_key_exists($newPriority, $_d)) { |
| 111 | 111 | $_d[$newPriority] = array_merge($_d[$newPriority], $this->_d[$priority]); |