for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SilverStripe\ControllerPolicy\Tests\CachingPolicyTest;
class CallbackCachingPolicyController extends CachingPolicyController
{
private static $url_segment = 'CallbackCachingPolicyController';
$url_segment
public function getCacheAge($age)
$age
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getCacheAge(/** @scrutinizer ignore-unused */ $age)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return '1001';
}
public function getVary($vary)
$vary
public function getVary(/** @scrutinizer ignore-unused */ $vary)
return 'X-HeightWeight';
public function getModificationTimestamp()
return '5000';