| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function beforeDispatch(/** @scrutinizer ignore-unused */ Event $event, Dispatcher $dispatcher): bool |
||
|
|
|||
| 33 | { |
||
| 34 | $client = new BeanstalkClient(self::class); |
||
| 35 | |||
| 36 | $arrayOfClearedModels = $client->getMessagesFromTube(); |
||
| 37 | foreach ($arrayOfClearedModels as $clearedModel){ |
||
| 38 | if (class_exists($clearedModel)){ |
||
| 39 | call_user_func([$clearedModel, 'clearCache'], $clearedModel); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | return true; |
||
| 44 | } |
||
| 46 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.