Absolute path constants __DIR__ and __FILE__ should not be used
More information: https://insight.sensiolabs.com/what-we-analyse/symfony.dependency_injection.use_dir_file_constant
- require $proxyFile;
- return $proxyClass;
- }
- $content = file_get_contents(dirname(__DIR__).'/Resources/proxy/template.php');
- $content = str_replace('__TPL_CLASS__', $proxyClass, $content);
- $content = str_replace('__TPL_EXTENDS__', $class, $content);
- $this->checkProxyDirectory();
- file_put_contents($proxyFile, $content);
Unused method, property, variable or parameter
More information: https://insight.sensiolabs.com/what-we-analyse/php.unused_local_variable_or_private_member
- use Cache\CacheBundle\DataCollector\TraceableAdapterEvent;
- use Psr\Cache\CacheItemInterface;
- class __TPL_CLASS__ extends __TPL_EXTENDS__ implements CacheProxyInterface
- {
- private $__name;
- private $__calls = [];
- public function getItem($key)
- {
- $event = $this->start(__FUNCTION__, $key);