Showing 102 of 102 total issues
Reference to undeclared property \Pug\PugSymfonyBundle\PugSymfonyBundle->container
Open
Open
$this->container->get(AssetsPublishCommand::class),
- Exclude checks
Class extends undeclared class \Twig\Extension\AbstractExtension
Open
Open
class CssExtension extends AbstractExtension
- Exclude checks
Call to method getFilter
from undeclared class \Pug\Pug
Open
Open
return $this->getRenderer()->getFilter($name);
- Exclude checks
Call to method setOption
from undeclared class \Pug\Pug
Open
Open
$this->getRenderer()->setOption($name, $value);
- Exclude checks
syntax error, unexpected 'ContainerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
protected ContainerInterface $container;
- Exclude checks
Parameter $container
has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
public function load(array $configs, ContainerBuilder $container)
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Loader\PhpFileLoader
Open
Open
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/config'));
- Exclude checks
Call to method addCommands
from undeclared class \Symfony\Component\Console\Application
Open
Open
$application->addCommands([
- Exclude checks
Rename "$options" which has the same name as the field declared at line 22. Open
Open
$options = $this->getRendererOptions();
- Read upRead up
- Exclude checks
Shadowing fields with a local variable is a bad practice that reduces code readability: it makes it confusing to know whether the field or the variable is being used.
Noncompliant Code Example
class Foo { public $myField; public function doSomething() { $myField = 0; ... } }
See
- CERT, DCL51-J. - Do not shadow or obscure identifiers in subscopes
Reference to constant class
from undeclared class \Pug\PugSymfonyBundle\Command\AssetsPublishCommand
Open
Open
$this->container->get(AssetsPublishCommand::class),
- Exclude checks
Parameter $event
has undeclared type \Symfony\Contracts\EventDispatcher\Event
Open
Open
public function intercept(Event $event);
- Exclude checks
Call to method getOption
from undeclared class \Pug\Pug
Open
Open
return $pug->hasOption($name) ? $pug->getOption($name) : $default;
- Exclude checks
Class extends undeclared class \Symfony\Component\HttpKernel\DependencyInjection\Extension
Open
Open
class PugExtension extends Extension
- Exclude checks
Return type of getEngine()
is undeclared type \Pug\PugSymfonyEngine
Open
Open
public function getEngine(): PugSymfonyEngine
- Exclude checks
Property \Pug\Symfony\Traits\Options->pug
has undeclared type \Pug\Pug
Open
Open
* @property Pug|null $pug
- Exclude checks
Call to method getAssetUrl
from undeclared class \Symfony\Bridge\Twig\Extension\AssetExtension
Open
Open
$url = $this->assets->getAssetUrl("$url");
- Exclude checks
Call to method getSourceContext
from undeclared class \Twig\Loader\LoaderInterface
Open
Open
return $this->base->getSourceContext($name);
- Exclude checks
Call to method load
from undeclared class \Symfony\Component\DependencyInjection\Loader\PhpFileLoader
Open
Open
$loader->load('pug.php');
- Exclude checks
Call to method loadFromExtension
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$containerBuilder->loadFromExtension($extension->getAlias());
- Exclude checks
Property \Pug\Symfony\CssExtension->assets
has undeclared type \Symfony\Bridge\Twig\Extension\AssetExtension
Open
Open
protected $assets;
- Exclude checks