Passed
Push — develop ( 382a1c...fabbc1 )
by Freddie
02:17
created
src/Entity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function __toString()
98 98
     {
99
-        return (string)\json_encode($this->toArray(), JSON_ERROR_NONE);
99
+        return (string) \json_encode($this->toArray(), JSON_ERROR_NONE);
100 100
     }
101 101
 
102 102
     /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private function camelCase(string $attribute): string
120 120
     {
121
-        $string = \preg_replace_callback('/_(.?)/', function ($matches) {
121
+        $string = \preg_replace_callback('/_(.?)/', function($matches) {
122 122
             return \ucfirst($matches[1]);
123 123
         }, $attribute);
124 124
 
Please login to merge, or discard this patch.
tests/Unit/EntityTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $this->assertSame(null, $entity->foo());
33 33
         $this->assertSame(null, $entity->bar());
34 34
         $this->assertSame([], $entity->toArray());
35
-        $this->assertEquals(json_encode([]), (string)$entity);
35
+        $this->assertEquals(json_encode([]), (string) $entity);
36 36
     }
37 37
 
38 38
     public function testItInitializeWithBoolTrueAttribute()
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function testItInitializeWithStringAttribute()
75 75
     {
76
-        $foo = (string)'bar';
76
+        $foo = (string) 'bar';
77 77
 
78 78
         $entity = new EntityMock([
79 79
             'foo' => $foo,
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
     public function testItInitializeWithIntAttribute()
87 87
     {
88
-        $foo = (int)rand(1, 9);
88
+        $foo = (int) rand(1, 9);
89 89
 
90 90
         $entity = new EntityMock([
91 91
             'foo' => $foo,
Please login to merge, or discard this patch.