@@ -13,7 +13,7 @@ |
||
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. |
@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -131,14 +131,14 @@ |
||
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(); |