Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
/zend-mvcPublic archive

Commita61af6b

Browse files
committed
Merge pull request#291 from unckleg/cs-fixes-intellij
Intellij scan fixes (Unused/Uncompatible/Undocumented stuff)
2 parents9f092ff +4e90a42 commita61af6b

23 files changed

+14
-28
lines changed

‎src/Controller/ControllerManager.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ControllerManager extends AbstractPluginManager
4242
* Injects an initializer for injecting controllers with an
4343
* event manager and plugin manager.
4444
*
45-
* @param ConfigInterface|ContainerInterface $container
45+
* @param ConfigInterface|ContainerInterface $configOrContainerInstance
4646
* @param array $config
4747
*/
4848
publicfunction__construct($configOrContainerInstance,array$config = [])

‎src/Controller/LazyControllerAbstractFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function canCreate(ContainerInterface $container, $requestedName)
146146
privatefunctionresolveParameter(ContainerInterface$container,$requestedName)
147147
{
148148
/**
149-
* @paramReflectionClass $parameter
149+
* @paramReflectionParameter $parameter
150150
* @return mixed
151151
* @throws ServiceNotFoundException If type-hinted parameter cannot be
152152
* resolved to a service in the container.

‎src/Controller/PluginManager.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class PluginManager extends AbstractPluginManager
8787
* as the first controller, the reference to the controller inside the
8888
* plugin is lost.
8989
*
90-
* @param string $name
90+
* @param string $name
91+
* @param null|array $options Options to use when creating the instance.
9192
* @return DispatchableInterface
9293
*/
9394
publicfunctionget($name,array$options =null)

‎src/DispatchListener.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public function onDispatch(MvcEvent $e)
8383
?$routeMatch->getParam('controller','not-found')
8484
:'not-found';
8585
$application =$e->getApplication();
86-
$events =$application->getEventManager();
8786
$controllerManager =$this->controllerManager;
8887

8988

‎src/MiddlewareListener.php‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@
1111
useInterop\Http\ServerMiddleware\MiddlewareInterface;
1212
usePsr\Http\Message\ResponseInterfaceasPsrResponseInterface;
1313
usePsr\Http\Message\ResponseInterface;
14-
usePsr\Http\Message\ServerRequestInterfaceasPsrServerRequestInterface;
1514
useZend\EventManager\AbstractListenerAggregate;
1615
useZend\EventManager\EventManagerInterface;
1716
useZend\Mvc\Exception\InvalidMiddlewareException;
18-
useZend\Mvc\Exception\ReachedFinalHandlerException;
1917
useZend\Mvc\Controller\MiddlewareController;
2018
useZend\Psr7Bridge\Psr7Response;
21-
useZend\Router\RouteMatch;
2219
useZend\Stratigility\Delegate\CallableDelegateDecorator;
2320
useZend\Stratigility\MiddlewarePipe;
2421

@@ -28,6 +25,7 @@ class MiddlewareListener extends AbstractListenerAggregate
2825
* Attach listeners to an event manager
2926
*
3027
* @param EventManagerInterface $events
28+
* @param int $priority
3129
* @return void
3230
*/
3331
publicfunctionattach(EventManagerInterface$events,$priority =1)

‎src/Service/ControllerManagerFactory.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ControllerManagerFactory implements FactoryInterface
2424
* if the controller implements a setPluginManager() method.
2525
*
2626
* @param ContainerInterface $container
27-
* @param string $Name
27+
* @param string $name
2828
* @param null|array $options
2929
* @return ControllerManager
3030
*/

‎src/Service/ServiceListenerFactory.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
useZend\ServiceManager\Exception\ServiceNotCreatedException;
1515
useZend\ServiceManager\Factory\FactoryInterface;
1616
useZend\ServiceManager\Factory\InvokableFactory;
17-
useZend\ServiceManager\ServiceLocatorInterface;
1817

1918
class ServiceListenerFactoryimplements FactoryInterface
2019
{
@@ -112,7 +111,9 @@ class ServiceListenerFactory implements FactoryInterface
112111
* - interface: the name of the interface that modules can implement as string
113112
* - method: the name of the method that modules have to implement as string
114113
*
115-
* @param ServiceLocatorInterface $serviceLocator
114+
* @param ContainerInterface $container
115+
* @param string $requestedName
116+
* @param null|array $options
116117
* @return ServiceListenerInterface
117118
* @throws ServiceNotCreatedException for invalid ServiceListener service
118119
* @throws ServiceNotCreatedException For invalid configurations.

‎src/Service/ViewHelperManagerFactory.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class ViewHelperManagerFactory extends AbstractPluginManagerFactory
3131
* Create and return the view helper manager
3232
*
3333
* @param ContainerInterface $container
34+
* @param string $requestedName
35+
* @param null|array $options
3436
* @return HelperPluginManager
3537
* @throws ServiceNotCreatedException
3638
*/

‎src/View/Http/DefaultRenderingStrategy.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getLayoutTemplate()
7676
*
7777
* @param MvcEvent $e
7878
* @return Response|null
79-
* @throws \Exception
79+
* @throws \Exception|\Throwable
8080
*/
8181
publicfunctionrender(MvcEvent$e)
8282
{

‎test/Application/BadControllerTrait.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
useReflectionProperty;
1111
useZend\Http\PhpEnvironment\Request;
1212
useZend\Http\PhpEnvironment\Response;
13-
useZend\Mvc\Application;
1413
useZend\Mvc\Controller\ControllerManager;
1514
useZend\Mvc\Service\ServiceManagerConfig;
1615
useZend\Mvc\Service\ServiceListenerFactory;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp