| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 10 | public function controllerFrontInitBefore(Varien_Event_Observer $observer) |
||
| 11 | { |
||
| 12 | $config = Mage::getModel('limesoda_liveguard/config'); |
||
| 13 | |||
| 14 | if (!$config->configExists()) { |
||
| 15 | return $this; |
||
| 16 | } |
||
| 17 | |||
| 18 | foreach ($config->getGuards() as $guard) { |
||
| 19 | $guard->process(); |
||
| 20 | } |
||
| 21 | |||
| 22 | return $this; |
||
| 23 | } |
||
| 24 | } |
||
| 25 |
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.