| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class AdminCondition implements ConditionInterface { |
||
| 18 | /** |
||
| 19 | * Menu slug. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $menu = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Parent menu slug. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $parent_menu = ''; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor |
||
| 34 | * |
||
| 35 | * @codeCoverageIgnore |
||
| 36 | * @param string $menu |
||
| 37 | * @param string $parent_menu |
||
| 38 | */ |
||
| 39 | public function __construct( $menu, $parent_menu = '' ) { |
||
| 40 | $this->menu = $menu; |
||
| 41 | $this->parent_menu = $parent_menu; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritDoc} |
||
| 46 | */ |
||
| 47 | public function isSatisfied( RequestInterface $request ) { |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritDoc} |
||
| 57 | */ |
||
| 58 | public function getArguments( RequestInterface $request ) { |
||
| 62 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.