Completed
Push — master ( 24ccf8...89196b )
by Derek Stephen
01:45
created
src/Mvc/Application.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@
 block discarded – undo
48 48
     /**
49 49
      *  Ahoy! There nay be boardin without yer configuration
50 50
      *
51
-     * @param array $config
52 51
      * @return Application
53 52
      */
54 53
     public static function ahoy()
Please login to merge, or discard this patch.
Unused Use Statements   +10 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,29 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Bone\Mvc;
4 4
 
5
-use Barnacle\Container;
6
-use Barnacle\RegistrationInterface;
7
-use Bone\Mvc\Router\Decorator\ExceptionDecorator;
8
-use Bone\Mvc\Router\Decorator\NotFoundDecorator;
9
-use Bone\Mvc\Router\PlatesStrategy;
10
-use Bone\Mvc\Router\RouterConfigInterface;
11
-use Bone\Mvc\View\PlatesEngine;
12
-use Bone\Server\Environment;
13
-use Bone\Server\I18nHandler;
14
-use Bone\Server\SiteConfig;
15
-use League\Route\Http\Exception\NotFoundException;
16
-use League\Route\Router;
17
-use League\Route\RouteGroup;
18
-use League\Route\Strategy\ApplicationStrategy;
19
-use League\Route\Strategy\JsonStrategy;
20
-use PDO;
21
-use Psr\Http\Message\ResponseInterface;
22
-use Psr\Http\Message\ServerRequestInterface;
23
-use Zend\Diactoros\ResponseFactory;
24
-use Zend\Diactoros\ServerRequestFactory;
25
-use Zend\Diactoros\Response;
26
-use Zend\Diactoros\Response\RedirectResponse;
27
-use Zend\HttpHandlerRunner\Emitter\SapiEmitter;
5
+use Barnacle\Container;
6
+use Bone\Server\Environment;
7
+use Bone\Server\I18nHandler;
8
+use Bone\Server\SiteConfig;
9
+use League\Route\Http\Exception\NotFoundException;
10
+use League\Route\Router;
11
+use Psr\Http\Message\ServerRequestInterface;
12
+use Zend\Diactoros\ServerRequestFactory;
13
+use Zend\Diactoros\Response\RedirectResponse;
14
+use Zend\HttpHandlerRunner\Emitter\SapiEmitter;
28 15
 use Zend\I18n\Translator\Translator;
29 16
 
30 17
 class Application
Please login to merge, or discard this patch.
src/Mvc/Router/PlatesStrategy.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,6 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Get a middleware that will decorate a NotFoundException
164 164
      *
165
-     * @param \League\Route\Http\Exception\NotFoundException $exception
166 165
      *
167 166
      * @return \Psr\Http\Server\MiddlewareInterface
168 167
      */
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
     /**
175 174
      * Get a middleware that will decorate a NotAllowedException
176 175
      *
177
-     * @param \League\Route\Http\Exception\NotFoundException $e
176
+     * @param \League\Route\Http\Exception\MethodNotAllowedException $e
178 177
      *
179 178
      * @return \Psr\Http\Server\MiddlewareInterface
180 179
      */
Please login to merge, or discard this patch.
src/Server/I18nHandler.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
     /**
24 24
      * InternationalisationMiddleware constructor.
25 25
      * @param  $helper
26
-     * @param string|null $defaultLocale
27 26
      */
28 27
     public function __construct(Translator $translator, array $supportedLocales)
29 28
     {
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,10 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use League\Route\Http\Exception\NotFoundException;
6 6
 use Locale;
7
-use Psr\Http\Message\ResponseInterface;
8 7
 use Psr\Http\Message\ServerRequestInterface;
9
-use Psr\Http\Server\MiddlewareInterface;
10
-use Psr\Http\Server\RequestHandlerInterface;
11 8
 use Zend\I18n\Translator\Translator;
12 9
 
13 10
 class I18nHandler
Please login to merge, or discard this patch.
src/Mvc/ApplicationPackage.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,11 @@
 block discarded – undo
11 11
 use Bone\Mvc\Router\RouterConfigInterface;
12 12
 use Bone\Mvc\View\Extension\Plates\LocaleLink;
13 13
 use Bone\Mvc\View\Extension\Plates\Translate;
14
-use Bone\View\Helper\Paginator;
15 14
 use Bone\Mvc\View\PlatesEngine;
16 15
 use Bone\Service\TranslatorFactory;
17 16
 use League\Route\Router;
18 17
 use Locale;
19 18
 use PDO;
20
-use Zend\I18n\Translator\Loader\Gettext;
21 19
 use Zend\I18n\Translator\Translator;
22 20
 
23 21
 class ApplicationPackage implements RegistrationInterface
Please login to merge, or discard this patch.