@@ -118,7 +118,7 @@ public function __construct($uri = '')
118
118
if (! is_string ($ uri )) {
119
119
throw new InvalidArgumentException (sprintf (
120
120
'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 )
122
122
));
123
123
}
124
124
@@ -248,7 +248,7 @@ public function withScheme($scheme)
248
248
throw new InvalidArgumentException (sprintf (
249
249
'%s expects a string argument; received %s ' ,
250
250
__METHOD__ ,
251
- ( is_object ($ scheme ) ? get_class ($ scheme ) : gettype ($ scheme) )
251
+ is_object ($ scheme ) ? get_class ($ scheme ) : gettype ($ scheme )
252
252
));
253
253
}
254
254
@@ -279,14 +279,14 @@ public function withUserInfo($user, $password = null)
279
279
throw new InvalidArgumentException (sprintf (
280
280
'%s expects a string user argument; received %s ' ,
281
281
__METHOD__ ,
282
- ( is_object ($ user ) ? get_class ($ user ) : gettype ($ user) )
282
+ is_object ($ user ) ? get_class ($ user ) : gettype ($ user )
283
283
));
284
284
}
285
285
if (null !== $ password && ! is_string ($ password )) {
286
286
throw new InvalidArgumentException (sprintf (
287
287
'%s expects a string or null password argument; received %s ' ,
288
288
__METHOD__ ,
289
- ( is_object ($ password ) ? get_class ($ password ) : gettype ($ password) )
289
+ is_object ($ password ) ? get_class ($ password ) : gettype ($ password )
290
290
));
291
291
}
292
292
@@ -315,7 +315,7 @@ public function withHost($host)
315
315
throw new InvalidArgumentException (sprintf (
316
316
'%s expects a string argument; received %s ' ,
317
317
__METHOD__ ,
318
- ( is_object ($ host ) ? get_class ($ host ) : gettype ($ host) )
318
+ is_object ($ host ) ? get_class ($ host ) : gettype ($ host )
319
319
));
320
320
}
321
321
@@ -339,7 +339,7 @@ public function withPort($port)
339
339
if (! is_numeric ($ port ) || is_float ($ port )) {
340
340
throw new InvalidArgumentException (sprintf (
341
341
'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 )
343
343
));
344
344
}
345
345
@@ -439,7 +439,7 @@ public function withFragment($fragment)
439
439
throw new InvalidArgumentException (sprintf (
440
440
'%s expects a string argument; received %s ' ,
441
441
__METHOD__ ,
442
- ( is_object ($ fragment ) ? get_class ($ fragment ) : gettype ($ fragment) )
442
+ is_object ($ fragment ) ? get_class ($ fragment ) : gettype ($ fragment )
443
443
));
444
444
}
445
445
0 commit comments