for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class LimeSoda_LiveGuard_Model_Observer
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* @SuppressWarnings("UnusedFormalParameter")
* @param Varien_Event_Observer $observer
* @return LimeSoda_LiveGuard_Model_Observer
*/
public function controllerFrontInitBefore(Varien_Event_Observer $observer)
$observer
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$config = Mage::getModel('limesoda_liveguard/config');
if (!$config->configExists()) {
return $this;
}
foreach ($config->getGuards() as $guard) {
$guard->process();
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.