@@ -239,7 +239,7 @@ |
||
239 | 239 | } |
240 | 240 | |
241 | 241 | /** |
242 | - * @param mixed $value |
|
242 | + * @param string $value |
|
243 | 243 | * @return array |
244 | 244 | * @throws \JSONText\Exceptions\JSONTextDataException |
245 | 245 | */ |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | return $this->returnAsType([]); |
289 | 289 | } |
290 | 290 | |
291 | - $count = count($data) -1; |
|
291 | + $count = count($data)-1; |
|
292 | 292 | $key = array_keys($data)[$count]; |
293 | 293 | $val = array_values($data)[$count]; |
294 | 294 | |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | return $result; |
390 | 390 | } |
391 | 391 | } |
392 | - } else if($expressionParamIsValid) { |
|
392 | + } else if ($expressionParamIsValid) { |
|
393 | 393 | $dbBackendInst = $this->createBackendInst($expression); |
394 | 394 | if ($result = $dbBackendInst->matchOnExpr()) { |
395 | 395 | return $result; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * |
56 | 56 | * @return null |
57 | 57 | */ |
58 | - public function onBeforeWrite() |
|
58 | + public function onBeforeWrite() |
|
59 | 59 | { |
60 | 60 | parent::onBeforeWrite(); |
61 | 61 |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - protected $extraDataObjects = [ |
|
22 | - 'JSONTextTestPage', |
|
23 | - ]; |
|
21 | + protected $extraDataObjects = [ |
|
22 | + 'JSONTextTestPage', |
|
23 | + ]; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Is an exception thrown when no POSTed vars are available for |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | $response = $this->post('admin/pages/edit/EditForm', [ |
38 | 38 | 'Title' => 'Dummy', |
39 | 39 | 'URLSegment' => 'dummy', |
40 | - 'action_save' => 1, |
|
41 | - 'ID' => 44, |
|
40 | + 'action_save' => 1, |
|
41 | + 'ID' => 44, |
|
42 | 42 | 'ParentID' => 1, |
43 | - ]); |
|
43 | + ]); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 |