Completed
Push — master ( 1ed358...57ff49 )
by Vladimir
02:18
created
src/allejo/stakx/Server/WebServer.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,8 @@
 block discarded – undo
58 58
     {
59 59
         $dispatcher = Controller::create($router, $compiler);
60 60
 
61
-        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher, $compiler) {
61
+        return new Server(function (ServerRequestInterface $request) use ($router, $dispatcher, $compiler)
62
+        {
62 63
             $httpMethod = $request->getMethod();
63 64
             $urlPath = Controller::normalizeUrl($request->getUri()->getPath());
64 65
 
Please login to merge, or discard this patch.
src/allejo/stakx/Utilities/HtmlUtils.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 abstract class HtmlUtils
11 11
 {
12
+    /**
13
+     * @param string $xpathQuery
14
+     */
12 15
     public static function htmlXPath(\DOMDocument &$DOMDocument, $html, $xpathQuery)
13 16
     {
14 17
         $html = self::normalizeHTML($html);
@@ -38,6 +41,9 @@  discard block
 block discarded – undo
38 41
         return $xpath->query($xpathQuery);
39 42
     }
40 43
 
44
+    /**
45
+     * @return string
46
+     */
41 47
     private static function normalizeHTML($html)
42 48
     {
43 49
         if (strpos($html, '<body>') === false || strpos($html, '</body>') === false)
Please login to merge, or discard this patch.