Completed
Pull Request — master (#75)
by Vladimir
02:16
created
src/allejo/stakx/Server/DevServer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,8 @@
 block discarded – undo
43 43
     {
44 44
         $dispatcher = RouteDispatcher::create($router, $compiler);
45 45
 
46
-        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher) {
46
+        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher)
47
+        {
47 48
             $httpMethod = $request->getMethod();
48 49
             $urlPath = RouteDispatcher::normalizeUrl($request->getUri()->getPath());
49 50
 
Please login to merge, or discard this patch.
src/allejo/stakx/Server/MimeDetector.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@
 block discarded – undo
103 103
         'json' => 'application/json',
104 104
     ];
105 105
 
106
+    /**
107
+     * @return \allejo\stakx\Document\StaticPageView
108
+     */
106 109
     public static function getMimeType($extension)
107 110
     {
108 111
         return isset(self::$mimes[$extension]) ? self::$mimes[$extension] : null;
Please login to merge, or discard this patch.