Failed Conditions
Push — psr2 ( de3699...36dc94 )
by Andreas
03:29
created

Base   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
A getSort() 0 4 1
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