Completed
Push — dev-master ( 511541...a305b0 )
by Derek Stephen
06:18
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   +13 added lines, -27 removed lines patch added patch discarded remove patch
@@ -2,33 +2,19 @@
 block discarded – undo
2 2
 
3 3
 namespace Bone\Mvc;
4 4
 
5
-use Barnacle\Container;
6
-use Barnacle\RegistrationInterface;
7
-use Bone\Http\Middleware\Stack;
8
-use Bone\Mvc\Router;
9
-use Bone\Mvc\Router\Decorator\ExceptionDecorator;
10
-use Bone\Mvc\Router\Decorator\NotFoundDecorator;
11
-use Bone\Mvc\Router\NotFoundException;
12
-use Bone\Mvc\Router\PlatesStrategy;
13
-use Bone\Mvc\Router\RouterConfigInterface;
14
-use Bone\Mvc\View\PlatesEngine;
15
-use Bone\Server\Environment;
16
-use Bone\Server\I18nHandler;
17
-use Bone\Server\SiteConfig;
18
-use Del\SessionManager;
19
-use League\Route\RouteGroup;
20
-use League\Route\Strategy\ApplicationStrategy;
21
-use League\Route\Strategy\JsonStrategy;
22
-use PDO;
23
-use Psr\Http\Message\ResponseInterface;
24
-use Psr\Http\Message\ServerRequestInterface;
25
-use Laminas\Diactoros\ResponseFactory;
26
-use Laminas\Diactoros\ServerRequestFactory;
27
-use Laminas\Diactoros\Response;
28
-use Laminas\Diactoros\Response\RedirectResponse;
29
-use Laminas\Diactoros\Uri;
30
-use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
31
-use Laminas\I18n\Translator\Translator;
5
+use Barnacle\Container;
6
+use Bone\Http\Middleware\Stack;
7
+use Bone\Mvc\Router;
8
+use Bone\Mvc\Router\NotFoundException;
9
+use Bone\Server\Environment;
10
+use Bone\Server\I18nHandler;
11
+use Bone\Server\SiteConfig;
12
+use Del\SessionManager;
13
+use Psr\Http\Message\ServerRequestInterface;
14
+use Laminas\Diactoros\ServerRequestFactory;
15
+use Laminas\Diactoros\Response\RedirectResponse;
16
+use Laminas\HttpHandlerRunner\Emitter\SapiEmitter;
17
+use Laminas\I18n\Translator\Translator;
32 18
 use Psr\Http\Server\RequestHandlerInterface;
33 19
 
34 20
 class Application
Please login to merge, or discard this patch.
src/Mvc/Router/PlatesStrategy.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Psr\Http\Server\MiddlewareInterface;
18 18
 use Laminas\Diactoros\Response;
19 19
 use Laminas\Diactoros\Response\HtmlResponse;
20
-use Laminas\Diactoros\Response\JsonResponse;
21 20
 use Laminas\Diactoros\Stream;
22 21
 
23 22
 class PlatesStrategy extends ApplicationStrategy implements StrategyInterface
Please login to merge, or discard this patch.
src/Mvc/Controller/DownloadController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Bone\Mvc\Controller;
4 4
 
5 5
 use Bone\Exception;
6
-use League\Route\Http\Exception\NotFoundException;
7 6
 use InvalidArgumentException;
8 7
 use Psr\Http\Message\ResponseInterface;
9 8
 use Psr\Http\Message\ServerRequestInterface;
Please login to merge, or discard this patch.
src/Mvc/ApplicationPackage.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -294,8 +294,7 @@
 block discarded – undo
294 294
     /**
295 295
      * @param string $view
296 296
      * @param string $folder
297
-     * @param array $registeredViews
298
-     * @param PlatesEngine $viewEngine
297
+     * @param Folders $registeredViews
299 298
      */
300 299
     private function overrideViewFolder(string $view, string $folder, Folders $registeredViews): void
301 300
     {
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@  discard block
 block discarded – undo
3 3
 namespace Bone\Mvc;
4 4
 
5 5
 use Barnacle\Container;
6
-use Barnacle\Exception\NotFoundException;
7 6
 use Barnacle\RegistrationInterface;
8 7
 use Bone\Http\Middleware\Stack;
9 8
 use Bone\I18n\I18nRegistrationInterface;
@@ -17,17 +16,13 @@  discard block
 block discarded – undo
17 16
 use Bone\Mvc\View\Extension\Plates\AlertBox;
18 17
 use Bone\Mvc\View\Extension\Plates\LocaleLink;
19 18
 use Bone\Mvc\View\Extension\Plates\Translate;
20
-use Bone\Mvc\View\ViewEngine;
21
-use Bone\View\Helper\Paginator;
22 19
 use Bone\Mvc\View\PlatesEngine;
23 20
 use Bone\Service\TranslatorFactory;
24 21
 use League\Plates\Template\Folders;
25
-use League\Route\Strategy\ApplicationStrategy;
26 22
 use League\Route\Strategy\JsonStrategy;
27 23
 use Locale;
28 24
 use PDO;
29 25
 use Laminas\Diactoros\ResponseFactory;
30
-use Laminas\I18n\Translator\Loader\Gettext;
31 26
 use Laminas\I18n\Translator\Translator;
32 27
 use Psr\Http\Server\MiddlewareInterface;
33 28
 
Please login to merge, or discard this patch.
src/Mvc/Router/Decorator/NotAllowedDecorator.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Bone\Mvc\Router\Decorator;
4 4
 
5
-use Bone\Mvc\View\ViewEngine;
6 5
 use Psr\Http\Message\ResponseInterface;
7 6
 use Psr\Http\Message\ServerRequestInterface;
8
-use Psr\Http\Server\MiddlewareInterface;
9 7
 use Psr\Http\Server\RequestHandlerInterface;
10 8
 use Laminas\Diactoros\Response\HtmlResponse;
11 9
 
Please login to merge, or discard this patch.
src/Server/I18nHandler.php 1 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 Bone\Mvc\Router\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 Laminas\I18n\Translator\Translator;
12 9
 
13 10
 class I18nHandler
Please login to merge, or discard this patch.
src/Mvc/Router.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
     }
16 16
 
17 17
     /**
18
-     * @param Route $route
19 18
      */
20 19
     public function removeRoute(Route $routeToRemove): void
21 20
     {
Please login to merge, or discard this patch.