Passed
Push — master ( 848980...7bc374 )
by Arthur
04:30
created
src/Foundation/Support/helpers.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,8 +123,9 @@  discard block
 block discarded – undo
123 123
 
124 124
         $result = array_intersect($subset, $array);
125 125
 
126
-        if ($strict)
127
-            return $result === $subset;
126
+        if ($strict) {
127
+                    return $result === $subset;
128
+        }
128 129
 
129 130
         return $result == $subset;
130 131
     }
@@ -133,7 +134,9 @@  discard block
 block discarded – undo
133 134
 if (!function_exists('is_associative_array')) {
134 135
     function is_associative_array(array $arr)
135 136
     {
136
-        if (array() === $arr) return false;
137
+        if (array() === $arr) {
138
+            return false;
139
+        }
137 140
         return array_keys($arr) !== range(0, count($arr) - 1);
138 141
     }
139 142
 }
Please login to merge, or discard this patch.
src/Foundation/Abstracts/Tests/HttpTest.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,9 @@
 block discarded – undo
65 65
 
66 66
     protected function decodeHttpContent($content, $unwrap = true)
67 67
     {
68
-        if ($unwrap)
69
-            return json_decode($content, true)['data'];
68
+        if ($unwrap) {
69
+                    return json_decode($content, true)['data'];
70
+        }
70 71
         return json_decode($content, true);
71 72
     }
72 73
 
Please login to merge, or discard this patch.
src/Foundation/Controllers/NotificationController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,9 @@
 block discarded – undo
28 28
     {
29 29
         $notification = get_authenticated_user()->unreadNotifications()->find($id);
30 30
 
31
-        if ($notification === null)
32
-            throw new NotFoundHttpException("Could not find notification");
31
+        if ($notification === null) {
32
+                    throw new NotFoundHttpException("Could not find notification");
33
+        }
33 34
 
34 35
         $notification->markAsRead();
35 36
         return response()->json([
Please login to merge, or discard this patch.