Passed
Push — master ( 6c900b...b2b78e )
by Vincent
09:01 queued 13s
created
src/Schema/Visitor/MapperVisitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -172,21 +172,21 @@
 block discarded – undo
172 172
         if ($default !== null) {
173 173
             switch ($type) {
174 174
                 case TypeInterface::BOOLEAN:
175
-                    $default = (boolean)$default;
175
+                    $default = (boolean) $default;
176 176
                     break;
177 177
 
178 178
                 case TypeInterface::TINYINT:
179 179
                 case TypeInterface::SMALLINT:
180 180
                 case TypeInterface::INTEGER:
181
-                    $default = (int)$default;
181
+                    $default = (int) $default;
182 182
                     break;
183 183
 
184 184
                 case TypeInterface::FLOAT:
185
-                    $default = (float)$default;
185
+                    $default = (float) $default;
186 186
                     break;
187 187
 
188 188
                 case TypeInterface::DOUBLE:
189
-                    $default = (double)$default;
189
+                    $default = (double) $default;
190 190
                     break;
191 191
             }
192 192
 
Please login to merge, or discard this patch.
src/Schema/Util/Name.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public static function generate($prefix, array $parts, $length = self::DEFAULT_LENGTH)
22 22
     {
23
-        $hash = implode('', array_map(function ($part) {
23
+        $hash = implode('', array_map(function($part) {
24 24
             return dechex(crc32($part));
25 25
         }, $parts));
26 26
 
Please login to merge, or discard this patch.
src/Schema/Transformer/Doctrine/TableTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
 
54 54
         return new Table(
55 55
             $this->table->name(),
56
-            array_map(function (ColumnInterface $column) {
56
+            array_map(function(ColumnInterface $column) {
57 57
                 return (new ColumnTransformer($column, $this->platform))
58 58
                     ->toDoctrine();
59 59
             }, $this->table->columns()),
60
-            array_map(function (IndexInterface $index) {
60
+            array_map(function(IndexInterface $index) {
61 61
                 return (new IndexTransformer($index))
62 62
                     ->toDoctrine();
63 63
             }, $this->table->indexes()->all()),
Please login to merge, or discard this patch.
src/Schema/Comparator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function setListDropColumn($flag)
30 30
     {
31
-        $this->listDropColumn = (bool)$flag;
31
+        $this->listDropColumn = (bool) $flag;
32 32
     }
33 33
     
34 34
     /**
Please login to merge, or discard this patch.
src/Schema/Adapter/Metadata/MetadataTable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function columns()
50 50
     {
51
-        return array_map(function ($meta) {
51
+        return array_map(function($meta) {
52 52
             return $this->column($meta['field']);
53 53
         }, $this->metadata->fields);
54 54
     }
Please login to merge, or discard this patch.
src/Schema/Adapter/Doctrine/DoctrineTable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         return new IndexSet(
90 90
             array_map(
91
-                function ($index) {
91
+                function($index) {
92 92
                     return new DoctrineIndex($index);
93 93
                 },
94 94
                 $this->table->getIndexes()
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         return new ConstraintSet(
105 105
             array_map(
106
-                function ($fk) {
106
+                function($fk) {
107 107
                     return new DoctrineForeignKey($fk);
108 108
                 },
109 109
                 $this->table->getForeignKeys()
Please login to merge, or discard this patch.
src/Schema/Builder/TableBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
             $constraintName,
186 186
             isset($options['onDelete']) ? $options['onDelete'] : ForeignKey::MODE_RESTRICT,
187 187
             isset($options['onUpdate']) ? $options['onUpdate'] : ForeignKey::MODE_RESTRICT,
188
-            isset($options['match']) ?    $options['match']    : ForeignKey::MATCH_SIMPLE
188
+            isset($options['match']) ? $options['match'] : ForeignKey::MATCH_SIMPLE
189 189
         );
190 190
 
191 191
         $this->foreignKeys[$foreignKey->name()] = $foreignKey;
Please login to merge, or discard this patch.
src/Schema/SchemaManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $tables = [$tables];
88 88
         }
89 89
 
90
-        $tables = array_map(function ($table) {
90
+        $tables = array_map(function($table) {
91 91
             if ($table instanceof TableInterface) {
92 92
                 return (new TableTransformer($table, $this->platform))->toDoctrine();
93 93
             }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             $queries = $queries->toSql($this->platform->grammar());
236 236
         }
237 237
 
238
-        foreach ((array)$queries as $query) {
238
+        foreach ((array) $queries as $query) {
239 239
             $this->queries[] = $query;
240 240
         }
241 241
 
Please login to merge, or discard this patch.
src/Platform/PlatformTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             return $this->get($type)->toDatabase($value);
155 155
         }
156 156
 
157
-        throw new TypeException(gettype($value), 'Cannot convert to database the value : ' . print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
157
+        throw new TypeException(gettype($value), 'Cannot convert to database the value : '.print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
158 158
     }
159 159
 
160 160
     /**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             return null;
177 177
         }
178 178
 
179
-        throw new TypeException(gettype($value), 'Cannot convert to php the value : ' . print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
179
+        throw new TypeException(gettype($value), 'Cannot convert to php the value : '.print_r($value, true).PHP_EOL.'You should set a valid type as second parameter');
180 180
     }
181 181
 
182 182
     /**
Please login to merge, or discard this patch.