@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | // +---------------------------------------------------------------------- |
9 | 9 | // | Author: liu21st <[email protected]> |
10 | 10 | // +---------------------------------------------------------------------- |
11 | -declare (strict_types = 1); |
|
11 | +declare(strict_types=1); |
|
12 | 12 | |
13 | 13 | namespace think; |
14 | 14 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | return $this->make($abstract); |
172 | 172 | } |
173 | 173 | |
174 | - throw new ClassNotFoundException('class not exists: ' . $abstract, $abstract); |
|
174 | + throw new ClassNotFoundException('class not exists: '.$abstract, $abstract); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | |
330 | 330 | return call_user_func_array($function, $args); |
331 | 331 | } catch (ReflectionException $e) { |
332 | - throw new Exception('function not exists: ' . $function . '()'); |
|
332 | + throw new Exception('function not exists: '.$function.'()'); |
|
333 | 333 | } |
334 | 334 | } |
335 | 335 | |
@@ -357,12 +357,12 @@ discard block |
||
357 | 357 | } catch (ReflectionException $e) { |
358 | 358 | if (is_array($method)) { |
359 | 359 | $class = is_object($method[0]) ? get_class($method[0]) : $method[0]; |
360 | - $callback = $class . '::' . $method[1]; |
|
360 | + $callback = $class.'::'.$method[1]; |
|
361 | 361 | } else { |
362 | 362 | $callback = $method; |
363 | 363 | } |
364 | 364 | |
365 | - throw new Exception('method not exists: ' . $callback . '()'); |
|
365 | + throw new Exception('method not exists: '.$callback.'()'); |
|
366 | 366 | } |
367 | 367 | } |
368 | 368 | |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | |
429 | 429 | return $object; |
430 | 430 | } catch (ReflectionException $e) { |
431 | - throw new ClassNotFoundException('class not exists: ' . $class, $class); |
|
431 | + throw new ClassNotFoundException('class not exists: '.$class, $class); |
|
432 | 432 | } |
433 | 433 | } |
434 | 434 | |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | } elseif ($param->isDefaultValueAvailable()) { |
490 | 490 | $args[] = $param->getDefaultValue(); |
491 | 491 | } else { |
492 | - throw new InvalidArgumentException('method param miss:' . $name); |
|
492 | + throw new InvalidArgumentException('method param miss:'.$name); |
|
493 | 493 | } |
494 | 494 | } |
495 | 495 |