Conditions | 5 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 5 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | 7 | private function canPerformUpdate() { |
|
52 | |||
53 | 7 | if ( !$this->skin instanceof Skin ) { |
|
|
|||
54 | 1 | return false; |
|
55 | } |
||
56 | |||
57 | 6 | $request = $this->skin->getContext()->getRequest(); |
|
58 | |||
59 | 6 | if ( $request->getVal( 'action' ) === 'delete' || $request->getVal( 'action' ) === 'purge' || !ApplicationFactory::getInstance()->getSettings()->get( 'smwgSemanticsEnabled' ) ) { |
|
60 | 2 | return false; |
|
61 | } |
||
62 | |||
63 | 4 | return true; |
|
64 | } |
||
65 | |||
78 |