Passed
Pull Request — 1.0 (#47)
by Vincent
16:04 queued 06:48
created
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.
src/Collection/ArrayCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
             return $items->all();
328 328
         }
329 329
         
330
-        return (array)$items;
330
+        return (array) $items;
331 331
     }
332 332
     
333 333
     /**
Please login to merge, or discard this patch.
src/Mapper/NameResolver/SuffixResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function resolve($entityClass)
27 27
     {
28
-        return $entityClass . $this->suffix;
28
+        return $entityClass.$this->suffix;
29 29
     }
30 30
     
31 31
     /**
Please login to merge, or discard this patch.
src/Mapper/Builder/FieldBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function boolean($name, $default = null)
155 155
     {
156
-        return $this->add($name, TypeInterface::BOOLEAN, $default !== null ? (bool)$default : null);
156
+        return $this->add($name, TypeInterface::BOOLEAN, $default !== null ? (bool) $default : null);
157 157
     }
158 158
 
159 159
     /**
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
     public function field($name)
606 606
     {
607 607
         if (!isset($this->fields[$name])) {
608
-            throw new \RuntimeException('Field ' . $name . ' not found');
608
+            throw new \RuntimeException('Field '.$name.' not found');
609 609
         }
610 610
 
611 611
         $this->current = $name;
Please login to merge, or discard this patch.
src/Mapper/SingleTableInheritanceMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $relation = parent::relation($relationName);
53 53
         
54 54
         if ($this->isDiscriminatedMapper() && $relation['type'] == Relation::BY_INHERITANCE) {
55
-            throw new \RuntimeException('Relation type not allowed from relation "' . $relationName . '" in ' . $this->getEntityClass());
55
+            throw new \RuntimeException('Relation type not allowed from relation "'.$relationName.'" in '.$this->getEntityClass());
56 56
         }
57 57
 
58 58
         return $relation;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         $discriminatorField = $this->metadata()->attributes[$this->discriminatorColumn]['field'];
149 149
 
150 150
         if (empty($data[$discriminatorField])) {
151
-            throw new \Exception('Discriminator field "' . $discriminatorField . '" not found');
151
+            throw new \Exception('Discriminator field "'.$discriminatorField.'" not found');
152 152
         }
153 153
 
154 154
         return $data[$discriminatorField];
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     public function getDiscriminatorType($discriminatorValue)
167 167
     {
168 168
         if (empty($this->discriminatorMap[$discriminatorValue])) {
169
-            throw new \Exception('Unknown discriminator type "' . $discriminatorValue . '"');
169
+            throw new \Exception('Unknown discriminator type "'.$discriminatorValue.'"');
170 170
         }
171 171
 
172 172
         return $this->discriminatorMap[$discriminatorValue];
Please login to merge, or discard this patch.