Passed
Branch feature-validator (016165)
by Thomas
02:57
created
src/EntityFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
         $this->columns = ['t0.*'];
298 298
         $this->modifier = ['DISTINCT'];
299 299
 
300
-        return (int)$this->entityManager->getConnection()->query($query)->fetchColumn();
300
+        return (int) $this->entityManager->getConnection()->query($query)->fetchColumn();
301 301
     }
302 302
 
303 303
     /**
Please login to merge, or discard this patch.
src/Dbal/Mysql.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,7 @@
 block discarded – undo
74 74
         $definition['data_type'] = $this->normalizeType($rawColumn['Type']);
75 75
         $definition['column_name'] = $rawColumn['Field'];
76 76
         $definition['is_nullable'] = $rawColumn['Null'] === 'YES';
77
-        $definition['column_default'] = $rawColumn['Default'] !== null ? $rawColumn['Default'] :
78
-            ($rawColumn['Extra'] === 'auto_increment' ? 'sequence(AUTO_INCREMENT)' : null);
77
+        $definition['column_default'] = $rawColumn['Default'] !== null ? $rawColumn['Default'] : ($rawColumn['Extra'] === 'auto_increment' ? 'sequence(AUTO_INCREMENT)' : null);
79 78
         $definition['character_maximum_length'] = null;
80 79
         $definition['datetime_precision'] = null;
81 80
 
Please login to merge, or discard this patch.
src/Dbal/Sqlite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $rawColumns = $result->fetchAll(\PDO::FETCH_ASSOC);
58 58
 
59 59
         if (count($rawColumns) === 0) {
60
-            throw new Exception('Unknown table '  . $table);
60
+            throw new Exception('Unknown table ' . $table);
61 61
         }
62 62
 
63 63
         $hasMultiplePrimaryKey = $this->hasMultiplePrimaryKey($rawColumns);
Please login to merge, or discard this patch.
src/Dbal/Pgsql.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $result = $this->em->getConnection()->query($query->getQuery());
72 72
         $rawColumns = $result->fetchAll(PDO::FETCH_ASSOC);
73 73
         if (count($rawColumns) === 0) {
74
-            throw new Exception('Unknown table '  . $schemaTable);
74
+            throw new Exception('Unknown table ' . $schemaTable);
75 75
         }
76 76
 
77 77
         $cols = array_map(function ($columnDefinition) {
Please login to merge, or discard this patch.
src/Dbal/Type/VarChar.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 __construct($maxLength = null)
27 27
     {
28
-        $this->maxLength = (int)$maxLength;
28
+        $this->maxLength = (int) $maxLength;
29 29
     }
30 30
 
31 31
     public static function factory(Dbal $dbal, array $columnDefinition)
Please login to merge, or discard this patch.
src/Dbal/Type/DateTime.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,10 +31,9 @@
 block discarded – undo
31 31
      */
32 32
     public function __construct($precision = null, $dateOnly = false)
33 33
     {
34
-        $this->precision = (int)$precision;
34
+        $this->precision = (int) $precision;
35 35
         $this->regex = $dateOnly ?
36
-            '/^' . self::DATE_REGEX . '([ T]' . self::TIME_REGEX . self::ZONE_REGEX . ')?$/' :
37
-            '/^' . self::DATE_REGEX . '[ T]' . self::TIME_REGEX . self::ZONE_REGEX . '$/';
36
+            '/^' . self::DATE_REGEX . '([ T]' . self::TIME_REGEX . self::ZONE_REGEX . ')?$/' : '/^' . self::DATE_REGEX . '[ T]' . self::TIME_REGEX . self::ZONE_REGEX . '$/';
38 37
     }
39 38
 
40 39
     public static function factory(Dbal $dbal, array $columnDefinition)
Please login to merge, or discard this patch.
src/Dbal/Type/Boolean.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
         }
47 47
 
48 48
         if (is_int($value)) {
49
-            $value = (string)$value;
49
+            $value = (string) $value;
50 50
         }
51 51
 
52 52
         if (is_string($value) && ($value === $this->true || $value === $this->false)) {
Please login to merge, or discard this patch.