Passed
Push — master ( 23764c...420f5e )
by Mario
02:38
created
src/AbstractResourceController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 use RafflesArgentina\ResourceController\Exceptions\ResourceControllerException;
14 14
 
15 15
 abstract class AbstractResourceController extends BaseController
16
-                                          implements ResourceControllerInterface
16
+                                            implements ResourceControllerInterface
17 17
 {
18 18
     /**
19 19
      * The alias for named routes.
Please login to merge, or discard this patch.
tests/ResourceControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
         $this->json('GET', '/test')
24 24
             ->assertStatus(200);
25
-             //->assertJsonCount(3, 'data');
25
+                //->assertJsonCount(3, 'data');
26 26
     }
27 27
 
28 28
     /**
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $this->json('GET', '/test2')
43 43
             ->assertStatus(200);
44
-             //->assertJsonCount(3, 'data');
44
+                //->assertJsonCount(3, 'data');
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Traits/WorksWithRelations.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -131,14 +131,14 @@
 block discarded – undo
131 131
                 $id = $fields['id'];
132 132
             } else {
133 133
                 $id = '';
134
-	    }
134
+        }
135 135
 
136 136
             if (array_except($fields, ['id'])) {
137 137
                 $record = $relation->updateOrCreate(['id' => $id], $fields);
138 138
                 array_push($keys, $record->id);
139 139
                 array_push($records, $record);
140
-	    }
141
-	}
140
+        }
141
+    }
142 142
     
143 143
         if ($keys && (property_exists($this, 'pruneHasMany') && $this->pruneHasMany !== false)) {
144 144
             $notIn = $relation->getRelated()->whereNotIn('id', $keys)->get();
Please login to merge, or discard this patch.