Passed
Push — master ( 45a5e6...f5117b )
by Anatoly
01:40
created
src/Response.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	protected function validateStatusCode($statusCode) : void
91 91
 	{
92
-		if (! \is_int($statusCode))
92
+		if (!\is_int($statusCode))
93 93
 		{
94 94
 			throw new \InvalidArgumentException('HTTP status-code must be an integer');
95 95
 		}
96
-		else if (! ($statusCode >= 100 && $statusCode <= 599))
96
+		else if (!($statusCode >= 100 && $statusCode <= 599))
97 97
 		{
98 98
 			throw new \InvalidArgumentException(\sprintf('The given status-code "%d" is not valid', $statusCode));
99 99
 		}
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
 	 */
113 113
 	protected function validateReasonPhrase($reasonPhrase) : void
114 114
 	{
115
-		if (! \is_string($reasonPhrase))
115
+		if (!\is_string($reasonPhrase))
116 116
 		{
117 117
 			throw new \InvalidArgumentException('HTTP reason-phrase must be a string');
118 118
 		}
119
-		else if (! \preg_match(self::RFC7230_FIELD_VALUE, $reasonPhrase))
119
+		else if (!\preg_match(self::RFC7230_FIELD_VALUE, $reasonPhrase))
120 120
 		{
121 121
 			throw new \InvalidArgumentException(\sprintf('The given reason-phrase "%s" is not valid', $reasonPhrase));
122 122
 		}
Please login to merge, or discard this patch.