Completed
Branch master (e13577)
by Harry
05:53
created
src/Response/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      *
84 84
      * @param string $name
85 85
      *
86
-     * @return mixed|null The value or null if the field does not exist
86
+     * @return string The value or null if the field does not exist
87 87
      */
88 88
     public function popField($name)
89 89
     {
Please login to merge, or discard this patch.
src/Response/ErrorCode.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -892,8 +892,7 @@  discard block
 block discarded – undo
892 892
     public static function getName($errorCode)
893 893
     {
894 894
         return array_key_exists($errorCode, static::$errors) ?
895
-            static::$errors[$errorCode][0] :
896
-            null;
895
+            static::$errors[$errorCode][0] : null;
897 896
     }
898 897
 
899 898
     /**
@@ -904,7 +903,6 @@  discard block
 block discarded – undo
904 903
     public static function getDescription($errorCode)
905 904
     {
906 905
         return array_key_exists($errorCode, static::$errors) ?
907
-            static::$errors[$errorCode][1] :
908
-            null;
906
+            static::$errors[$errorCode][1] : null;
909 907
     }
910 908
 }
Please login to merge, or discard this patch.