Completed
Push — master ( 190091...7bc446 )
by Russell
9s
created
code/ORM/FieldType/JSONText.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
     }
245 245
 
246 246
     /**
247
-     * @param  mixed $value
247
+     * @param  string $value
248 248
      * @return array
249 249
      * @throws JSONTextDataException
250 250
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
tests/JSONTextBasicTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function __construct()
35 35
     {
36
-        foreach($this->fixtures as $name => $path) {
36
+        foreach ($this->fixtures as $name => $path) {
37 37
             $this->fixtures[$name] = realpath(__DIR__) . '/' . $path;
38 38
         }
39 39
     }
Please login to merge, or discard this patch.
tests/JSONTextTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function __construct()
32 32
     {
33
-        foreach($this->fixtures as $name => $path) {
33
+        foreach ($this->fixtures as $name => $path) {
34 34
             $this->fixtures[$name] = realpath(__DIR__) . '/' . $path;
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
tests/JSONTextQueryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
     }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         $field->setReturnType('array');
243 243
         $field->setValue($this->getFixture('object'));
244 244
         $this->assertEquals(
245
-            [['Subaru' => 'Impreza'],['Kawasaki' => 'KR1S250']],
245
+            [['Subaru' => 'Impreza'], ['Kawasaki' => 'KR1S250']],
246 246
             $field->query('#>', '{"japanese":"fast"}')
247 247
         );
248 248
 
Please login to merge, or discard this patch.
tests/JSONTextSetValueTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
code/Extension/JSONTextExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      *
59 59
      * @return null
60 60
      */
61
-	public function onBeforeWrite()
61
+    public function onBeforeWrite()
62 62
     {
63 63
         parent::onBeforeWrite();
64 64
 
Please login to merge, or discard this patch.