src/Pug/Assets.php
Missing class import via use statement (line '32', column '23'). Open
Open
throw new \InvalidArgumentException(
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Property \Pug\Assets->pug
has undeclared type \Pug\Pug
Open
Open
protected $pug;
- Exclude checks
Parameter $pug
has undeclared type \Pug\Pug
Open
Open
public static function enable($pug)
- Exclude checks
Return type of getMinify()
is undeclared type \Pug\Keyword\Minify
Open
Open
public function getMinify()
- Exclude checks
Call to method removeKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->removeKeyword('minify');
- Exclude checks
Call to method setKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->setKeyword('assets', $minify);
- Exclude checks
Returning type null
but disable()
is declared to return \Pug\Assets
Open
Open
return $assets;
- Exclude checks
Call to method setKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->setKeyword('concat-to', $minify);
- Exclude checks
Call to method removeKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->removeKeyword('concat-to');
- Exclude checks
Call to method __construct
from undeclared class \Pug\Keyword\Minify
Open
Open
$this->setMinify(new Minify($pug));
- Exclude checks
Return type of getPug()
is undeclared type \Pug\Pug
Open
Open
public function getPug()
- Exclude checks
Parameter $pug
has undeclared type \Pug\Pug
Open
Open
public function __construct($pug)
- Exclude checks
Checking instanceof against undeclared class \Jade\Jade
Open
Open
if (!($pug instanceof \Jade\Jade) && !($pug instanceof \Pug\Pug) && !($pug instanceof \Phug\Renderer)) {
- Exclude checks
Call to method setKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->setKeyword('concat', $minify);
- Exclude checks
Checking instanceof against undeclared class \Phug\Renderer
Open
Open
if (!($pug instanceof \Jade\Jade) && !($pug instanceof \Pug\Pug) && !($pug instanceof \Phug\Renderer)) {
- Exclude checks
Call to method removeKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->removeKeyword('assets');
- Exclude checks
Checking instanceof against undeclared class \Pug\Pug
Open
Open
if (!($pug instanceof \Jade\Jade) && !($pug instanceof \Pug\Pug) && !($pug instanceof \Phug\Renderer)) {
- Exclude checks
Call to method setCustomOption
from undeclared class \Pug\Pug
Open
Open
$this->pug->setCustomOption('environment', $environment);
- Exclude checks
Call to method setKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->setKeyword('minify', $minify);
- Exclude checks
Call to method removeKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->removeKeyword('minify-to');
- Exclude checks
Parameter $pug
has undeclared type \Jade\Jade
Open
Open
public function __construct($pug)
- Exclude checks
Parameter $pug
has undeclared type \Jade\Jade
Open
Open
public static function disable($pug)
- Exclude checks
Call to method getOption
from undeclared class \Pug\Pug
Open
Open
return $this->pug->getOption('environment') ?: 'production';
- Exclude checks
Parameter $pug
has undeclared type \Jade\Jade
Open
Open
public static function enable($pug)
- Exclude checks
Return type of getPug()
is undeclared type \Pug\Jade
Open
Open
public function getPug()
- Exclude checks
Call to method setKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->setKeyword('minify-to', $minify);
- Exclude checks
Parameter $minify
has undeclared type \Pug\Keyword\Minify
Open
Open
public function setMinify($minify)
- Exclude checks
Parameter $pug
has undeclared type \Pug\Pug
Open
Open
public static function disable($pug)
- Exclude checks
Call to method removeKeyword
from undeclared class \Pug\Pug
Open
Open
$this->pug->removeKeyword('concat');
- Exclude checks
Property \Pug\Assets->pug
has undeclared type \Jade\Jade
Open
Open
protected $pug;
- Exclude checks
Property \Pug\Assets->minify
has undeclared type \Pug\Keyword\Minify
Open
Open
protected $minify;
- Exclude checks
Assigning null
to property but \Pug\Assets->minify
is \Pug\Keyword\Minify
Open
Open
$this->minify = null;
- Exclude checks