Passed
Push — master ( f371aa...d7ec00 )
by Julien
19:30
created

Loader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 11
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Autoload;
13
14
use Phalcon\Autoload\Exception;
15
16
/**
17
 * Class Loader
18
 *
19
 * This class extends the \Phalcon\Autoload\Loader class and disable file checking callback for better performance.
20
 *
21
 * @throws Exception Throws an exception if initialization fails.
22
 */
23
class Loader extends \Phalcon\Autoload\Loader
24
{
25
    /**
26
     * @throws Exception
27
     */
28
    public function __construct(bool $isDebug = false)
29
    {
30
        parent::__construct($isDebug);
31
        
32
        // Do not check file existence.
33
        $this->setFileCheckingCallback(null);
34
    }
35
}
36