Passed
Push — main ( 6f7eb5...08bfff )
by Thierry
01:29
created
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
 
@@ -138,8 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function applySqlFunction(string $function, string $column)
140 140
     {
141
-        return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" :
142
-            ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column);
141
+        return ($function ? ($function == 'unixepoch' ? "DATETIME($column, '$function')" : ($function == 'count distinct' ? 'COUNT(DISTINCT ' : strtoupper("$function(")) . "$column)") : $column);
143 142
     }
144 143
 
145 144
     /**
Please login to merge, or discard this patch.