@@ -91,7 +91,7 @@ |
||
91 | 91 | { |
92 | 92 | return array_first( |
93 | 93 | explode('=>', $rules), |
94 | - function ($key/*, $value*/) { |
|
94 | + function($key/*, $value*/) { |
|
95 | 95 | return $key; |
96 | 96 | } |
97 | 97 | ); |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | return array_first( |
127 | 127 | explode(':', $schema), |
128 | - function ($key/*, $value*/) { |
|
128 | + function($key/*, $value*/) { |
|
129 | 129 | return $key; |
130 | 130 | } |
131 | 131 | ); |
@@ -144,8 +144,7 @@ discard block |
||
144 | 144 | $fields = str_replace($column.':', '', $schema); |
145 | 145 | |
146 | 146 | return $this->hasCustomAttribute($column) ? |
147 | - $this->getCustomAttribute($column) : |
|
148 | - explode(':', $fields); |
|
147 | + $this->getCustomAttribute($column) : explode(':', $fields); |
|
149 | 148 | } |
150 | 149 | |
151 | 150 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | return str_replace( |
35 | 35 | '/', |
36 | 36 | '\\', |
37 | - parent::getRootNamespace() . parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
37 | + parent::getRootNamespace().parent::getConfigGeneratorClassPath($this->getPathConfigNode()) |
|
38 | 38 | ); |
39 | 39 | } |
40 | 40 | |
@@ -55,13 +55,13 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function getPath() |
57 | 57 | { |
58 | - return $this->getBasePath() . '/' . |
|
58 | + return $this->getBasePath().'/'. |
|
59 | 59 | parent::getConfigGeneratorClassPath( |
60 | 60 | $this->getPathConfigNode(), |
61 | 61 | true |
62 | - ) . |
|
63 | - '/' . |
|
64 | - $this->getControllerName() . 'Controller.php'; |
|
62 | + ). |
|
63 | + '/'. |
|
64 | + $this->getControllerName().'Controller.php'; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | |
140 | 140 | $validator = $validatorGenerator->getRootNamespace().'\\'.$validatorGenerator->getName(); |
141 | 141 | |
142 | - return 'use ' . str_replace( |
|
142 | + return 'use '.str_replace( |
|
143 | 143 | [ |
144 | 144 | '\\', |
145 | 145 | '/', |
146 | 146 | ] |
147 | - , '\\', $validator) . 'Validator;'; |
|
147 | + , '\\', $validator).'Validator;'; |
|
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
@@ -162,11 +162,11 @@ discard block |
||
162 | 162 | |
163 | 163 | $repository = $repositoryGenerator->getRootNamespace().'\\'.$repositoryGenerator->getName(); |
164 | 164 | |
165 | - return 'use ' . str_replace( |
|
165 | + return 'use '.str_replace( |
|
166 | 166 | [ |
167 | 167 | '\\', |
168 | 168 | '/', |
169 | 169 | ] |
170 | - , '\\', $repository) . 'Repository;'; |
|
170 | + , '\\', $repository).'Repository;'; |
|
171 | 171 | } |
172 | 172 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $result .= "\t\t'".$this->getIdName()."' => '".str_singular($this->getIdName())."',\r\n"; |
100 | 100 | if (!empty($fields)) { |
101 | 101 | foreach ($fields as /*$index =>*/ |
102 | - $field) { |
|
102 | + $field) { |
|
103 | 103 | $result .= "\t\t'{$field['name']}' => '{$field['comment']}',\r\n"; |
104 | 104 | } |
105 | 105 | $result .= "\t\t'created_by' => 'CREATED_BY',\r\n"; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function getRootNamespace() |
36 | 36 | { |
37 | - return parent::getRootNamespace() . |
|
37 | + return parent::getRootNamespace(). |
|
38 | 38 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
39 | 39 | } |
40 | 40 | |
@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function getPath() |
57 | 57 | { |
58 | - return $this->getBasePath() . |
|
59 | - '/' . |
|
60 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
61 | - '/' . |
|
62 | - $this->getName() . |
|
58 | + return $this->getBasePath(). |
|
59 | + '/'. |
|
60 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
61 | + '/'. |
|
62 | + $this->getName(). |
|
63 | 63 | 'Validator.php'; |
64 | 64 | } |
65 | 65 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | */ |
32 | 32 | public function getRootNamespace() |
33 | 33 | { |
34 | - return parent::getRootNamespace() . |
|
34 | + return parent::getRootNamespace(). |
|
35 | 35 | parent::getConfigGeneratorClassPath($this->getPathConfigNode()); |
36 | 36 | } |
37 | 37 | |
@@ -83,11 +83,11 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getPath() |
85 | 85 | { |
86 | - return $this->getBasePath() . |
|
87 | - '/' . |
|
88 | - parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) . |
|
89 | - '/' . |
|
90 | - $this->getName() . |
|
86 | + return $this->getBasePath(). |
|
87 | + '/'. |
|
88 | + parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true). |
|
89 | + '/'. |
|
90 | + $this->getName(). |
|
91 | 91 | 'Presenter.php'; |
92 | 92 | } |
93 | 93 |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | [ |
129 | 129 | 'provider' => [ |
130 | 130 | 'required', |
131 | - Rule::unique('socialite_users')->where(function ($query) use ($user) { |
|
131 | + Rule::unique('socialite_users')->where(function($query) use ($user) { |
|
132 | 132 | return $query->where('user_id', $user->user_id); |
133 | 133 | }), |
134 | 134 | ], |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | { |
169 | 169 | $data = $request->all(); |
170 | 170 | |
171 | - DB::transaction(function () use ($request, $data) { |
|
171 | + DB::transaction(function() use ($request, $data) { |
|
172 | 172 | $user = $this->userRepository->create($data); |
173 | 173 | $this->addSocialiteUser($request, $user); |
174 | 174 | }); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } |
75 | 75 | $parameters = array_filter( |
76 | 76 | $parameters, |
77 | - function ($key) { |
|
77 | + function($key) { |
|
78 | 78 | return $key !== ''; |
79 | 79 | }, |
80 | 80 | ARRAY_FILTER_USE_KEY |