Skip to content
Snippets Groups Projects
Commit 13f8af45 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

PHPMD fixes.

parent 7d937150
No related merge requests found
...@@ -56,6 +56,8 @@ class AbstractCommandFactory implements FactoryInterface ...@@ -56,6 +56,8 @@ class AbstractCommandFactory implements FactoryInterface
* @throws ServiceNotCreatedException if an exception is raised when * @throws ServiceNotCreatedException if an exception is raised when
* creating a service. * creating a service.
* @throws ContainerException if any other error occurs * @throws ContainerException if any other error occurs
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/ */
public function __invoke(ContainerInterface $container, $requestedName, public function __invoke(ContainerInterface $container, $requestedName,
array $options = null array $options = null
......
...@@ -231,6 +231,8 @@ class NotifyCommand extends Command implements TranslatorAwareInterface ...@@ -231,6 +231,8 @@ class NotifyCommand extends Command implements TranslatorAwareInterface
* @param OutputInterface $output Output object * @param OutputInterface $output Output object
* *
* @return int 0 for success * @return int 0 for success
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
......
...@@ -90,6 +90,8 @@ class CleanUpRecordCacheCommand extends Command ...@@ -90,6 +90,8 @@ class CleanUpRecordCacheCommand extends Command
* @param OutputInterface $output Output object * @param OutputInterface $output Output object
* *
* @return int 0 for success * @return int 0 for success
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
......
...@@ -82,6 +82,8 @@ class CommitCommand extends AbstractSolrCommand ...@@ -82,6 +82,8 @@ class CommitCommand extends AbstractSolrCommand
* @param OutputInterface $output Output object * @param OutputInterface $output Output object
* *
* @return int 0 for success * @return int 0 for success
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
......
...@@ -101,7 +101,6 @@ class DeleteCommandTest extends \PHPUnit\Framework\TestCase ...@@ -101,7 +101,6 @@ class DeleteCommandTest extends \PHPUnit\Framework\TestCase
*/ */
public function testDeletingNonExistentString() public function testDeletingNonExistentString()
{ {
$expectedPath = realpath($this->languageFixtureDir) . '/foo/en.ini';
$command = $this->getMockCommand(); $command = $this->getMockCommand();
$commandTester = new CommandTester($command); $commandTester = new CommandTester($command);
$commandTester->execute(['target' => 'foo::barzap']); $commandTester->execute(['target' => 'foo::barzap']);
......
...@@ -76,7 +76,7 @@ class AbstractExpireCommandTest extends \PHPUnit\Framework\TestCase ...@@ -76,7 +76,7 @@ class AbstractExpireCommandTest extends \PHPUnit\Framework\TestCase
$this->expectExceptionMessage( $this->expectExceptionMessage(
get_class($table) . ' does not support getExpiredIdRange()' get_class($table) . ' does not support getExpiredIdRange()'
); );
$command = new $this->targetClass($table, 'foo'); new $this->targetClass($table, 'foo');
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment