Completed
Pull Request — master (#52)
by Eugene
03:16
created

ScriptHandler::compileCSS()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
c 4
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace EM\CssCompiler\Handler;
4
5
use Composer\EventDispatcher\Event;
6
use EM\CssCompiler\ScriptHandler as Handler;
7
8
/**
9
 * @deprecated
10
 */
11
class ScriptHandler extends Handler
12
{
13
    public static function compileCSS(Event $event)
14
    {
15
        static::generateCSS($event);
0 ignored issues
show
Compatibility introduced by
$event of type object<Composer\EventDispatcher\Event> is not a sub-type of object<Composer\Script\Event>. It seems like you assume a child class of the class Composer\EventDispatcher\Event to be always present.

This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.

Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.

Loading history...
16
    }
17
}
18