for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xervice\Twig\Business\Loader;
class XerviceLoader implements \Twig_LoaderInterface
{
/**
* @param string $name
*
* @return \Twig_Source
* @throws \Twig_Error_Loader
*/
public function getSourceContext($name)
}
* @return string
public function getCacheKey($name)
* @param int $time
* @return bool
public function isFresh($name, $time)
public function exists($name)
private function findTemplate(string $template)
findTemplate()
This check looks for private methods that have been defined, but are not used inside the class.
$template
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
private function findTemplate(/** @scrutinizer ignore-unused */ string $template)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
This check looks for private methods that have been defined, but are not used inside the class.