Completed
Pull Request — develop (#17)
by Patrick
04:03 queued 55s
created
Http/Rest/class.SerializationMiddleware.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -24,6 +24,9 @@  discard block
 block discarded – undo
24 24
         }
25 25
     }
26 26
 
27
+    /**
28
+     * @param string $param
29
+     */
27 30
     private function getParamFromArrayIfSet($array, $param, $default = null)
28 31
     {
29 32
         if(isset($array[$param]))
@@ -52,6 +55,9 @@  discard block
 block discarded – undo
52 55
         return $response;
53 56
     }
54 57
 
58
+    /**
59
+     * @param string $serializer
60
+     */
55 61
     protected function reserializeBody($response, $serializer)
56 62
     {
57 63
         $body = $response->getBody();
Please login to merge, or discard this patch.
Http/class.WebSite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     {
13 13
         parent::__construct();
14 14
         $c = $this->getContainer();
15
-        $c['errorHandler'] = function($c) { return new WebErrorHandler();};
15
+        $c['errorHandler'] = function($c) { return new WebErrorHandler(); };
16 16
         $this->add(new AuthMiddleware());
17 17
         $this->add(new ODataMiddleware());
18 18
     }
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function registerAPI($uri, $api)
26 26
     {
27
-        $this->group($uri, function() use($api) {$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware());
27
+        $this->group($uri, function() use($api) {$api->setup($this); })->add(new \Http\Rest\SerializationMiddleware());
28 28
     }
29 29
 }
Please login to merge, or discard this patch.