Completed
Pull Request — master (#99)
by Vladimir
02:18
created
src/allejo/stakx/Server/MimeDetector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -783,6 +783,9 @@
 block discarded – undo
783 783
         'zmm' => 'application/vnd.handheld-entertainment+xml',
784 784
     ];
785 785
 
786
+    /**
787
+     * @return \allejo\stakx\Document\StaticPageView
788
+     */
786 789
     public static function getMimeType($extension)
787 790
     {
788 791
         return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null;
Please login to merge, or discard this patch.
src/allejo/stakx/Server/RouteMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
     /**
101 101
      * Retrieve all of the URL routes registered.
102 102
      *
103
-     * @return string[]
103
+     * @return integer[]
104 104
      */
105 105
     public function getRoutes()
106 106
     {
Please login to merge, or discard this patch.
src/allejo/stakx/Server/WebServer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@
 block discarded – undo
60 60
     {
61 61
         $routes = Controller::create($routeMapper, $compiler);
62 62
 
63
-        return new Server(function (ServerRequestInterface $request) use ($routes, $compiler) {
63
+        return new Server(function (ServerRequestInterface $request) use ($routes, $compiler)
64
+        {
64 65
             $httpMethod = $request->getMethod();
65 66
             $urlPath = Controller::normalizeUrl($request->getUri()->getPath());
66 67
 
Please login to merge, or discard this patch.