| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | private function moveDefaultTabToEnd(&$tabs) |
||
| 38 | { |
||
| 39 | $defaultTab = AbstractField::DEFAULT_TAB_IDENT; |
||
| 40 | if (!array_key_exists($defaultTab, $tabs)) { |
||
| 41 | return; |
||
| 42 | } |
||
| 43 | |||
| 44 | $defaultTabFields = $tabs[$defaultTab]; |
||
| 45 | unset($tabs[$defaultTab]); |
||
| 46 | $tabs[$defaultTab] = $defaultTabFields; |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.