Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit e63156a

Browse files
committed
Remove unnecessary code groups
In each case, the grouping is unnecessary.
1 parent f7686f5 commit e63156a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Uri.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function __construct($uri = '')
118118
if (! is_string($uri)) {
119119
throw new InvalidArgumentException(sprintf(
120120
'URI passed to constructor must be a string; received "%s"',
121-
(is_object($uri) ? get_class($uri) : gettype($uri))
121+
is_object($uri) ? get_class($uri) : gettype($uri)
122122
));
123123
}
124124

@@ -248,7 +248,7 @@ public function withScheme($scheme)
248248
throw new InvalidArgumentException(sprintf(
249249
'%s expects a string argument; received %s',
250250
__METHOD__,
251-
(is_object($scheme) ? get_class($scheme) : gettype($scheme))
251+
is_object($scheme) ? get_class($scheme) : gettype($scheme)
252252
));
253253
}
254254

@@ -279,14 +279,14 @@ public function withUserInfo($user, $password = null)
279279
throw new InvalidArgumentException(sprintf(
280280
'%s expects a string user argument; received %s',
281281
__METHOD__,
282-
(is_object($user) ? get_class($user) : gettype($user))
282+
is_object($user) ? get_class($user) : gettype($user)
283283
));
284284
}
285285
if (null !== $password && ! is_string($password)) {
286286
throw new InvalidArgumentException(sprintf(
287287
'%s expects a string or null password argument; received %s',
288288
__METHOD__,
289-
(is_object($password) ? get_class($password) : gettype($password))
289+
is_object($password) ? get_class($password) : gettype($password)
290290
));
291291
}
292292

@@ -315,7 +315,7 @@ public function withHost($host)
315315
throw new InvalidArgumentException(sprintf(
316316
'%s expects a string argument; received %s',
317317
__METHOD__,
318-
(is_object($host) ? get_class($host) : gettype($host))
318+
is_object($host) ? get_class($host) : gettype($host)
319319
));
320320
}
321321

@@ -339,7 +339,7 @@ public function withPort($port)
339339
if (! is_numeric($port) || is_float($port)) {
340340
throw new InvalidArgumentException(sprintf(
341341
'Invalid port "%s" specified; must be an integer, an integer string, or null',
342-
(is_object($port) ? get_class($port) : gettype($port))
342+
is_object($port) ? get_class($port) : gettype($port)
343343
));
344344
}
345345

@@ -439,7 +439,7 @@ public function withFragment($fragment)
439439
throw new InvalidArgumentException(sprintf(
440440
'%s expects a string argument; received %s',
441441
__METHOD__,
442-
(is_object($fragment) ? get_class($fragment) : gettype($fragment))
442+
is_object($fragment) ? get_class($fragment) : gettype($fragment)
443443
));
444444
}
445445

0 commit comments

Comments
 (0)