@@ -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 | |
@@ -77,9 +77,9 @@ discard block |
||
| 77 | 77 | } elseif ($value === null) { |
| 78 | 78 | return 'NULL'; |
| 79 | 79 | } elseif (is_int($value)) { |
| 80 | - return (int)$value; |
|
| 80 | + return (int) $value; |
|
| 81 | 81 | } elseif (is_float($value)) { |
| 82 | - return (float)$value; |
|
| 82 | + return (float) $value; |
|
| 83 | 83 | } |
| 84 | 84 | return $dbh->quote($value); |
| 85 | 85 | } |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | |
| 98 | 98 | if (static::isMySQL($dbh)) { |
| 99 | 99 | // mysql mode |
| 100 | - return function ($identifier) { |
|
| 100 | + return function($identifier) { |
|
| 101 | 101 | return '`' . str_replace('`', '``', $identifier) . '`'; |
| 102 | 102 | }; |
| 103 | 103 | } else { |
| 104 | 104 | // standard sql mode |
| 105 | - return function ($identifier) { |
|
| 105 | + return function($identifier) { |
|
| 106 | 106 | return '"' . str_replace('"', '""', $identifier) . '"'; |
| 107 | 107 | }; |
| 108 | 108 | } |
@@ -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 | |
| 6 | 6 | namespace Rorm; |
| 7 | 7 | |
@@ -379,11 +379,11 @@ discard block |
||
| 379 | 379 | |
| 380 | 380 | // limit |
| 381 | 381 | if ($this->limit !== null) { |
| 382 | - $query .= ' LIMIT ' . (int)$this->limit; |
|
| 382 | + $query .= ' LIMIT ' . (int) $this->limit; |
|
| 383 | 383 | |
| 384 | 384 | // offset |
| 385 | 385 | if ($this->offset !== null) { |
| 386 | - $query .= ' OFFSET ' . (int)$this->offset; |
|
| 386 | + $query .= ' OFFSET ' . (int) $this->offset; |
|
| 387 | 387 | } |
| 388 | 388 | } |
| 389 | 389 | |
@@ -444,6 +444,6 @@ discard block |
||
| 444 | 444 | $count = $this->findColumn(); |
| 445 | 445 | $this->select = $select; |
| 446 | 446 | |
| 447 | - return $count === null ? null : (int)$count; |
|
| 447 | + return $count === null ? null : (int) $count; |
|
| 448 | 448 | } |
| 449 | 449 | } |
@@ -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 | |