for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace mQueue\View\Helper;
use Zend_View_Helper_HeadLink;
class HeadLink extends Zend_View_Helper_HeadLink
{
/**
* Override parent to inject the last modified time of file.
* This avoid browser cache and force reloading when the file changed.
*
* @param string $method
* @param array $args
* @return mixed
*/
public function __call($method, $args)
if (mb_strpos($method, 'Stylesheet')) {
$args[0] = $this->view->cacheStamp($args[0]);
}
return parent::__call($method, $args);
parent::__call($method, $args)
Zend_View_Helper_HeadLink::__call()
This check looks for function or method calls that always return null and whose return value is used.
class A { function getObject() { return null; } } $a = new A(); if ($a->getObject()) {
The method getObject() can return nothing but null, so it makes no sense to use the return value.
getObject()
The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.