@@ -88,7 +88,7 @@ |
||
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * @param string $query |
| 91 | - * @param array $params |
|
| 91 | + * @param integer[] $params |
|
| 92 | 92 | * @return Query |
| 93 | 93 | */ |
| 94 | 94 | public static function customQuery($query, array $params = array()) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * @param string $column |
| 146 | - * @param mixed $value |
|
| 146 | + * @param integer $value |
|
| 147 | 147 | * @return $this |
| 148 | 148 | */ |
| 149 | 149 | public function whereNot($column, $value) |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | * Take care, the $values gets quoted! |
| 206 | 206 | * |
| 207 | 207 | * @param string $column |
| 208 | - * @param int|float|string $value |
|
| 208 | + * @param integer $value |
|
| 209 | 209 | * @return $this |
| 210 | 210 | */ |
| 211 | 211 | public function whereLt($column, $value) |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | * Take care, the $values gets quoted! |
| 220 | 220 | * |
| 221 | 221 | * @param string $column |
| 222 | - * @param int|float|string $value |
|
| 222 | + * @param integer $value |
|
| 223 | 223 | * @return $this |
| 224 | 224 | */ |
| 225 | 225 | public function whereLte($column, $value) |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | * Take care, the $values gets quoted! |
| 234 | 234 | * |
| 235 | 235 | * @param string $column |
| 236 | - * @param int|float|string $value |
|
| 236 | + * @param integer $value |
|
| 237 | 237 | * @return $this |
| 238 | 238 | */ |
| 239 | 239 | public function whereGt($column, $value) |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | * Take care, the $values gets quoted! |
| 248 | 248 | * |
| 249 | 249 | * @param string $column |
| 250 | - * @param int|float|string $value |
|
| 250 | + * @param integer $value |
|
| 251 | 251 | * @return $this |
| 252 | 252 | */ |
| 253 | 253 | public function whereGte($column, $value) |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | - * @return mixed |
|
| 403 | + * @return string|null |
|
| 404 | 404 | */ |
| 405 | 405 | public function findColumn() |
| 406 | 406 | { |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Rémy M. Böhler <[email protected]> |
|
| 4 | - */ |
|
| 3 | + * @author Rémy M. Böhler <[email protected]> |
|
| 4 | + */ |
|
| 5 | 5 | namespace Rorm; |
| 6 | 6 | |
| 7 | 7 | use PDO; |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | * Please make sure you keep the quoter as long you are needing it. |
| 88 | 88 | * |
| 89 | 89 | * @param \PDO $dbh |
| 90 | - * @return callable |
|
| 90 | + * @return \Closure |
|
| 91 | 91 | */ |
| 92 | 92 | public static function getIdentifierQuoter(PDO $dbh = null) |
| 93 | 93 | { |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Rémy M. Böhler <[email protected]> |
|
| 4 | - */ |
|
| 3 | + * @author Rémy M. Böhler <[email protected]> |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace Rorm; |
| 7 | 7 | |
@@ -95,12 +95,12 @@ |
||
| 95 | 95 | |
| 96 | 96 | if (static::isMySQL($dbh)) { |
| 97 | 97 | // mysql mode |
| 98 | - return function ($identifier) { |
|
| 98 | + return function($identifier) { |
|
| 99 | 99 | return '`' . str_replace('`', '``', $identifier) . '`'; |
| 100 | 100 | }; |
| 101 | 101 | } else { |
| 102 | 102 | // standard sql mode |
| 103 | - return function ($identifier) { |
|
| 103 | + return function($identifier) { |
|
| 104 | 104 | return '"' . str_replace('"', '""', $identifier) . '"'; |
| 105 | 105 | }; |
| 106 | 106 | } |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Rémy M. Böhler <[email protected]> |
|
| 4 | - */ |
|
| 3 | + * @author Rémy M. Böhler <[email protected]> |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace Rorm; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Rémy M. Böhler <[email protected]> |
|
| 4 | - */ |
|
| 3 | + * @author Rémy M. Böhler <[email protected]> |
|
| 4 | + */ |
|
| 5 | 5 | namespace Rorm; |
| 6 | 6 | |
| 7 | 7 | use PDO; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Rémy M. Böhler <[email protected]> |
|
| 4 | - */ |
|
| 3 | + * @author Rémy M. Böhler <[email protected]> |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace Rorm; |
| 7 | 7 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: remy |
|
| 4 | - */ |
|
| 3 | + * @author: remy |
|
| 4 | + */ |
|
| 5 | 5 | namespace RormTest; |
| 6 | 6 | |
| 7 | 7 | use PHPUnit_Framework_TestCase; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: remy |
|
| 4 | - */ |
|
| 3 | + * @author: remy |
|
| 4 | + */ |
|
| 5 | 5 | use Rorm\Model; |
| 6 | 6 | |
| 7 | 7 | /** |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: remy |
|
| 4 | - */ |
|
| 3 | + * @author: remy |
|
| 4 | + */ |
|
| 5 | 5 | namespace RormTest\Test; |
| 6 | 6 | |
| 7 | 7 | use Rorm\Model; |