Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Moln committed Nov 14, 2017
1 parent f055a14 commit 01eddd1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 24 deletions.
37 changes: 18 additions & 19 deletions src/ContentValidationMiddlewareFactory.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?php


namespace Zfegg\ContentValidation;


use Psr\Container\ContainerInterface;
use Zend\InputFilter\InputFilterPluginManager;

class ContentValidationMiddlewareFactory
{

public function __invoke(ContainerInterface $container)
{
return new ContentValidationMiddleware(
$container->get(InputFilterPluginManager::class)
);
}
}
<?php


namespace Zfegg\ContentValidation;

use Psr\Container\ContainerInterface;
use Zend\InputFilter\InputFilterPluginManager;

class ContentValidationMiddlewareFactory
{

public function __invoke(ContainerInterface $container)
{
return new ContentValidationMiddleware(
$container->get(InputFilterPluginManager::class)
);
}
}
2 changes: 0 additions & 2 deletions test/ContentValidationListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Zend\Mvc\ApplicationInterface;
use Zend\Mvc\MvcEvent;
use Zend\Router\Http\RouteMatch;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\Parameters;
use Zfegg\ContentValidation\ContentValidationListener;
Expand Down Expand Up @@ -83,7 +82,6 @@ public function setUp()
);

$this->container = $sl;

}

public function invokeProvider()
Expand Down
3 changes: 0 additions & 3 deletions test/ContentValidationMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use Zend\InputFilter\Factory;
use Zend\InputFilter\InputFilterPluginManager;
use Zend\InputFilter\InputFilterPluginManagerFactory;
use Zend\ServiceManager\Factory\InvokableFactory;
use Zend\ServiceManager\ServiceManager;
use Zfegg\ContentValidation\ContentValidationMiddleware;
use Zfegg\ContentValidation\ContentValidationMiddlewareFactory;
Expand Down Expand Up @@ -79,7 +78,6 @@ public function setUp()
);

$this->container = $sl;

}

public function invokeProvider()
Expand Down Expand Up @@ -278,5 +276,4 @@ function (
}
}
}

}

0 comments on commit 01eddd1

Please sign in to comment.