Completed
Pull Request — master (#3)
by
unknown
02:52
created
src/Charcoal/App/AppConfig.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 
468 468
     /**
469 469
      * @param array $databases The avaiable databases config.
470
-     * @return Config Chainable
470
+     * @return AppConfig Chainable
471 471
      */
472 472
     public function setDatabases(array $databases)
473 473
     {
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 
551 551
     /**
552 552
      * @throws Exception If trying to access this method before a setter.
553
-     * @return mixed
553
+     * @return string
554 554
      */
555 555
     public function defaultDatabase()
556 556
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@
 block discarded – undo
436 436
             $this->routes = [];
437 437
         }
438 438
 
439
-        $toIterate = [ 'templates', 'actions', 'scripts' ];
439
+        $toIterate = ['templates', 'actions', 'scripts'];
440 440
         foreach ($routes as $key => $val) {
441 441
             if (in_array($key, $toIterate) && isset($this->routes[$key])) {
442 442
                 $this->routes[$key] = array_merge($this->routes[$key], $val);
Please login to merge, or discard this patch.
src/Charcoal/App/Handler/NotAllowed.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     /**
82 82
      * Set the HTTP methods allowed by the current request.
83 83
      *
84
-     * @param  array $methods Case-sensitive array of methods.
84
+     * @param  string[] $methods Case-sensitive array of methods.
85 85
      * @return NotAllowed Chainable
86 86
      */
87 87
     protected function setMethods(array $methods)
Please login to merge, or discard this patch.
src/Charcoal/App/Route/TemplateRouteConfig.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Charcoal\App\App;
9 9
 
10 10
 // Dependencies from 'charcoal-translator'
11
-use Charcoal\Translator\Translation;
12 11
 
13 12
 // Local namespace dependencies
14 13
 use Charcoal\App\Route\RouteConfig;
Please login to merge, or discard this patch.
src/Charcoal/App/Handler/AbstractHandler.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@  discard block
 block discarded – undo
7 7
 use Psr\Log\LoggerAwareTrait;
8 8
 
9 9
 // Dependencies from PSR-7 (HTTP Messaging)
10
-use Psr\Http\Message\ResponseInterface;
11 10
 use Psr\Http\Message\ServerRequestInterface;
12 11
 use Psr\Http\Message\UriInterface;
13 12
 
@@ -28,7 +27,6 @@  discard block
 block discarded – undo
28 27
 
29 28
 // Intra-module (`charcoal-app`) dependencies
30 29
 use Charcoal\App\AppConfig;
31
-use Charcoal\App\Template\TemplateInterface;
32 30
 use Charcoal\App\Handler\HandlerInterface;
33 31
 use Charcoal\App\Handler\HandlerConfig;
34 32
 
Please login to merge, or discard this patch.