@@ -56,7 +56,7 @@ |
||
| 56 | 56 | * @var TActiveRecordInvalidFinderResult |
| 57 | 57 | * @since 3.1.5 |
| 58 | 58 | */ |
| 59 | - private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null; |
|
| 59 | + private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @return ICache application cache. |
@@ -328,7 +328,7 @@ |
||
| 328 | 328 | { |
| 329 | 329 | $req = $this->recaptcha_qsencode($data); |
| 330 | 330 | |
| 331 | - $http_request = "POST $path HTTP/1.0\r\n"; |
|
| 331 | + $http_request = "post $path HTTP/1.0\r\n"; |
|
| 332 | 332 | $http_request .= "Host: $host\r\n"; |
| 333 | 333 | $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; |
| 334 | 334 | $http_request .= "Content-Length: " . strlen($req) . "\r\n"; |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | { |
| 319 | 319 | $table = $this->getTableInfo()->getTableFullName(); |
| 320 | 320 | $fields = implode(', ', $this -> getSelectFieldList($select)); |
| 321 | - $sql = "SELECT {$fields} FROM {$table}"; |
|
| 321 | + $sql = "select {$fields} FROM {$table}"; |
|
| 322 | 322 | if (!empty($where)) { |
| 323 | 323 | $sql .= " WHERE {$where}"; |
| 324 | 324 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | if (!empty($where)) { |
| 406 | 406 | $where = ' WHERE ' . $where; |
| 407 | 407 | } |
| 408 | - $command = $this->createCommand("UPDATE {$table} SET {$fields}" . $where); |
|
| 408 | + $command = $this->createCommand("update {$table} SET {$fields}" . $where); |
|
| 409 | 409 | $this->bindArrayValues($command, array_merge($data, $parameters)); |
| 410 | 410 | return $command; |
| 411 | 411 | } |
@@ -233,7 +233,7 @@ |
||
| 233 | 233 | if (($where = $criteria->getCondition()) === null) { |
| 234 | 234 | $where = '1=1'; |
| 235 | 235 | } |
| 236 | - $sql = "SELECT {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}"; |
|
| 236 | + $sql = "select {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}"; |
|
| 237 | 237 | |
| 238 | 238 | $parameters = $criteria->getParameters()->toArray(); |
| 239 | 239 | $ordering = $criteria->getOrdersBy(); |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | if (is_file($filename) == false) { |
| 143 | - throw new Exception("File $filename not found"); |
|
| 143 | + throw new Exception("file $filename not found"); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | include_once $filename; |
@@ -377,7 +377,7 @@ |
||
| 377 | 377 | break; |
| 378 | 378 | } |
| 379 | 379 | $method = self::$_steps[$this->_step]; |
| 380 | - Prado::trace("Executing $method()", 'Prado\TApplication'); |
|
| 380 | + Prado::trace("executing $method()", 'Prado\TApplication'); |
|
| 381 | 381 | $this->$method(); |
| 382 | 382 | $this->_step++; |
| 383 | 383 | } |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | public static function poFile2moFile($pofile, $mofile) |
| 128 | 128 | { |
| 129 | 129 | if (!is_file($pofile)) { |
| 130 | - throw new Exception("File $pofile doesn't exist."); |
|
| 130 | + throw new Exception("file $pofile doesn't exist."); |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | include_once __DIR__ . '/PO.php'; |
@@ -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 | } |
@@ -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; |