@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public function __construct() |
10 | 10 | { |
11 | - $this->reloadTimeout = config('timecontrol.refreshInterval'); |
|
11 | + $this->reloadTimeout = config('timecontrol.refreshInterval'); |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | /** |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * Include Managers |
39 | 39 | * |
40 | 40 | * @param Departments $department |
41 | - * @return Fractal\Resource\Item |
|
41 | + * @return Fractal\Resource\Collection |
|
42 | 42 | */ |
43 | 43 | public function includeManagers(Departments $department) |
44 | 44 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function transform(Departments $department) |
28 | 28 | { |
29 | 29 | return [ |
30 | - 'id' => (int) $department->id, |
|
30 | + 'id' => (int) $department->id, |
|
31 | 31 | 'name' => (string) $department->department_name, |
32 | 32 | 'managers' => (string) $department->department_manager, |
33 | 33 | 'description' => (string) $department->department_description |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function transform(Departments $manager) |
21 | 21 | { |
22 | 22 | return [ |
23 | - 'id' => (int) $manager->id, |
|
23 | + 'id' => (int) $manager->id, |
|
24 | 24 | ]; |
25 | 25 | } |
26 | 26 | } |
27 | 27 | \ No newline at end of file |
@@ -137,7 +137,7 @@ |
||
137 | 137 | */ |
138 | 138 | public function destroy($id) |
139 | 139 | { |
140 | - if (! empty($id)) { |
|
140 | + if (!empty($id)) { |
|
141 | 141 | Departments::destroy($id); |
142 | 142 | |
143 | 143 | $data = []; |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | - |
|
7 | -use App\Http\Requests; |
|
8 | 6 | use App\Http\Controllers\Controller; |
9 | 7 | |
10 | 8 | class SettingsController extends Controller |