Completed
Push — master ( 58d054...1c36bc )
by Vincent
06:17
created
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/ConnectionManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         // Replace 'adapter' with 'driver' and add 'pdo_'
145 145
         if (isset($parameters['adapter'])) {
146
-            $parameters['driver'] = 'pdo_' . $parameters['adapter'];
146
+            $parameters['driver'] = 'pdo_'.$parameters['adapter'];
147 147
             unset($parameters['adapter']);
148 148
         }
149 149
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
         // Connection name must be unique
220 220
         if (!isset($this->connections[$name]) && !$this->loadSubConnection($name) && !$this->loadConnectionFromConfig($name)) {
221
-            throw new DBALException('Connection name "' . $name . '" is not set');
221
+            throw new DBALException('Connection name "'.$name.'" is not set');
222 222
         }
223 223
         
224 224
         return $this->connections[$name];
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.
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/MetadataIndexSet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function all()
44 44
     {
45
-        $indexes =  $this->extractIndexes($this->metadata->indexes);
45
+        $indexes = $this->extractIndexes($this->metadata->indexes);
46 46
 
47 47
         $primary = $this->primary();
48 48
         $indexes[$primary->name()] = $primary;
Please login to merge, or discard this patch.