Passed
Pull Request — master (#42)
by Viacheslav
02:53 queued 10s
created
tests/src/JsonPatchTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,25 +75,25 @@  discard block
 block discarded – undo
75 75
     public function testMissingOp()
76 76
     {
77 77
         $this->setExpectedException(get_class(new Exception()), 'Missing "op" in operation data');
78
-        JsonPatch::import(array((object)array('path' => '/123')));
78
+        JsonPatch::import(array((object) array('path' => '/123')));
79 79
     }
80 80
 
81 81
     public function testMissingPath()
82 82
     {
83 83
         $this->setExpectedException(get_class(new Exception()), 'Missing "path" in operation data');
84
-        JsonPatch::import(array((object)array('op' => 'wat')));
84
+        JsonPatch::import(array((object) array('op' => 'wat')));
85 85
     }
86 86
 
87 87
     public function testInvalidOp()
88 88
     {
89 89
         $this->setExpectedException(get_class(new Exception()), 'Unknown "op": wat');
90
-        JsonPatch::import(array((object)array('op' => 'wat', 'path' => '/123')));
90
+        JsonPatch::import(array((object) array('op' => 'wat', 'path' => '/123')));
91 91
     }
92 92
 
93 93
     public function testMissingFrom()
94 94
     {
95 95
         $this->setExpectedException(get_class(new Exception()), 'Missing "from" in operation data');
96
-        JsonPatch::import(array((object)array('op' => 'copy', 'path' => '/123')));
96
+        JsonPatch::import(array((object) array('op' => 'copy', 'path' => '/123')));
97 97
     }
98 98
 
99 99
     public function testMissingValue()
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $p = new JsonPatch();
140 140
         $p->op(new JsonPatch\Add('/some', 22));
141 141
         $p->apply($data);
142
-        $this->assertEquals((object)array('some' => 22), $data);
142
+        $this->assertEquals((object) array('some' => 22), $data);
143 143
     }
144 144
 
145 145
 }
146 146
\ No newline at end of file
Please login to merge, or discard this patch.
benchmarks/DiffBench.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
 
39 39
     static function init()
40 40
     {
41
-        self::$simpleOriginal = (object)(array("root" => (object)array("a" => 1, "b" => 2)));
42
-        self::$simpleNew = (object)(array("root" => (object)array("b" => 3, "c" => 4)));
41
+        self::$simpleOriginal = (object) (array("root" => (object) array("a" => 1, "b" => 2)));
42
+        self::$simpleNew = (object) (array("root" => (object) array("b" => 3, "c" => 4)));
43 43
         self::$original = json_decode(<<<'JSON'
44 44
 {
45 45
   "key1": [
Please login to merge, or discard this patch.