| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 21 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function handle()  | 
            ||
| 27 |     { | 
            ||
| 28 | $this->setUp();  | 
            ||
| 29 | |||
| 30 | $pathArray = ['LangBundler', 'Mods'];  | 
            ||
| 31 | |||
| 32 | $basePath = app_path().'/';  | 
            ||
| 33 | |||
| 34 | $path = $this->buildPath($pathArray, $basePath);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 35 | |||
| 36 |         $name = ucfirst($this->argument('name')).'Mod'; | 
            ||
| 37 | |||
| 38 | $stub = $this->getStub($name);  | 
            ||
| 39 | |||
| 40 | $this->filesystem->put(  | 
            ||
| 41 |             app_path(implode('/', $pathArray).'/'.$name.'.php'), | 
            ||
| 42 | $stub  | 
            ||
| 43 | );  | 
            ||
| 44 | |||
| 45 |         $this->info('New bundle modification file successfully created!'); | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 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.