Test Failed
Push — master ( 758eb0...4b6b1f )
by Arthur
08:57
created
src/Modules/User/Services/UserService.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function find($id): ?User
18 18
     {
19
-        return Cache::remember($this->getCacheName($id), $this->getCacheTime(), function () use ($id) {
19
+        return Cache::remember($this->getCacheName($id), $this->getCacheTime(), function() use ($id) {
20 20
             return User::find($id);
21 21
         });
22 22
     }
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
     public function create($data): User
33 33
     {
34
-        if (isset($data['_id'])) {
34
+        if (isset($data[ '_id' ])) {
35 35
             $user = new User();
36
-            $user->_id = $data['_id'];
36
+            $user->_id = $data[ '_id' ];
37 37
             $user->fill($data);
38 38
             $user->save();
39 39
         } else {
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,9 @@
 block discarded – undo
46 46
     public function delete($id): bool
47 47
     {
48 48
         $deleted = User::delete($id);
49
-        if ($deleted)
50
-            Cache::forget($this->getCacheName($id));
49
+        if ($deleted) {
50
+                    Cache::forget($this->getCacheName($id));
51
+        }
51 52
         return $deleted;
52 53
     }
53 54
 
Please login to merge, or discard this patch.
src/Foundation/Routes/api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function () {
14
+Route::get('/', function() {
15 15
     return response()->json('Astral Api ');
16 16
 });
17 17
 
18
-Route::get('/authorized', function () {
18
+Route::get('/authorized', function() {
19 19
     return response()->json('authorized');
20 20
 })->middleware('auth0');
Please login to merge, or discard this patch.