Test Failed
Push — master ( 9a0773...1fd30e )
by Sébastien
07:48
created
src/Relations/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@
 block discarded – undo
230 230
                 break;
231 231
 
232 232
             default:
233
-                throw new \RuntimeException('Unknown type from relation "' . $relationName . '" in ' . $repository->entityName());
233
+                throw new \RuntimeException('Unknown type from relation "'.$relationName.'" in '.$repository->entityName());
234 234
         }
235 235
 
236 236
         return $relation->setOptions($relationMeta);
Please login to merge, or discard this patch.
src/Relations/ByInheritance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      */
92 92
     public function join($query, $alias = null)
93 93
     {
94
-        $parts = explode('#', (string)$alias);
94
+        $parts = explode('#', (string) $alias);
95 95
 
96 96
         if (!isset($parts[1])) {
97 97
             throw new \LogicException('Joins are not supported on polymorph without discriminator');
Please login to merge, or discard this patch.
src/Relations/Info/NullRelationInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public static function instance()
38 38
     {
39
-        if (self::$instance === null)  {
39
+        if (self::$instance === null) {
40 40
             return self::$instance = new self;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
src/Relations/AbstractRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
      */
160 160
     public function setDetached($flag)
161 161
     {
162
-        $this->isDetached = (bool)$flag;
162
+        $this->isDetached = (bool) $flag;
163 163
 
164 164
         return $this;
165 165
     }
Please login to merge, or discard this patch.
src/IdGenerators/TableGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         switch ($platform->name()) {
47 47
             case 'mysql':
48 48
                 $connection->executeUpdate('UPDATE '.$metadata->sequence['table']
49
-                    .' SET '. $metadata->sequence['column'].' = LAST_INSERT_ID('.$metadata->sequence['column'].'+1)');
49
+                    .' SET '.$metadata->sequence['column'].' = LAST_INSERT_ID('.$metadata->sequence['column'].'+1)');
50 50
                 return $connection->lastInsertId();
51 51
             
52 52
             case 'sqlite':
Please login to merge, or discard this patch.
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/Visitor/Graphviz.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
      */
41 41
     public function acceptSchema(Schema $schema)
42 42
     {
43
-        $this->output  = 'digraph "' . sha1(mt_rand()) . '" {' . "\n";
44
-        $this->output .= 'graph [fontname="helvetica", fontsize=12];' . "\n";
45
-        $this->output .= 'node [fontname="helvetica", fontsize=12];' . "\n";
46
-        $this->output .= 'edge [fontname="helvetica", fontsize=12];' . "\n";
43
+        $this->output  = 'digraph "'.sha1(mt_rand()).'" {'."\n";
44
+        $this->output .= 'graph [fontname="helvetica", fontsize=12];'."\n";
45
+        $this->output .= 'node [fontname="helvetica", fontsize=12];'."\n";
46
+        $this->output .= 'edge [fontname="helvetica", fontsize=12];'."\n";
47 47
 //        $this->output .= 'splines = true;' . "\n";
48 48
 //        $this->output .= 'overlap = false;' . "\n";
49 49
 //        $this->output .= 'outputorder=edgesfirst;'."\n";
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.