| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function submit() |
||
| 32 | { |
||
| 33 | $user = $this->user; |
||
| 34 | $this->validate([ |
||
| 35 | 'name' => 'required|min:6', |
||
| 36 | 'email' => 'required|email|unique:users,email,'.$user->id, |
||
| 37 | 'password' => 'nullable|confirmed|min:8|max:30', |
||
| 38 | ]); |
||
| 39 | if (isset($this->password)) { |
||
| 40 | $user->update([ |
||
| 41 | 'name' => $this->name, |
||
| 42 | 'email' => $this->email, |
||
| 43 | 'password' => Hash::make($this->password), |
||
| 44 | ]); |
||
| 45 | } else { |
||
| 46 | $user->update([ |
||
| 47 | 'name' => $this->name, |
||
| 48 | 'email' => $this->email, |
||
| 49 | 'password' => $user->password, |
||
| 50 | ]); |
||
| 51 | } |
||
| 52 | $this->emit('account_updated'); |
||
| 53 | } |
||
| 60 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths