| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function update(Settings $settings, Request $request) |
||
| 47 | { |
||
| 48 | $this->authorize('update', Setting::class); |
||
| 49 | |||
| 50 | $updated = SettingRepository::update($settings, $request->all()); |
||
| 51 | |||
| 52 | if (!$updated) { |
||
| 53 | return redirect() |
||
| 54 | ->back() |
||
|
|
|||
| 55 | ->error('Error while saving settings.'); |
||
| 56 | } |
||
| 57 | |||
| 58 | return redirect() |
||
| 59 | ->back() |
||
| 60 | ->success('All settings has been updated successfully !'); |
||
| 61 | } |
||
| 63 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.