@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | public function __toString() |
| 49 | 49 | { |
| 50 | - return (string)$this->_s; |
|
| 50 | + return (string) $this->_s; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function toJavaScriptLiteral() |
@@ -20,9 +20,9 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | class THttpUtility |
| 22 | 22 | { |
| 23 | - private static $_encodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 24 | - private static $_decodeTable = ['<' => '<','>' => '>','"' => '"']; |
|
| 25 | - private static $_stripTable = ['<' => '','>' => '','"' => '']; |
|
| 23 | + private static $_encodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 24 | + private static $_decodeTable = ['<' => '<', '>' => '>', '"' => '"']; |
|
| 25 | + private static $_stripTable = ['<' => '', '>' => '', '"' => '']; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * HTML-encodes a string. |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | class TOracleTableColumn extends TDbTableColumn |
| 29 | 29 | { |
| 30 | 30 | private static $types = [ |
| 31 | - 'numeric' => [ 'numeric' ] |
|
| 31 | + 'numeric' => ['numeric'] |
|
| 32 | 32 | // 'integer' => array('bit', 'bit varying', 'real', 'serial', 'int', 'integer'), |
| 33 | 33 | // 'boolean' => array('boolean'), |
| 34 | 34 | // 'float' => array('bigint', 'bigserial', 'double precision', 'money', 'numeric') |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | public function setGatewayClass($value) |
| 130 | 130 | { |
| 131 | 131 | $this->_gateway = null; |
| 132 | - $this->_gatewayClass = (string)$value; |
|
| 132 | + $this->_gatewayClass = (string) $value; |
|
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | /** |
@@ -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. |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | public function setFetchMode($mode) |
| 80 | 80 | { |
| 81 | 81 | $params = func_get_args(); |
| 82 | - call_user_func_array([$this->_statement,'setFetchMode'], $params); |
|
| 82 | + call_user_func_array([$this->_statement, 'setFetchMode'], $params); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | nspname = :schema)) |
| 138 | 138 | AND a.attnum > 0 AND NOT a.attisdropped |
| 139 | 139 | ORDER BY a.attnum |
| 140 | -EOD; |
|
| 140 | +eod; |
|
| 141 | 141 | $this->getDbConnection()->setActive(true); |
| 142 | 142 | $command = $this->getDbConnection()->createCommand($sql); |
| 143 | 143 | $command->bindValue(':table', $tableName); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | SELECT count(c.relname) FROM pg_catalog.pg_class c |
| 198 | 198 | LEFT JOIN pg_catalog.pg_namespace n ON (n.oid = c.relnamespace) |
| 199 | 199 | WHERE (n.nspname=:schema) AND (c.relkind = 'v'::"char") AND c.relname = :table |
| 200 | -EOD; |
|
| 200 | +eod; |
|
| 201 | 201 | $this->getDbConnection()->setActive(true); |
| 202 | 202 | $command = $this->getDbConnection()->createCommand($sql); |
| 203 | 203 | $command->bindValue(':schema', $schemaName); |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | WHERE nspname=:schema)) |
| 333 | 333 | ORDER BY |
| 334 | 334 | 1 |
| 335 | -EOD; |
|
| 335 | +eod; |
|
| 336 | 336 | $this->getDbConnection()->setActive(true); |
| 337 | 337 | $command = $this->getDbConnection()->createCommand($sql); |
| 338 | 338 | $command->bindValue(':table', $tableName); |
@@ -372,7 +372,7 @@ discard block |
||
| 372 | 372 | ) |
| 373 | 373 | ) |
| 374 | 374 | AND attnum IN ({$index}) |
| 375 | -EOD; |
|
| 375 | +eod; |
|
| 376 | 376 | $command = $this->getDbConnection()->createCommand($sql); |
| 377 | 377 | $command->bindValue(':table', $tableName); |
| 378 | 378 | $command->bindValue(':schema', $schemaName); |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | $sql = <<<EOD |
| 435 | 435 | SELECT table_name, table_schema FROM information_schema.tables |
| 436 | 436 | WHERE table_schema=:schema AND table_type='BASE TABLE' |
| 437 | -EOD; |
|
| 437 | +eod; |
|
| 438 | 438 | $command = $this->getDbConnection()->createCommand($sql); |
| 439 | 439 | $command->bindParam(':schema', $schema); |
| 440 | 440 | $rows = $command->queryAll(); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | if (count($parts = explode('.', str_replace('"', '', $table))) > 1) { |
| 93 | 93 | return [$parts[0], $parts[1]]; |
| 94 | 94 | } else { |
| 95 | - return [$this->getDefaultSchema(),$parts[0]]; |
|
| 95 | + return [$this->getDefaultSchema(), $parts[0]]; |
|
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
@@ -353,7 +353,7 @@ discard block |
||
| 353 | 353 | break; |
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | - return [$primary,$foreign]; |
|
| 356 | + return [$primary, $foreign]; |
|
| 357 | 357 | } |
| 358 | 358 | |
| 359 | 359 | /** |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $fname = ucwords(str_replace('_', ' ', $name)); |
| 71 | 71 | $sorts[$name . ' ASC'] = $fname . ' Ascending'; |
| 72 | 72 | $sorts[$name . ' DESC'] = $fname . ' Descending'; |
| 73 | - $headers[] = $fname ; |
|
| 73 | + $headers[] = $fname; |
|
| 74 | 74 | } |
| 75 | 75 | $this->_sort->setDataSource($sorts); |
| 76 | 76 | $this->_sort->dataBind(); |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | * @var TActiveRecordInvalidFinderResult |
| 103 | 103 | * @since 3.1.5 |
| 104 | 104 | */ |
| 105 | - private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null; |
|
| 105 | + private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * Initialize the active record manager. |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | */ |
| 101 | 101 | public function _read($id) |
| 102 | 102 | { |
| 103 | - return (string)$this->_cache->get($this->calculateKey($id)); |
|
| 103 | + return (string) $this->_cache->get($this->calculateKey($id)); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |