| 1 | <?php namespace App\Modules\Core; |
||
| 6 | class Core implements BaseFactoryInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Construct the repository class name based on |
||
| 10 | * the method name called, search in the |
||
| 11 | * given namespaces for the class and |
||
| 12 | * return an instance. |
||
| 13 | * |
||
| 14 | * @param string $name the called method name |
||
| 15 | * @param array $arguments the method arguments |
||
| 16 | * @return object |
||
| 17 | */ |
||
| 18 | public function __call($name, $arguments) |
||
| 36 | } |
||
| 37 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.