Completed
Push — master ( 4f3de5...9b9e7a )
by Pavel
05:51
created
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.
app/database/migrations/20160706232835_create_rights_table.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('rights', function($table)
12
-        {
11
+        Capsule::schema()->create('rights', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('name')->unique();
15 14
             $table->string('description');
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 class CreateRightsTable
5 5
 {
6 6
     /**
7
-    * Do the migration
8
-    */
7
+     * Do the migration
8
+     */
9 9
     public function up()
10 10
     {
11 11
         Capsule::schema()->create('rights', function($table)
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     }
23 23
 
24 24
     /**
25
-    * Undo the migration
26
-    */
25
+     * Undo the migration
26
+     */
27 27
     public function down()
28 28
     {
29 29
         Capsule::schema()->drop('rights');
Please login to merge, or discard this patch.
app/database/migrations/20160706231338_create_users_table.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('users', function($table)
12
-        {
11
+        Capsule::schema()->create('users', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('email')->unique();
15 14
             $table->string('full_name');
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 class CreateUsersTable
5 5
 {
6 6
     /**
7
-    * Do the migration
8
-    */
7
+     * Do the migration
8
+     */
9 9
     public function up()
10 10
     {
11 11
         Capsule::schema()->create('users', function($table)
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-    * Undo the migration
30
-    */
29
+     * Undo the migration
30
+     */
31 31
     public function down()
32 32
     {
33 33
         Capsule::schema()->drop('users');
Please login to merge, or discard this patch.
app/database/migrations/20160706233448_create_logs_table.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('logs', function($table)
12
-        {
11
+        Capsule::schema()->create('logs', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('action');
15 14
             $table->morphs('entity');
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 class CreateLogsTable
5 5
 {
6 6
     /**
7
-    * Do the migration
8
-    */
7
+     * Do the migration
8
+     */
9 9
     public function up()
10 10
     {
11 11
         Capsule::schema()->create('logs', function($table)
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
     }
22 22
 
23 23
     /**
24
-    * Undo the migration
25
-    */
24
+     * Undo the migration
25
+     */
26 26
     public function down()
27 27
     {
28 28
         Capsule::schema()->drop('logs');
Please login to merge, or discard this patch.
app/database/migrations/20161016143152_create_roles_to_right_table.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
     */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('roles_to_rights', function($table)
12
-        {
11
+        Capsule::schema()->create('roles_to_rights', function($table) {
13 12
             $table->integer('role_id')->unsigned();
14 13
             $table->integer('right_id')->unsigned();
15 14
             $table->primary(['role_id', 'right_id']);
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 class CreateRolesToRightTable
5 5
 {
6 6
     /**
7
-    * Do the migration
8
-    */
7
+     * Do the migration
8
+     */
9 9
     public function up()
10 10
     {
11 11
         Capsule::schema()->create('roles_to_rights', function($table)
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     }
19 19
 
20 20
     /**
21
-    * Undo the migration
22
-    */
21
+     * Undo the migration
22
+     */
23 23
     public function down()
24 24
     {
25 25
         Capsule::schema()->drop('roles_to_rights');
Please login to merge, or discard this patch.