| Conditions | 5 |
| Paths | 5 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function getActiveBodyToolbarTools($position) |
||
| 60 | { |
||
| 61 | $list = []; |
||
| 62 | /** @var ToolInterface $tool */ |
||
| 63 | foreach ($this->toolbar as $tool) { |
||
| 64 | $isPositioned = $tool->position() == $position || $tool->position() == ToolInterface::POSITION_BODY_BOTH; |
||
| 65 | if ($isPositioned && $tool->check()) { |
||
| 66 | $list[] = $tool; |
||
| 67 | } |
||
| 68 | } |
||
| 69 | |||
| 70 | return $list; |
||
| 71 | } |
||
| 72 | } |
||
| 73 |
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.