| 1 | <?php |
||
| 2 | |||
| 3 | namespace TwoDojo\ModuleManager\Registries; |
||
| 4 | |||
| 5 | use TwoDojo\ModuleManager\Contracts\Repository; |
||
| 6 | |||
| 7 | abstract class BaseRegistry implements Repository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Find the module by unique name |
||
| 11 | * |
||
| 12 | * @param string $uniqueName |
||
| 13 | * @return mixed |
||
| 14 | */ |
||
| 15 | abstract public function findByUniqueName(string $uniqueName); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $scope |
||
| 19 | * @param $arguments |
||
| 20 | * @return $this |
||
| 21 | */ |
||
| 22 | protected function scope($scope, $arguments) |
||
|
0 ignored issues
–
show
|
|||
| 23 | { |
||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Handle scope call |
||
| 29 | * |
||
| 30 | * @param $name |
||
| 31 | * @param $arguments |
||
| 32 | * @return BaseRegistry |
||
| 33 | */ |
||
| 34 | public function __call($name, $arguments) |
||
| 35 | { |
||
| 36 | return $this->scope($name, $arguments); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.