@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | |
347 | 347 | return call_user_func_array($function, $args); |
348 | 348 | } catch (ReflectionException $e) { |
349 | - throw new Exception('function not exists: ' . $function . '()'); |
|
349 | + throw new Exception('function not exists: '.$function.'()'); |
|
350 | 350 | } |
351 | 351 | } |
352 | 352 | |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | $method[0] = get_class($method[0]); |
377 | 377 | } |
378 | 378 | |
379 | - throw new Exception('method not exists: ' . (is_array($method) ? $method[0] . '::' . $method[1] : $method) . '()'); |
|
379 | + throw new Exception('method not exists: '.(is_array($method) ? $method[0].'::'.$method[1] : $method).'()'); |
|
380 | 380 | } |
381 | 381 | } |
382 | 382 | |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | return $reflect->newInstanceArgs($args); |
440 | 440 | |
441 | 441 | } catch (ReflectionException $e) { |
442 | - throw new ClassNotFoundException('class not exists: ' . $class, $class); |
|
442 | + throw new ClassNotFoundException('class not exists: '.$class, $class); |
|
443 | 443 | } |
444 | 444 | } |
445 | 445 | |
@@ -467,7 +467,7 @@ discard block |
||
467 | 467 | $class = $param->getClass(); |
468 | 468 | |
469 | 469 | if ($class) { |
470 | - $varsTmp = isset($vars[$name]) ? [$name => $vars[$name]] : (isset($vars[$lowerName]) ? [$lowerName => $vars[$lowerName]] : $vars); |
|
470 | + $varsTmp = isset($vars[$name]) ? [$name => $vars[$name]] : (isset($vars[$lowerName]) ? [$lowerName => $vars[$lowerName]] : $vars); |
|
471 | 471 | $args[] = $this->getObjectParam($class->getName(), $varsTmp); |
472 | 472 | } elseif (1 == $type && !empty($vars)) { |
473 | 473 | $args[] = array_shift($vars); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | } elseif ($param->isDefaultValueAvailable()) { |
479 | 479 | $args[] = $param->getDefaultValue(); |
480 | 480 | } else { |
481 | - throw new InvalidArgumentException('method param miss:' . $name); |
|
481 | + throw new InvalidArgumentException('method param miss:'.$name); |
|
482 | 482 | } |
483 | 483 | } |
484 | 484 |