@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @var array |
14 | 14 | */ |
15 | - protected $commands = [ ]; |
|
15 | + protected $commands = []; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Define the application's command schedule. |
@@ -3,12 +3,9 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | -use App\Http\Requests; |
|
7 | - |
|
8 | 6 | use App\Departments; |
9 | 7 | use App\Teams; |
10 | 8 | use App\User; |
11 | - |
|
12 | 9 | use App\Http\Controllers\Controller; |
13 | 10 | |
14 | 11 | class TeamsController extends Controller |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** |
43 | 43 | * Store a newly created team in database. |
44 | 44 | * |
45 | - * @param array $request The user input form the form. |
|
45 | + * @param Request $request The user input form the form. |
|
46 | 46 | */ |
47 | 47 | public function store(Request $request) |
48 | 48 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Update the specified team in the database. |
77 | 77 | |
78 | - * @param array $request The user input from the form. |
|
78 | + * @param Request $request The user input from the form. |
|
79 | 79 | * @param int $id The id in the database for the team |
80 | 80 | */ |
81 | 81 | public function update(Request $request, $id) |
@@ -74,7 +74,6 @@ |
||
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Update the specified team in the database. |
77 | - |
|
78 | 77 | * @param array $request The user input from the form. |
79 | 78 | * @param int $id The id in the database for the team |
80 | 79 | */ |
@@ -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 | /** |
@@ -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 = []; |