| 1 | <?php |
||
| 7 | class MakeBundleMod extends LaravelLangBundlerCommand |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name and signature of the console command. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $signature = 'langb:mod {name}'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The console command description. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $description = 'Create a custom modification file.'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Execute the console command. |
||
| 25 | */ |
||
| 26 | public function handle() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get stub and fill. |
||
| 50 | * |
||
| 51 | * @param string $name |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | protected function getStub($name) |
||
| 77 | } |
||
| 78 |
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.