Completed
Push — master ( bc72c5...1b234b )
by richard
02:39
created
src/Interfaces/ServerInterface.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,15 +15,23 @@
 block discarded – undo
15 15
     /**
16 16
      * Retrieves all values defined in the superglobal $_SERVER.
17 17
      *
18
-     * @param string $value         The key's name.
19 18
      * @return string|mixed
20 19
      */
21 20
     public static function getValues();
22 21
 
22
+    /**
23
+     * @return \Almendra\Http\Server
24
+     */
23 25
     public function get();
24 26
 
27
+    /**
28
+     * @return \Almendra\Http\Server
29
+     */
25 30
     public function post();
26 31
 
32
+    /**
33
+     * @return \Almendra\Http\Server
34
+     */
27 35
     public function files();
28 36
 
29 37
     public function all();
Please login to merge, or discard this patch.
src/Psr/Messages/ServerRequest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Psr\Http\Message\ServerRequestInterface as RequestInterface;
6 6
 use Almendra\Http\Psr\Messages\Response;
7
-
8 7
 use Almendra\Http\Helpers\URI as URIHelper;
9
-use Almendra\Http\Server;
10 8
 
11 9
 class ServerRequest extends Response implements RequestInterface
12 10
 {
Please login to merge, or discard this patch.
src/Psr/Messages/Stream.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      *
156 156
      * After the stream has been detached, the stream is in an unusable state.
157 157
      *
158
-     * @return resource|null Underlying PHP stream, if any
158
+     * @return null|Stream Underlying PHP stream, if any
159 159
      */
160 160
     public function detach()
161 161
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     /**
377 377
      * Gets the value of body.
378 378
      *
379
-     * @return mixed
379
+     * @return null|Stream
380 380
      */
381 381
     public function getBody()
382 382
     {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     /**
391 391
      * Sets the value of body.
392 392
      *
393
-     * @param mixed $body the body
393
+     * @param resource $body the body
394 394
      *
395 395
      * @return self
396 396
      */
Please login to merge, or discard this patch.
src/Server.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
      * Retrieves a value defined in the superglobal $_SERVER.
11 11
      *
12 12
      * @param string $value 		The key's name.
13
-     * @return string|mixed
13
+     * @return string
14 14
      */
15 15
     public static function getValue($value, $default = '')
16 16
     {
@@ -24,7 +24,6 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * Retrieves all values defined in the superglobal $_SERVER.
26 26
      *
27
-     * @param string $value         The key's name.
28 27
      * @return string|mixed
29 28
      */
30 29
     public static function getValues()
Please login to merge, or discard this patch.