@@ -244,7 +244,7 @@ |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | /** |
247 | - * @param mixed $value |
|
247 | + * @param string $value |
|
248 | 248 | * @return array |
249 | 249 | * @throws JSONTextDataException |
250 | 250 | */ |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | return $this->returnAsType([]); |
294 | 294 | } |
295 | 295 | |
296 | - $count = count($data) -1; |
|
296 | + $count = count($data)-1; |
|
297 | 297 | $key = array_keys($data)[$count]; |
298 | 298 | $val = array_values($data)[$count]; |
299 | 299 | |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | return $result; |
397 | 397 | } |
398 | 398 | } |
399 | - } else if($expressionParamIsValid) { |
|
399 | + } else if ($expressionParamIsValid) { |
|
400 | 400 | $dbBackendInst = $this->backendFactory($expression); |
401 | 401 | |
402 | 402 | if ($result = $dbBackendInst->matchOnExpr()) { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * in the relevant JSON data. Therefore we need to pre-populate each such field's |
135 | 135 | * value. |
136 | 136 | * |
137 | - * @param FieldList $fields |
|
137 | + * @param \SilverStripe\Forms\FieldList $fields |
|
138 | 138 | * @return void |
139 | 139 | */ |
140 | 140 | public function updateCMSFields(\SilverStripe\Forms\FieldList $fields) |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function __construct() |
41 | 41 | { |
42 | - foreach($this->fixtures as $name => $path) { |
|
42 | + foreach ($this->fixtures as $name => $path) { |
|
43 | 43 | $this->fixtures[$name] = realpath(__DIR__) . '/' . $path; |
44 | 44 | } |
45 | 45 | |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | $field->setReturnType('array'); |
245 | 245 | $field->setValue($this->getFixture('object')); |
246 | 246 | $this->assertEquals( |
247 | - [['Subaru' => 'Impreza'],['Kawasaki' => 'KR1S250']], |
|
247 | + [['Subaru' => 'Impreza'], ['Kawasaki' => 'KR1S250']], |
|
248 | 248 | $field->query('#>', '{"japanese":"fast"}') |
249 | 249 | ); |
250 | 250 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct() |
29 | 29 | { |
30 | - foreach($this->fixtures as $name => $path) { |
|
30 | + foreach ($this->fixtures as $name => $path) { |
|
31 | 31 | $this->fixtures[$name] = realpath(__DIR__) . '/' . $path; |
32 | 32 | } |
33 | 33 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct() |
29 | 29 | { |
30 | - foreach($this->fixtures as $name => $path) { |
|
30 | + foreach ($this->fixtures as $name => $path) { |
|
31 | 31 | $this->fixtures[$name] = realpath(__DIR__) . '/' . $path; |
32 | 32 | } |
33 | 33 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct() |
29 | 29 | { |
30 | - foreach($this->fixtures as $name => $path) { |
|
30 | + foreach ($this->fixtures as $name => $path) { |
|
31 | 31 | $this->fixtures[$name] = realpath(__DIR__) . '/' . $path; |
32 | 32 | } |
33 | 33 |