Completed
Branch dev (38d68c)
by Pavel
10:56
created
app/src/Schema/RoleSchema.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -196,25 +196,25 @@
 block discarded – undo
196 196
  */
197 197
 
198 198
 /**
199
-     * @api {delete} /role/:id Удаление роли
200
-     * @apiName DeleteRole
201
-     * @apiGroup Role
202
-     *
203
-     * @apiDescription Метод для удаления роли.
204
-     *
205
-     * @apiPermission admin
206
-     *
207
-     * @apiParam {Number} id Id роли
208
-     *
209
-     * @apiHeader {String} Authorization Токен.
210
-     *
211
-     * @apiSuccessExample {json} Успешно (204)
212
-     *     HTTP/1.1 204 OK
213
-     *
214
-     * @apiUse UnauthorizedError
215
-     * @apiUse StandardErrors
216
-     * @apiUse NotFoundError
217
-     */
199
+ * @api {delete} /role/:id Удаление роли
200
+ * @apiName DeleteRole
201
+ * @apiGroup Role
202
+ *
203
+ * @apiDescription Метод для удаления роли.
204
+ *
205
+ * @apiPermission admin
206
+ *
207
+ * @apiParam {Number} id Id роли
208
+ *
209
+ * @apiHeader {String} Authorization Токен.
210
+ *
211
+ * @apiSuccessExample {json} Успешно (204)
212
+ *     HTTP/1.1 204 OK
213
+ *
214
+ * @apiUse UnauthorizedError
215
+ * @apiUse StandardErrors
216
+ * @apiUse NotFoundError
217
+ */
218 218
 final class RoleSchema extends BaseSchema
219 219
 {
220 220
     protected $resourceType = 'role';
Please login to merge, or discard this patch.
app/src/Schema/UserSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -312,7 +312,7 @@
 block discarded – undo
312 312
         return [
313 313
             'full_name'  => $user->full_name,
314 314
             'email'      => $user->email,
315
-            'role_id'    => (int) $user->role_id,
315
+            'role_id'    => (int)$user->role_id,
316 316
             'created_at' => Carbon::parse($user->created_at)->setTimezone('UTC')->format(Carbon::ISO8601),
317 317
             'updated_at' => Carbon::parse($user->updated_at)->setTimezone('UTC')->format(Carbon::ISO8601),
318 318
             'created_by' => $user->created_by,
Please login to merge, or discard this patch.
app/src/Schema/LogSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         return [
103 103
             'action'      => $log->action,
104
-            'entity_id'   => (int) $log->entity_id,
104
+            'entity_id'   => (int)$log->entity_id,
105 105
             'entity_type' => $log->entity_type,
106 106
             'state'       => $log->state,
107 107
             'created_at'  => Carbon::parse($log->created_at)->setTimezone('UTC')->format(Carbon::ISO8601),
Please login to merge, or discard this patch.
app/src/Schema/UserSchemaExtended.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         return [
18 18
             'full_name'   => $user->full_name,
19 19
             'email'       => $user->email,
20
-            'role_id'     => (int) $user->role_id,
20
+            'role_id'     => (int)$user->role_id,
21 21
             'created_at'  => Carbon::parse($user->created_at)->setTimezone('UTC')->format(Carbon::ISO8601),
22 22
             'updated_at'  => Carbon::parse($user->updated_at)->setTimezone('UTC')->format(Carbon::ISO8601),
23 23
             'created_by'  => $user->created_by,
Please login to merge, or discard this patch.
app/src/Observers/CreatedByAndUpdatedByObserver.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function creating(BaseModel $model)
16 16
     {
17 17
         $user = Auth::getUser();
18
-        if(!is_null($user)){
18
+        if (!is_null($user)) {
19 19
             $model->created_by = $user->id;
20 20
         }
21 21
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function updating(BaseModel $model)
31 31
     {
32 32
         $user = Auth::getUser();
33
-        if(!is_null($user)){
33
+        if (!is_null($user)) {
34 34
             $model->updated_by = $user->id;
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function creating(BaseModel $model)
16 16
     {
17 17
         $user = Auth::getUser();
18
-        if(!is_null($user)){
18
+        if(!is_null($user)) {
19 19
             $model->created_by = $user->id;
20 20
         }
21 21
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function updating(BaseModel $model)
31 31
     {
32 32
         $user = Auth::getUser();
33
-        if(!is_null($user)){
33
+        if(!is_null($user)) {
34 34
             $model->updated_by = $user->id;
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
lang/ru/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,5 +119,5 @@
 block discarded – undo
119 119
     |   ],
120 120
     |
121 121
     */
122
-    'attributes' => [ ],
122
+    'attributes' => [],
123 123
 ];
124 124
\ No newline at end of file
Please login to merge, or discard this patch.
lang/en/validation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,5 +96,5 @@
 block discarded – undo
96 96
     | of "email". This simply helps us make messages a little cleaner.
97 97
     |
98 98
     */
99
-    'attributes' => [ ],
99
+    'attributes' => [],
100 100
 ];
101 101
\ No newline at end of file
Please login to merge, or discard this patch.