Passed
Push — main ( 61fcfb...6f7eb5 )
by Thierry
01:40
created
src/Db/ServerInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      *
89 89
      * @return string|boolean
90 90
      */
91
-    public function createDatabase(string $database, string $collation) ;
91
+    public function createDatabase(string $database, string $collation);
92 92
 
93 93
     /**
94 94
      * Drop databases
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      *
132 132
      * @return array
133 133
      */
134
-    public function routineLanguages() ;
134
+    public function routineLanguages();
135 135
 
136 136
     /**
137 137
      * Get routine signature
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      *
149 149
      * @return array
150 150
      */
151
-    public function userTypes() ;
151
+    public function userTypes();
152 152
 
153 153
     /**
154 154
      * Get existing schemas
Please login to merge, or discard this patch.
src/Db/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     public function applyQueries(string $query, array $tables, $escape = null)
241 241
     {
242 242
         if (!$escape) {
243
-            $escape = function ($table) {
243
+            $escape = function($table) {
244 244
                 return $this->driver->table($table);
245 245
             };
246 246
         }
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
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
         $database = $foreignKey->database;
83 83
         $schema = $foreignKey->schema;
84 84
         $onActions = $this->driver->actions();
85
-        $sources = implode(', ', array_map(function ($idf) {
85
+        $sources = implode(', ', array_map(function($idf) {
86 86
             return $this->escapeId($idf);
87 87
         }, $foreignKey->source));
88
-        $targets = implode(', ', array_map(function ($idf) {
88
+        $targets = implode(', ', array_map(function($idf) {
89 89
             return $this->escapeId($idf);
90 90
         }, $foreignKey->target));
91 91
 
@@ -148,8 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function applySqlFunction(string $function, string $column)
150 150
     {
151
-        return ($function ? ($function == "unixepoch" ? "DATETIME($column, '$function')" :
152
-            ($function == "count distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)") : $column);
151
+        return ($function ? ($function == "unixepoch" ? "DATETIME($column, '$function')" : ($function == "count distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)") : $column);
153 152
     }
154 153
 
155 154
     /**
Please login to merge, or discard this patch.