Passed
Push — main ( efab48...3626c9 )
by Thierry
01:26
created
src/Db/DatabaseInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
      *
115 115
      * @return array
116 116
      */
117
-    public function userTypes() ;
117
+    public function userTypes();
118 118
 
119 119
     /**
120 120
      * Get existing schemas
Please login to merge, or discard this patch.
src/Db/ServerInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @return boolean
67 67
      */
68
-    public function createDatabase(string $database, string $collation) ;
68
+    public function createDatabase(string $database, string $collation);
69 69
 
70 70
     /**
71 71
      * Drop databases
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      *
92 92
      * @return array
93 93
      */
94
-    public function routineLanguages() ;
94
+    public function routineLanguages();
95 95
 
96 96
     /**
97 97
      * Get server variables
Please login to merge, or discard this patch.
src/Driver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -495,7 +495,7 @@
 block discarded – undo
495 495
     public function applyQueries(string $query, array $tables, $escape = null)
496 496
     {
497 497
         if (!$escape) {
498
-            $escape = function ($table) {
498
+            $escape = function($table) {
499 499
                 return $this->table($table);
500 500
             };
501 501
         }
Please login to merge, or discard this patch.
src/Db/Grammar.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
         $database = $foreignKey->database;
107 107
         $schema = $foreignKey->schema;
108 108
         $onActions = $this->driver->actions();
109
-        $sources = implode(', ', array_map(function ($idf) {
109
+        $sources = implode(', ', array_map(function($idf) {
110 110
             return $this->escapeId($idf);
111 111
         }, $foreignKey->source));
112
-        $targets = implode(', ', array_map(function ($idf) {
112
+        $targets = implode(', ', array_map(function($idf) {
113 113
             return $this->escapeId($idf);
114 114
         }, $foreignKey->target));
115 115
 
@@ -282,8 +282,7 @@  discard block
 block discarded – undo
282 282
      */
283 283
     private function notQuery(QueryEntity $queryEntity, string $found, array &$match)
284 284
     {
285
-        return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' :
286
-            (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s',
285
+        return preg_match('(' . ($found == '/*' ? '\*/' : ($found == '[' ? ']' : (preg_match('~^-- |^#~', $found) ? "\n" : preg_quote($found) . "|\\\\."))) . '|$)s',
287 286
             $queryEntity->queries, $match, PREG_OFFSET_CAPTURE, $queryEntity->offset);
288 287
     }
289 288
 
Please login to merge, or discard this patch.