| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function testGenerateExistsParams() |
||
| 16 | { |
||
| 17 | $manager = $this->getManagerWithUnique(); |
||
| 18 | $item = new Book(); |
||
| 19 | |||
| 20 | $params = $manager->generateExistsParams($item); |
||
| 21 | self::assertSame( |
||
| 22 | [ |
||
| 23 | 'where' => [ |
||
| 24 | 'id_event_id_volunteer-UNQ' => "`id_event` = '' AND `id_volunteer` = ''", |
||
| 25 | 'hash-UNQ' => "`hash` = ''" |
||
| 26 | ], |
||
| 27 | ], |
||
| 28 | $params |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 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.