Completed
Push — master ( bb54cf...008c99 )
by Sheldon
60:19 queued 41:14
created
app/Models/Basic/PhoneNumberModel.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Fields from libphonenumber\PhoneNumber.
45 45
      */
46
-    public $country_code;                       // 65
47
-    public $country_code_plus_sign;             // +65
46
+    public $country_code; // 65
47
+    public $country_code_plus_sign; // +65
48 48
     public $national_number;
49 49
     public $extension;
50
-    public $country_code_source;                // 0
51
-    public $country_code_source_text;           // FROM_NUMBER_WITH_PLUS_SIGN
50
+    public $country_code_source; // 0
51
+    public $country_code_source_text; // FROM_NUMBER_WITH_PLUS_SIGN
52 52
     public $preferred_domestic_carrier_code;
53 53
     public $raw_input;
54 54
     public $raw_input_country;
@@ -59,24 +59,24 @@  discard block
 block discarded – undo
59 59
     public $is_possible_number = false;
60 60
     public $is_valid_number = false;
61 61
     public $is_mobile_number = false;
62
-    public $region_code_for_number;     // SG
63
-    public $number_type;                // 1
64
-    public $number_type_text;           // MOBILE
62
+    public $region_code_for_number; // SG
63
+    public $number_type; // 1
64
+    public $number_type_text; // MOBILE
65 65
 
66 66
     /**
67 67
      * From Formatting.
68 68
      */
69
-    public $format_e164;                // +6590919293
70
-    public $format_national;            // 9091 9293
71
-    public $format_international;       // +65 9091 9293
72
-    public $format_rfc3966;             // tel:+65-9091-9293
69
+    public $format_e164; // +6590919293
70
+    public $format_national; // 9091 9293
71
+    public $format_international; // +65 9091 9293
72
+    public $format_rfc3966; // tel:+65-9091-9293
73 73
 
74 74
     /**
75 75
      * From additional.
76 76
      */
77
-    public $description;                // Singapore
78
-    public $carrier_name;               // M1
79
-    public $timezones;                  // Asia/Singapore
77
+    public $description; // Singapore
78
+    public $carrier_name; // M1
79
+    public $timezones; // Asia/Singapore
80 80
 
81 81
     /**
82 82
      * PhoneNumberModel constructor.
Please login to merge, or discard this patch.
app/Traits/HasPermissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
     {
162 162
         parent::boot();
163 163
 
164
-        static::deleting(function ($model) {
164
+        static::deleting(function($model) {
165 165
             $model->roles()->detach();
166 166
 
167 167
             $model->permissions()->detach();
Please login to merge, or discard this patch.
app/Traits/BackendPagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
             'total' => $this->backendPagination->total(),
70 70
         ];
71 71
 
72
-        $parameters = collect($parameters)->flatMap(function ($parameter, $key) {
72
+        $parameters = collect($parameters)->flatMap(function($parameter, $key) {
73 73
             return [$key => "<b>$parameter</b>"];
74 74
         });
75 75
 
Please login to merge, or discard this patch.
app/Traits/ModelTree.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
     {
202 202
         static::$branchOrder = array_flip(array_flatten($order));
203 203
 
204
-        static::$branchOrder = array_map(function ($item) {
204
+        static::$branchOrder = array_map(function($item) {
205 205
             return ++$item;
206 206
         }, static::$branchOrder);
207 207
     }
Please login to merge, or discard this patch.
app/Generators/Migrations/SchemaParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
      */
114 114
     public function getColumn($schema)
115 115
     {
116
-        return array_first(explode(':', $schema), function ($key, $value) {
116
+        return array_first(explode(':', $schema), function($key, $value) {
117 117
             return $key;
118 118
         });
119 119
     }
Please login to merge, or discard this patch.
app/Generators/Migrations/RulesParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      */
80 80
     public function getColumn($rules)
81 81
     {
82
-        return array_first(explode('=>', $rules), function ($key, $value) {
82
+        return array_first(explode('=>', $rules), function($key, $value) {
83 83
             return $key;
84 84
         });
85 85
     }
Please login to merge, or discard this patch.
app/Transformers/AdminPermissionTransformer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function getHttpPathAttr(AdminPermission $model)
36 36
     {
37
-        return collect(explode("\r\n", $model->http_path))->map(function ($path) use ($model) {
37
+        return collect(explode("\r\n", $model->http_path))->map(function($path) use ($model) {
38 38
             $method = $model->http_method ?: ['ANY'];
39 39
 
40 40
             if (Str::contains($path, ':')) {
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
                 $method = explode(',', $method);
43 43
             }
44 44
 
45
-            $method = collect($method)->map(function ($name) {
45
+            $method = collect($method)->map(function($name) {
46 46
                 return strtoupper($name);
47
-            })->map(function ($name) {
47
+            })->map(function($name) {
48 48
                 return "<span class='label label-primary'>{$name}</span>";
49 49
             })->implode('&nbsp;');
50 50
 
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function getHttpMethodAttr(AdminPermission $model)
58 58
     {
59
-        return collect($model->http_method)->map(function ($name) {
59
+        return collect($model->http_method)->map(function($name) {
60 60
             return strtoupper($name);
61
-        })->map(function ($name) {
61
+        })->map(function($name) {
62 62
             return "<span class='label label-primary'>{$name}</span>";
63 63
         })->implode('&nbsp;');
64 64
     }
Please login to merge, or discard this patch.
app/Transformers/AdminRoleTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function getPermissionsAttr(AdminRole $model)
34 34
     {
35 35
         $permissions = "<div style='margin-bottom: 5px;'>";
36
-        $permissions .= collect($model->permissions)->map(function ($permission, $index) {
36
+        $permissions .= collect($model->permissions)->map(function($permission, $index) {
37 37
             $br = $index && $index % 3 == 0 ? '</div><div style=\'margin-bottom: 5px;\'>' : '';
38 38
 
39 39
             return "<span class='label label-success'>{$permission->name}</span>{$br}";
Please login to merge, or discard this patch.
app/Transformers/AdminMenuTransformer.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
     public function getRolesAttr(AdminMenu $model)
37 37
     {
38 38
         $roles = "<div style='margin-bottom: 5px;'>";
39
-        $roles .= collect($model->roles)->map(function ($role, $index) {
39
+        $roles .= collect($model->roles)->map(function($role, $index) {
40 40
             $br = $index && $index % 3 == 0 ? '</div><div style=\'margin-bottom: 5px;\'>' : '';
41 41
 
42 42
             return "<span class='label label-success'>{$role->name}</span>{$br}";
Please login to merge, or discard this patch.