| Conditions | 5 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Anomaly\DashboardModule\Widget; |
||
| 62 | public function column($column, $over = false) |
||
| 63 | { |
||
| 64 | return $this->filter( |
||
| 65 | function ($widget) use ($column, $over) { |
||
| 66 | |||
| 67 | /* @var WidgetInterface $widget */ |
||
| 68 | if ($widget->isPinned()) { |
||
| 69 | return false; |
||
| 70 | } |
||
| 71 | |||
| 72 | if ($widget->getColumn() == $column) { |
||
| 73 | return true; |
||
| 74 | } |
||
| 75 | |||
| 76 | if ($over && $widget->getColumn() > $column) { |
||
| 77 | return true; |
||
| 78 | } |
||
| 79 | |||
| 80 | return false; |
||
| 81 | } |
||
| 82 | ); |
||
| 83 | } |
||
| 84 | } |
||
| 85 |