| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | protected function getManagerWithUnique() |
||
| 55 | { |
||
| 56 | $manager = new Books(); |
||
| 57 | $structure = require TEST_FIXTURE_PATH |
||
| 58 | . DIRECTORY_SEPARATOR . 'database_structure' . DIRECTORY_SEPARATOR . 'table_with_unique.php'; |
||
| 59 | $manager->setTableStructure($structure); |
||
| 60 | return $manager; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
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.