@@ -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 | { |
@@ -2567,9 +2567,9 @@ |
||
| 2567 | 2567 | |
| 2568 | 2568 | // double up any identifier quotes to escape them |
| 2569 | 2569 | return $quote_character . |
| 2570 | - str_replace( |
|
| 2571 | - $quote_character, $quote_character . $quote_character, $part |
|
| 2572 | - ) . $quote_character; |
|
| 2570 | + str_replace( |
|
| 2571 | + $quote_character, $quote_character . $quote_character, $part |
|
| 2572 | + ) . $quote_character; |
|
| 2573 | 2573 | } |
| 2574 | 2574 | |
| 2575 | 2575 | /** |
@@ -981,10 +981,10 @@ discard block |
||
| 981 | 981 | if ($result !== false && isset($result->$alias)) { |
| 982 | 982 | if (!is_numeric($result->$alias)) { |
| 983 | 983 | $return_value = $result->$alias; |
| 984 | - } elseif ((int)$result->$alias == (float)$result->$alias) { |
|
| 985 | - $return_value = (int)$result->$alias; |
|
| 984 | + } elseif ((int) $result->$alias == (float) $result->$alias) { |
|
| 985 | + $return_value = (int) $result->$alias; |
|
| 986 | 986 | } else { |
| 987 | - $return_value = (float)$result->$alias; |
|
| 987 | + $return_value = (float) $result->$alias; |
|
| 988 | 988 | } |
| 989 | 989 | } |
| 990 | 990 | |
@@ -2471,7 +2471,7 @@ discard block |
||
| 2471 | 2471 | $fragment = 'LIMIT'; |
| 2472 | 2472 | } |
| 2473 | 2473 | |
| 2474 | - $this->_limit = (int)$this->_limit; |
|
| 2474 | + $this->_limit = (int) $this->_limit; |
|
| 2475 | 2475 | |
| 2476 | 2476 | $fragment .= " {$this->_limit}"; |
| 2477 | 2477 | } |
@@ -2490,7 +2490,7 @@ discard block |
||
| 2490 | 2490 | $clause = 'TO'; |
| 2491 | 2491 | } |
| 2492 | 2492 | |
| 2493 | - $this->_offset = (int)$this->_offset; |
|
| 2493 | + $this->_offset = (int) $this->_offset; |
|
| 2494 | 2494 | |
| 2495 | 2495 | return "$clause " . $this->_offset; |
| 2496 | 2496 | } |
@@ -3093,8 +3093,7 @@ discard block |
||
| 3093 | 3093 | |
| 3094 | 3094 | return static::_execute( |
| 3095 | 3095 | join(" ", $query), is_array($this->id(true)) ? |
| 3096 | - array_values($this->id(true)) : |
|
| 3097 | - array($this->id(true)), $this->_connection_name |
|
| 3096 | + array_values($this->id(true)) : array($this->id(true)), $this->_connection_name |
|
| 3098 | 3097 | ); |
| 3099 | 3098 | } |
| 3100 | 3099 | |
@@ -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 | } |