Unused method, property, variable or parameter

This commit is contained in:
Simon Vieille 2015-03-05 19:34:09 +01:00
parent 07d50a28e8
commit b83de090eb
26 changed files with 13 additions and 29 deletions

View file

@ -237,6 +237,7 @@ class CrudConfiguration
public function setFieldsets(array $fieldsets, array $i18nFieldsets = array())
{
$this->fieldsets = $fieldsets;
$this->i18nFieldsets_ = $i18nFieldsets;
return $this;
}

View file

@ -18,7 +18,7 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$treeBuilder->root('trinity_admin');
// $treeBuilder->root('trinity_admin');
/*$rootNode
->children()

View file

@ -20,7 +20,7 @@ class TrinityAdminExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -38,7 +38,6 @@ class ConfigurationTransformer
$sub_category = call_user_func(array($sub_category['callback'][0], $sub_category['callback'][1]));
}
$method = $sub_category['test_is_granted'] ? 'addChildIfGranted' : 'addChild';
$title = $sub_category['title'];
$options = array();

View file

@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_assets');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}

View file

@ -20,7 +20,7 @@ class TrinityAssetsExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_contact');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}

View file

@ -20,7 +20,7 @@ class TrinityContactExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -160,6 +160,7 @@ class PageConfiguration
public function setFieldsets(array $fieldsets, array $i18nFieldsets = array())
{
$this->fieldsets = $fieldsets;
$this->i18nFieldsets_ = $i18nFieldsets;
return $this;
}

View file

@ -14,7 +14,6 @@ class NodeUrlResolver
private $container;
private $config_url_resolver;
private $config_default_locale;
private $router;
public function __construct(ContainerInterface $container, RouterInterface $router)

View file

@ -13,7 +13,6 @@ class PageExtension extends \Twig_Extension
{
private $environment;
private $resources;
private $blockManager;
protected $pageSelector;
protected $url_resolver;

View file

@ -18,12 +18,10 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_icons');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}

View file

@ -20,7 +20,7 @@ class TrinityIconsExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_media');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -20,7 +20,7 @@ class TrinityMediaExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_newsletter');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_search');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -20,7 +20,7 @@ class TrinitySearchExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -13,7 +13,6 @@ class RouteAccessControl implements AccessControlInterface
private $context;
private $accessDecisionManager;
private $map;
private $router;
public function __construct(SecurityContextInterface $context, AccessDecisionManagerInterface $accessDecisionManager, AccessMap $map, RouterInterface $router)
{
@ -38,7 +37,7 @@ class RouteAccessControl implements AccessControlInterface
$request = Request::create($this->route);
list($attributes, $channel) = $this->map->getPatterns($request);
list($attributes) = $this->map->getPatterns($request);
if (null === $attributes) {
return true;

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_security');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -20,7 +20,7 @@ class TrinitySecurityExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_slideshow');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -20,7 +20,7 @@ class TrinitySlideshowExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');

View file

@ -74,8 +74,6 @@ class VarsAdminController extends Controller
}
}
$fs = new Filesystem();
if (is_writable($file)) {
file_put_contents($file, $dumper->dump($config, 7));
} else {

View file

@ -18,7 +18,6 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('trinity_widget');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for

View file

@ -20,7 +20,7 @@ class TrinityWidgetExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);
$this->processConfiguration($configuration, $configs);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');