@@ -94,7 +94,7 @@ |
||
94 | 94 | ); |
95 | 95 | } |
96 | 96 | |
97 | - return ' : [' . implode(', ', $buffer) . ']'; |
|
97 | + return ' : ['.implode(', ', $buffer).']'; |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | $query->joinEntity( |
45 | 45 | $this->distant->entityName(), |
46 | - function (JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); }, |
|
46 | + function(JoinClause $clause) use($alias, $query) { $this->buildJoinClause($clause, $query, $alias); }, |
|
47 | 47 | null, |
48 | 48 | $alias |
49 | 49 | ); |
@@ -172,21 +172,21 @@ |
||
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 |
@@ -87,7 +87,7 @@ discard block |
||
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 |
||
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 |
@@ -154,7 +154,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -327,7 +327,7 @@ |
||
327 | 327 | return $items->all(); |
328 | 328 | } |
329 | 329 | |
330 | - return (array)$items; |
|
330 | + return (array) $items; |
|
331 | 331 | } |
332 | 332 | |
333 | 333 | /** |
@@ -88,7 +88,7 @@ |
||
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 |
@@ -26,7 +26,7 @@ |
||
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) { |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |