@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | * the alias to return the column as. |
| 1089 | 1089 | * |
| 1090 | 1090 | * @param string $column |
| 1091 | - * @param mixed $alias |
|
| 1091 | + * @param null|string $alias |
|
| 1092 | 1092 | * |
| 1093 | 1093 | * @return ORM |
| 1094 | 1094 | */ |
@@ -1105,7 +1105,7 @@ discard block |
||
| 1105 | 1105 | * the alias to return the column as. |
| 1106 | 1106 | * |
| 1107 | 1107 | * @param string $expr |
| 1108 | - * @param mixed $alias |
|
| 1108 | + * @param string|null $alias |
|
| 1109 | 1109 | * |
| 1110 | 1110 | * @return ORM |
| 1111 | 1111 | */ |
@@ -1394,7 +1394,7 @@ discard block |
||
| 1394 | 1394 | * Internal method to add a HAVING condition to the query |
| 1395 | 1395 | */ |
| 1396 | 1396 | /** |
| 1397 | - * @param string|array $column_name |
|
| 1397 | + * @param string $column_name |
|
| 1398 | 1398 | * @param string $separator |
| 1399 | 1399 | * @param mixed $value |
| 1400 | 1400 | * |
@@ -1409,7 +1409,7 @@ discard block |
||
| 1409 | 1409 | * Internal method to add a HAVING clause with multiple values (like IN and NOT IN) |
| 1410 | 1410 | */ |
| 1411 | 1411 | /** |
| 1412 | - * @param string|array $column_name |
|
| 1412 | + * @param string $column_name |
|
| 1413 | 1413 | * @param string $separator |
| 1414 | 1414 | * @param mixed $values |
| 1415 | 1415 | * |
@@ -1436,7 +1436,7 @@ discard block |
||
| 1436 | 1436 | /** |
| 1437 | 1437 | * Internal method to add a HAVING clause with no parameters(like IS NULL and IS NOT NULL) |
| 1438 | 1438 | * |
| 1439 | - * @param string|array $column_name |
|
| 1439 | + * @param string $column_name |
|
| 1440 | 1440 | * @param string $operator |
| 1441 | 1441 | * |
| 1442 | 1442 | * @return ORM |
@@ -1474,7 +1474,7 @@ discard block |
||
| 1474 | 1474 | /** |
| 1475 | 1475 | * Internal method to add a WHERE condition to the query |
| 1476 | 1476 | * |
| 1477 | - * @param string|array $column_name |
|
| 1477 | + * @param string $column_name |
|
| 1478 | 1478 | * @param string $separator |
| 1479 | 1479 | * @param mixed $value |
| 1480 | 1480 | * |
@@ -1488,7 +1488,7 @@ discard block |
||
| 1488 | 1488 | /** |
| 1489 | 1489 | * Add a WHERE clause with multiple values (like IN and NOT IN) |
| 1490 | 1490 | * |
| 1491 | - * @param string|array $column_name |
|
| 1491 | + * @param string $column_name |
|
| 1492 | 1492 | * @param string $separator |
| 1493 | 1493 | * @param mixed $values |
| 1494 | 1494 | * |
@@ -1643,7 +1643,7 @@ discard block |
||
| 1643 | 1643 | * |
| 1644 | 1644 | * @param mixed $value |
| 1645 | 1645 | * |
| 1646 | - * @return array |
|
| 1646 | + * @return string |
|
| 1647 | 1647 | */ |
| 1648 | 1648 | protected function _get_compound_id_column_values($value) |
| 1649 | 1649 | { |
@@ -2471,7 +2471,7 @@ discard block |
||
| 2471 | 2471 | * only adds the pieces if they are not empty. |
| 2472 | 2472 | * |
| 2473 | 2473 | * @param string $glue |
| 2474 | - * @param array $pieces |
|
| 2474 | + * @param string[] $pieces |
|
| 2475 | 2475 | * |
| 2476 | 2476 | * @return string |
| 2477 | 2477 | */ |
@@ -2560,7 +2560,7 @@ discard block |
||
| 2560 | 2560 | * @param null|string $table_name |
| 2561 | 2561 | * @param string $connection_name |
| 2562 | 2562 | * |
| 2563 | - * @return mixed|string |
|
| 2563 | + * @return string |
|
| 2564 | 2564 | */ |
| 2565 | 2565 | protected static function _create_cache_key($query, $parameters, $table_name = null, $connection_name = self::DEFAULT_CONNECTION) |
| 2566 | 2566 | { |
@@ -2314,15 +2314,15 @@ discard block |
||
| 2314 | 2314 | // the results of calling each separate builder method. |
| 2315 | 2315 | return $this->_join_if_not_empty( |
| 2316 | 2316 | " ", array( |
| 2317 | - $this->_build_select_start(), |
|
| 2318 | - $this->_build_join(), |
|
| 2319 | - $this->_build_where(), |
|
| 2320 | - $this->_build_group_by(), |
|
| 2321 | - $this->_build_having(), |
|
| 2322 | - $this->_build_order_by(), |
|
| 2323 | - $this->_build_limit(), |
|
| 2324 | - $this->_build_offset(), |
|
| 2325 | - ) |
|
| 2317 | + $this->_build_select_start(), |
|
| 2318 | + $this->_build_join(), |
|
| 2319 | + $this->_build_where(), |
|
| 2320 | + $this->_build_group_by(), |
|
| 2321 | + $this->_build_having(), |
|
| 2322 | + $this->_build_order_by(), |
|
| 2323 | + $this->_build_limit(), |
|
| 2324 | + $this->_build_offset(), |
|
| 2325 | + ) |
|
| 2326 | 2326 | ); |
| 2327 | 2327 | } |
| 2328 | 2328 | |
@@ -2547,9 +2547,9 @@ discard block |
||
| 2547 | 2547 | |
| 2548 | 2548 | // double up any identifier quotes to escape them |
| 2549 | 2549 | return $quote_character . |
| 2550 | - str_replace( |
|
| 2551 | - $quote_character, $quote_character . $quote_character, $part |
|
| 2552 | - ) . $quote_character; |
|
| 2550 | + str_replace( |
|
| 2551 | + $quote_character, $quote_character . $quote_character, $part |
|
| 2552 | + ) . $quote_character; |
|
| 2553 | 2553 | } |
| 2554 | 2554 | |
| 2555 | 2555 | /** |
@@ -970,10 +970,10 @@ discard block |
||
| 970 | 970 | if ($result !== false && isset($result->$alias)) { |
| 971 | 971 | if (!is_numeric($result->$alias)) { |
| 972 | 972 | $return_value = $result->$alias; |
| 973 | - } elseif ((int)$result->$alias == (float)$result->$alias) { |
|
| 974 | - $return_value = (int)$result->$alias; |
|
| 973 | + } elseif ((int) $result->$alias == (float) $result->$alias) { |
|
| 974 | + $return_value = (int) $result->$alias; |
|
| 975 | 975 | } else { |
| 976 | - $return_value = (float)$result->$alias; |
|
| 976 | + $return_value = (float) $result->$alias; |
|
| 977 | 977 | } |
| 978 | 978 | } |
| 979 | 979 | |
@@ -3052,8 +3052,7 @@ discard block |
||
| 3052 | 3052 | |
| 3053 | 3053 | return self::_execute( |
| 3054 | 3054 | join(" ", $query), is_array($this->id(true)) ? |
| 3055 | - array_values($this->id(true)) : |
|
| 3056 | - array($this->id(true)), $this->_connection_name |
|
| 3055 | + array_values($this->id(true)) : array($this->id(true)), $this->_connection_name |
|
| 3057 | 3056 | ); |
| 3058 | 3057 | } |
| 3059 | 3058 | |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function __construct($subject) |
| 64 | 64 | { |
| 65 | - $this->subject = (string)$subject; |
|
| 65 | + $this->subject = (string) $subject; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | | ([^\'"\\\\]+) # or $2: an unquoted chunk (no escapes). |
| 118 | 118 | /sx'; |
| 119 | 119 | |
| 120 | - return (string)preg_replace_callback($re_parse, array($this, '_str_replace_outside_quotes_cb'), $this->subject); |
|
| 120 | + return (string) preg_replace_callback($re_parse, array($this, '_str_replace_outside_quotes_cb'), $this->subject); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | // Process only unquoted chunks (in group $2). |
| 142 | - return (string)preg_replace('/' . preg_quote($this->search, '/') . '/', $this->replace, $matches[2]); |
|
| 142 | + return (string) preg_replace('/' . preg_quote($this->search, '/') . '/', $this->replace, $matches[2]); |
|
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | } |