Passed
Pull Request — master (#33)
by Vincent
06:12
created
src/Mapper/Metadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -842,7 +842,7 @@  discard block
 block discarded – undo
842 842
             $attributePath = $attribute;
843 843
             $path          = null;
844 844
         } else {
845
-            $attributePath = $embeddedMeta['path'] . '.' . $attribute;
845
+            $attributePath = $embeddedMeta['path'].'.'.$attribute;
846 846
             $path          = $embeddedMeta['path'];
847 847
         }
848 848
 
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
                             : $this->connection,
901 901
             'table'      => isset($sequence['table'])
902 902
                             ? $sequence['table']
903
-                            : $this->table . '_seq',
903
+                            : $this->table.'_seq',
904 904
             'column'     => isset($sequence['column'])
905 905
                             ? $sequence['column']
906 906
                             : 'id',
Please login to merge, or discard this patch.
src/Entity/Criteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                 $this->remove($attribute);
89 89
             }
90 90
             
91
-            $this->criteria[$filter]  = $value;
91
+            $this->criteria[$filter] = $value;
92 92
             $this->inputs[$attribute][] = $filter;
93 93
         }
94 94
         
Please login to merge, or discard this patch.
src/Entity/Extensions/ArrayInjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         foreach ($data as $attribute => $value) {
29
-            $method = 'set' . ucfirst($attribute);
29
+            $method = 'set'.ucfirst($attribute);
30 30
             $exists = property_exists($this, $attribute);
31 31
             
32 32
             if ($exists && $this->$attribute instanceof ImportableInterface && !$value instanceof ImportableInterface) {
Please login to merge, or discard this patch.
src/Entity/Hydrator/Generator/CodeGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             return '';
39 39
         }
40 40
 
41
-        return 'namespace ' . $namespace . ';';
41
+        return 'namespace '.$namespace.';';
42 42
     }
43 43
 
44 44
     /**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $out = '';
55 55
 
56 56
         foreach ($names as $property) {
57
-            $out .= $visibility.' $' . $property . ';'.$this->eol;
57
+            $out .= $visibility.' $'.$property.';'.$this->eol;
58 58
         }
59 59
 
60 60
         return $out;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function simpleConstructor($properties)
71 71
     {
72
-        $parameters = implode(', ', array_map(function ($p) { return '$'.$p; }, $properties));
72
+        $parameters = implode(', ', array_map(function($p) { return '$'.$p; }, $properties));
73 73
         $content = '';
74 74
 
75 75
         foreach ($properties as $property) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $content .= $this->eol;
78 78
             }
79 79
 
80
-            $content .= '$this->' . $property . ' = $' . $property . ';';
80
+            $content .= '$this->'.$property.' = $'.$property.';';
81 81
         }
82 82
 
83 83
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $spaces = str_repeat($this->tab, $tabs);
103 103
 
104
-        return $spaces . str_replace($this->eol, $this->eol.$spaces, $code);
104
+        return $spaces.str_replace($this->eol, $this->eol.$spaces, $code);
105 105
     }
106 106
 
107 107
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      *
160 160
      * @return string
161 161
      */
162
-    public function switch($varName, array $cases, $default = null)
162
+    public function switch ($varName, array $cases, $default = null)
163 163
     {
164 164
         $code = 'switch ('.$varName.') {'.$this->eol;
165 165
 
Please login to merge, or discard this patch.
src/Relations/MorphTo.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/Entity/Hydrator/Generator/TypeAccessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      *
40 40
      * @param string $type
41 41
      */
42
-    public function declare(string $type): void
42
+    public function declare(string$type): void
43 43
     {
44 44
         if (isset($this->declaredTypes[$type])) {
45 45
             return;
Please login to merge, or discard this patch.
src/Connection/Factory/ConnectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         // Replace 'adapter' with 'driver' and add 'pdo_'
66 66
         if (isset($parameters['adapter'])) {
67
-            $parameters['driver'] = 'pdo_' . $parameters['adapter'];
67
+            $parameters['driver'] = 'pdo_'.$parameters['adapter'];
68 68
             unset($parameters['adapter']);
69 69
         }
70 70
 
Please login to merge, or discard this patch.
src/Query/Extension/CachableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
     {
45 45
         if ($this->cacheKey === null) {
46 46
             $this->cacheKey = new CacheKey(
47
-                function () { return $this->cacheNamespace(); },
48
-                $key ?? function () { return $this->cacheKey(); },
47
+                function() { return $this->cacheNamespace(); },
48
+                $key ?? function() { return $this->cacheKey(); },
49 49
                 $lifetime
50 50
             );
51 51
 
Please login to merge, or discard this patch.
src/Sharding/ShardingQuery.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $count = 0;
109 109
 
110 110
         foreach ($this->execute() as $result) {
111
-            $count += (int)$result['aggregate'];
111
+            $count += (int) $result['aggregate'];
112 112
         }
113 113
 
114 114
         $this->compilerState->invalidate(['columns', 'orders']);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     #[ReadOperation]
124 124
     public function count($column = null)
125 125
     {
126
-        return (int)array_sum($this->aggregate(__FUNCTION__, $column));
126
+        return (int) array_sum($this->aggregate(__FUNCTION__, $column));
127 127
     }
128 128
 
129 129
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
     {
135 135
         $numbers = $this->aggregate(__FUNCTION__, $column);
136 136
 
137
-        return array_sum($numbers)/count($numbers);
137
+        return array_sum($numbers) / count($numbers);
138 138
     }
139 139
 
140 140
     /**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     #[ReadOperation]
144 144
     public function min($column = null)
145 145
     {
146
-        return (float)min($this->aggregate(__FUNCTION__, $column));
146
+        return (float) min($this->aggregate(__FUNCTION__, $column));
147 147
     }
148 148
 
149 149
     /**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     #[ReadOperation]
153 153
     public function max($column = null)
154 154
     {
155
-        return (float)max($this->aggregate(__FUNCTION__, $column));
155
+        return (float) max($this->aggregate(__FUNCTION__, $column));
156 156
     }
157 157
 
158 158
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     #[ReadOperation]
162 162
     public function sum($column = null)
163 163
     {
164
-        return (float)array_sum($this->aggregate(__FUNCTION__, $column));
164
+        return (float) array_sum($this->aggregate(__FUNCTION__, $column));
165 165
     }
166 166
 
167 167
     /**
Please login to merge, or discard this patch.