| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function boot() |
||
| 17 | { |
||
| 18 | // Add strip_tags validation rule |
||
| 19 | Validator::extend('strip_tags', function ($attribute, $value) { |
||
| 20 | return strip_tags($value) === $value; |
||
| 21 | }, trans('validation.invalid_strip_tags')); |
||
| 22 | |||
| 23 | // Add time offset validation rule |
||
| 24 | Validator::extend('timeoffset', function ($attribute, $value) { |
||
| 25 | return array_key_exists($value, timeoffsets()); |
||
| 26 | }, trans('validation.invalid_timeoffset')); |
||
| 27 | |||
| 28 | Collection::macro('similar', function (Collection $newCollection) { |
||
| 29 | return $newCollection->diff($this)->isEmpty() && $this->diff($newCollection)->isEmpty(); |
||
|
|
|||
| 30 | }); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
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.