Remove some unused methods parameters
This commit is contained in:
parent
814bdebeeb
commit
026730e913
@ -166,7 +166,7 @@ class JsonDescriptor extends Descriptor
|
||||
*/
|
||||
protected function describeCallable($callable, array $options = [])
|
||||
{
|
||||
$this->writeData($this->getCallableData($callable, $options), $options);
|
||||
$this->writeData($this->getCallableData($callable), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -321,7 +321,7 @@ class JsonDescriptor extends Descriptor
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getCallableData($callable, array $options = [])
|
||||
private function getCallableData($callable)
|
||||
{
|
||||
$data = [];
|
||||
|
||||
|
@ -585,7 +585,7 @@ class SecurityExtension extends Extension
|
||||
{
|
||||
$encoderMap = [];
|
||||
foreach ($encoders as $class => $encoder) {
|
||||
$encoderMap[$class] = $this->createEncoder($encoder, $container);
|
||||
$encoderMap[$class] = $this->createEncoder($encoder);
|
||||
}
|
||||
|
||||
$container
|
||||
@ -594,7 +594,7 @@ class SecurityExtension extends Extension
|
||||
;
|
||||
}
|
||||
|
||||
private function createEncoder($config, ContainerBuilder $container)
|
||||
private function createEncoder($config)
|
||||
{
|
||||
// a custom encoder service
|
||||
if (isset($config['id'])) {
|
||||
|
@ -114,7 +114,7 @@ EOF
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->displayLog($input, $output, $clientId, $record);
|
||||
$this->displayLog($output, $clientId, $record);
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,7 +141,7 @@ EOF
|
||||
}
|
||||
}
|
||||
|
||||
private function displayLog(InputInterface $input, OutputInterface $output, $clientId, array $record)
|
||||
private function displayLog(OutputInterface $output, $clientId, array $record)
|
||||
{
|
||||
if ($this->handler->isHandling($record)) {
|
||||
if (isset($record['log_id'])) {
|
||||
|
@ -278,7 +278,7 @@ class XmlFileLoader extends FileLoader
|
||||
$definition->setDeprecated(true, $deprecated[0]->nodeValue ?: null);
|
||||
}
|
||||
|
||||
$definition->setArguments($this->getArgumentsAsPhp($service, 'argument', $file, false, $definition instanceof ChildDefinition));
|
||||
$definition->setArguments($this->getArgumentsAsPhp($service, 'argument', $file, $definition instanceof ChildDefinition));
|
||||
$definition->setProperties($this->getArgumentsAsPhp($service, 'property', $file));
|
||||
|
||||
if ($factories = $this->getChildren($service, 'factory')) {
|
||||
@ -452,11 +452,10 @@ class XmlFileLoader extends FileLoader
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $file
|
||||
* @param bool $lowercase
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase = true, $isChildDefinition = false)
|
||||
private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $isChildDefinition = false)
|
||||
{
|
||||
$arguments = [];
|
||||
foreach ($this->getChildren($node, $name) as $arg) {
|
||||
@ -506,10 +505,10 @@ class XmlFileLoader extends FileLoader
|
||||
$arguments[$key] = new Expression($arg->nodeValue);
|
||||
break;
|
||||
case 'collection':
|
||||
$arguments[$key] = $this->getArgumentsAsPhp($arg, $name, $file, false);
|
||||
$arguments[$key] = $this->getArgumentsAsPhp($arg, $name, $file);
|
||||
break;
|
||||
case 'iterator':
|
||||
$arg = $this->getArgumentsAsPhp($arg, $name, $file, false);
|
||||
$arg = $this->getArgumentsAsPhp($arg, $name, $file);
|
||||
try {
|
||||
$arguments[$key] = new IteratorArgument($arg);
|
||||
} catch (InvalidArgumentException $e) {
|
||||
|
@ -41,7 +41,7 @@ class XliffFileDumper extends FileDumper
|
||||
return $this->dumpXliff1($defaultLocale, $messages, $domain, $options);
|
||||
}
|
||||
if ('2.0' === $xliffVersion) {
|
||||
return $this->dumpXliff2($defaultLocale, $messages, $domain, $options);
|
||||
return $this->dumpXliff2($defaultLocale, $messages, $domain);
|
||||
}
|
||||
|
||||
throw new InvalidArgumentException(sprintf('No support implemented for dumping XLIFF version "%s".', $xliffVersion));
|
||||
@ -129,7 +129,7 @@ class XliffFileDumper extends FileDumper
|
||||
return $dom->saveXML();
|
||||
}
|
||||
|
||||
private function dumpXliff2($defaultLocale, MessageCatalogue $messages, $domain, array $options = [])
|
||||
private function dumpXliff2($defaultLocale, MessageCatalogue $messages, $domain)
|
||||
{
|
||||
$dom = new \DOMDocument('1.0', 'utf-8');
|
||||
$dom->formatOutput = true;
|
||||
|
Reference in New Issue
Block a user