Completed
Push — master ( 5c5f39...09f73b )
by Mahmoud
03:29
created
app/Containers/User/UI/API/Controllers/Controller.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -66,12 +66,12 @@
 block discarded – undo
66 66
         return $this->response->paginator($users, new UserTransformer());
67 67
     }
68 68
 
69
-  /**
70
-   * @param \App\Containers\User\UI\API\Requests\ListAllUsersRequest $request
71
-   * @param \App\Containers\User\Actions\ListAndSearchUsersAction    $action
72
-   *
73
-   * @return  \Dingo\Api\Http\Response
74
-   */
69
+    /**
70
+     * @param \App\Containers\User\UI\API\Requests\ListAllUsersRequest $request
71
+     * @param \App\Containers\User\Actions\ListAndSearchUsersAction    $action
72
+     *
73
+     * @return  \Dingo\Api\Http\Response
74
+     */
75 75
     public function listAllAdmins(ListAllUsersRequest $request, ListAndSearchUsersAction $action)
76 76
     {
77 77
         $users = $action->run(['admin']);
Please login to merge, or discard this patch.
app/Containers/User/Data/Criterias/AdminsCriteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function apply($model, PrettusRepositoryInterface $repository)
23 23
     {
24
-        return $model->whereHas('roles', function ($q) {
24
+        return $model->whereHas('roles', function($q) {
25 25
             $q->where('name', 'admin');
26 26
         });
27 27
     }
Please login to merge, or discard this patch.
app/Containers/User/Data/Criterias/RoleCriteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function apply($model, PrettusRepositoryInterface $repository)
38 38
     {
39
-        return $model->whereHas('roles', function ($q) {
39
+        return $model->whereHas('roles', function($q) {
40 40
             $q->where('name', $this->roles);
41 41
         });
42 42
     }
Please login to merge, or discard this patch.