Plugin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 16
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A onPluginsLoaded() 0 3 1
1
<?php
2
/**
3
 * Plugin class
4
 */
5
namespace Phile\Plugin\Phile\ParserMarkdown;
6
7
use Phile\Core\ServiceLocator;
8
use Phile\Plugin\AbstractPlugin;
9
use Phile\Plugin\Phile\ParserMarkdown\Parser\Markdown;
10
11
/**
12
 * Class Plugin
13
 * Default Phile parser plugin for Markdown
14
 *
15
 * @author  PhileCMS
16
 * @link    https://philecms.github.io
17
 * @license http://opensource.org/licenses/MIT
18
 * @package Phile\Plugin\Phile\ParserMarkdown
19
 */
20
class Plugin extends AbstractPlugin
21
{
22
    /**
23
     * {@inheritDoc}
24
     */
25
    protected $events = ['plugins_loaded' => 'onPluginsLoaded'];
26
27
    /**
28
     * onPluginsLoaded method
29
     *
30
     * @param array $data
31
     * @return void
32
     */
33 34
    public function onPluginsLoaded($data = null)
0 ignored issues
show
Unused Code introduced by
The parameter $data is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

33
    public function onPluginsLoaded(/** @scrutinizer ignore-unused */ $data = null)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
34
    {
35 34
        ServiceLocator::registerService('Phile_Parser', new Markdown($this->settings));
36
    }
37
}
38