| Total Complexity | 5 | 
| Total Lines | 31 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 9 | class CommentCommand extends BaseArchiveCommand  | 
            ||
| 10 | { | 
            ||
| 11 | protected static $defaultName = 'archive:comment';  | 
            ||
| 12 | |||
| 13 | protected function configure()  | 
            ||
| 14 |     { | 
            ||
| 15 | parent::configure();  | 
            ||
| 16 | $this  | 
            ||
| 17 |             ->setDescription('Sets comment on archive') | 
            ||
| 18 |             ->setHelp('Sets comment on archive.') | 
            ||
| 19 |             ->addArgument('comment', InputArgument::REQUIRED, 'Comment') | 
            ||
| 20 | ;  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | public function execute(InputInterface $input, OutputInterface $output)  | 
            ||
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 | 
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.