silverstripe /
silverstripe-controllerpolicy
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace SilverStripe\ControllerPolicy\Tests\CachingPolicyTest; |
||||
| 4 | |||||
| 5 | class CallbackCachingPolicyController extends CachingPolicyController |
||||
| 6 | { |
||||
| 7 | private static $url_segment = 'CallbackCachingPolicyController'; |
||||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||||
| 8 | |||||
| 9 | public function getCacheAge($age) |
||||
|
0 ignored issues
–
show
The parameter
$age is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 10 | { |
||||
| 11 | return '1001'; |
||||
| 12 | } |
||||
| 13 | |||||
| 14 | public function getVary($vary) |
||||
|
0 ignored issues
–
show
The parameter
$vary is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 15 | { |
||||
| 16 | return 'X-HeightWeight'; |
||||
| 17 | } |
||||
| 18 | |||||
| 19 | public function getModificationTimestamp() |
||||
| 20 | { |
||||
| 21 | return '5000'; |
||||
| 22 | } |
||||
| 23 | } |
||||
| 24 |