for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/**
* Created by Vitaly Iegorov <[email protected]>.
* on 14.08.16 at 15:55
*/
namespace samsonframework\container\configurator;
* XML dependency injection container configuration.
* @author Vitaly Iegorov <[email protected]>
* @author Ruslan Molodyko <[email protected]>
class XMLConfigurator
{
public function configure(string $configuration)
$configuration
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$configString = file_get_contents(__DIR__ . '/../../../app/config/prod.xml');
$config = new \SimpleXMLElement($configString);
// Find all configuration classes
$configData = [];
foreach ($config->container as $service) {
foreach ($service as $serviceName => $configuration) {
$configData[$serviceName] = (array)$configuration;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.