Showing 32 of 32 total issues
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