Completed
Push — master ( 301d75...7b46e5 )
by Russell
02:43
created
tests/JSONTextTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  */
8 8
 
9 9
 use JSONText\Fields;
10
-use JSONText\Exceptions;
11 10
 
12 11
 class JSONTextTest extends SapphireTest
13 12
 {
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
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function __construct()
30 30
     {
31
-        foreach($this->fixtures as $name => $path) {
31
+        foreach ($this->fixtures as $name => $path) {
32 32
             $this->fixtures[$name] = MODULE_DIR . '/' . $path;
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
code/models/fieldtypes/JSONText.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             return $this->returnAsType([]);
298 298
         }
299 299
 
300
-        $count = count($data) -1;
300
+        $count = count($data)-1;
301 301
         $key = array_keys($data)[$count];
302 302
         $val = array_values($data)[$count];
303 303
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
                     return $result;
404 404
                 }
405 405
             }
406
-        } else if($expressionParamIsValid) {
406
+        } else if ($expressionParamIsValid) {
407 407
             $backendDBApiInst = \Injector::inst()->createWithArgs(
408 408
                 '\JSONText\Backends\\' . $dbBackend, [
409 409
                 $expression,
Please login to merge, or discard this patch.