for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class Configuration extends ObjectModel
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.
{
public static function get($key, $id_lang = NULL)
$id_lang
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
if ( $key === "PS_CORREIOS_FACTORY" )
return "Soapclient";
if ( $key === "PS_CORREIOS_CARRIER_1" )
return "04510"; #era "41106"; # PAC
if ( $key === "PS_CORREIOS_CARRIER_2" )
return "04014"; #era "40010"; # SEDEX
if ( $key === "PS_CORREIOS_CARRIER_3" )
return "40215"; # SEDEX 10
if ( $key === "PS_CORREIOS_CARRIER_4" )
return "40290"; # SEDEX HOJE
if( $key === "PS_CORREIOS_CEP_ORIG" )
return "01311000"; # av paulista
}
public static function getMultiple($keys, $id_lang = NULL)
$keys
return array();
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.