Failed Conditions
Push — psr2 ( de3699...36dc94 )
by Andreas
06:50 queued 03:31
created

Base::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
nc 1
dl 0
loc 14
c 0
b 0
f 0
cc 1
eloc 10
nop 0
rs 9.4285
1
<?php
2
3
namespace dokuwiki\ParserMode;
4
5
class Base extends AbstractMode
6
{
7
8
    /**
9
     * Base constructor.
10
     */
11
    public function __construct()
12
    {
13
        global $PARSER_MODES;
14
15
        $this->allowedModes = array_merge(
16
            $PARSER_MODES['container'],
17
            $PARSER_MODES['baseonly'],
18
            $PARSER_MODES['paragraphs'],
19
            $PARSER_MODES['formatting'],
20
            $PARSER_MODES['substition'],
21
            $PARSER_MODES['protected'],
22
            $PARSER_MODES['disabled']
23
        );
24
    }
25
26
    /** @inheritdoc */
27
    public function getSort()
28
    {
29
        return 0;
30
    }
31
}
32