@@ -11,28 +11,28 @@ |
||
11 | 11 | */ |
12 | 12 | protected function getModel() |
13 | 13 | { |
14 | - $apiVersion = \Request::header('api-version') ?: 1; |
|
14 | + $apiVersion = \Request::header('api-version') ?: 1; |
|
15 | 15 | return 'App\Modules\Notifications\Notification'; |
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
19 | - * Set the notification notified to true. |
|
20 | - * |
|
21 | - * @param integer $id |
|
22 | - * @return object |
|
23 | - */ |
|
24 | - public function notified($id) |
|
25 | - { |
|
26 | - return $this->save(['id' => $id, 'notified' => 1]); |
|
27 | - } |
|
19 | + * Set the notification notified to true. |
|
20 | + * |
|
21 | + * @param integer $id |
|
22 | + * @return object |
|
23 | + */ |
|
24 | + public function notified($id) |
|
25 | + { |
|
26 | + return $this->save(['id' => $id, 'notified' => 1]); |
|
27 | + } |
|
28 | 28 | |
29 | - /** |
|
30 | - * Set the notification notified to all. |
|
31 | - * |
|
32 | - * @return void |
|
33 | - */ |
|
34 | - public function notifyAll() |
|
35 | - { |
|
36 | - \Core::notifications()->update(false, ['notified' => 1], 'notified'); |
|
37 | - } |
|
29 | + /** |
|
30 | + * Set the notification notified to all. |
|
31 | + * |
|
32 | + * @return void |
|
33 | + */ |
|
34 | + public function notifyAll() |
|
35 | + { |
|
36 | + \Core::notifications()->update(false, ['notified' => 1], 'notified'); |
|
37 | + } |
|
38 | 38 | } |
@@ -8,16 +8,16 @@ |
||
8 | 8 | class ReportsController extends BaseApiController |
9 | 9 | { |
10 | 10 | /** |
11 | - * The name of the model that is used by the base api controller |
|
12 | - * to preform actions like (add, edit ... etc). |
|
13 | - * @var string |
|
14 | - */ |
|
15 | - protected $model = 'reports'; |
|
11 | + * The name of the model that is used by the base api controller |
|
12 | + * to preform actions like (add, edit ... etc). |
|
13 | + * @var string |
|
14 | + */ |
|
15 | + protected $model = 'reports'; |
|
16 | 16 | |
17 | - /** |
|
18 | - * List of all route actions that the base api controller |
|
19 | - * will skip permissions check for them. |
|
20 | - * @var array |
|
21 | - */ |
|
22 | - protected $skipPermissionCheck = ['find', 'first']; |
|
17 | + /** |
|
18 | + * List of all route actions that the base api controller |
|
19 | + * will skip permissions check for them. |
|
20 | + * @var array |
|
21 | + */ |
|
22 | + protected $skipPermissionCheck = ['find', 'first']; |
|
23 | 23 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * to preform actions like (add, edit ... etc). |
13 | 13 | * @var string |
14 | 14 | */ |
15 | - protected $model = 'reports'; |
|
15 | + protected $model = 'reports'; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * List of all route actions that the base api controller |