splitbrain /
dokuwiki
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | namespace dokuwiki\Action; |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Class Conflict |
||
| 7 | * |
||
| 8 | * Show the conflict resolution screen |
||
| 9 | * |
||
| 10 | * @package dokuwiki\Action |
||
| 11 | */ |
||
| 12 | class Conflict extends AbstractAction { |
||
| 13 | |||
| 14 | /** @inheritdoc */ |
||
| 15 | function minimumPermission() { |
||
|
0 ignored issues
–
show
|
|||
| 16 | global $INFO; |
||
| 17 | if($INFO['exists']) { |
||
| 18 | return AUTH_EDIT; |
||
| 19 | } else { |
||
| 20 | return AUTH_CREATE; |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 24 | public function tplContent() { |
||
| 25 | global $PRE; |
||
| 26 | global $TEXT; |
||
| 27 | global $SUF; |
||
| 28 | global $SUM; |
||
| 29 | |||
| 30 | html_conflict(con($PRE, $TEXT, $SUF), $SUM); |
||
| 31 | html_diff(con($PRE, $TEXT, $SUF), false); |
||
| 32 | } |
||
| 33 | |||
| 34 | } |
||
| 35 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.