Conditions | 5 |
Paths | 5 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 1 | ||
Bugs | 0 | Features | 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 | } |
||
73 |