| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function loadFromAbraFlexi($id = null) { |
||
| 36 | if (strstr($id, 'code:')) { //Dirty Hack ⚠ Error 400: Entita 'Report' neobsahuje kód nebo ho nelze použít jako ID (není unikátní) |
||
| 37 | $candidates = $this->getColumnsFromAbraFlexi(['id', 'kod'], null, 'kod'); |
||
| 38 | if (array_key_exists(\FlexiPeeHP\RO::uncode($id), $candidates)) { |
||
| 39 | $id = intval($candidates[\FlexiPeeHP\RO::uncode($id)]['id']); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | return parent::loadFromAbraFlexi($id); |
||
| 43 | } |
||
| 57 |
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.