@@ -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 | |
| 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 | |