diff --git a/src/Display/Console.php b/src/Display/Console.php index 31b861e6..4852af6c 100644 --- a/src/Display/Console.php +++ b/src/Display/Console.php @@ -164,8 +164,8 @@ protected function renderClassDefinition($definition, $class) foreach ($definition->getMethods($class) as $methodName => $methodIsRequired) { foreach ($definition->getMethodParameters($class, $methodName) as $fqName => $pData) { echo ' ' . $pData[0] . ' [type: '; - echo ($pData[1]) ? $pData[1] : 'scalar'; - echo ($pData[2] === true && $methodIsRequired) ? ', required' : ', not required'; + echo($pData[1]) ? $pData[1] : 'scalar'; + echo($pData[2] === true && $methodIsRequired) ? ', required' : ', not required'; echo ', injection-method: ' . $methodName; echo ' fq-name: ' . $fqName; echo ']' . PHP_EOL; diff --git a/test/Definition/RuntimeDefinitionTest.php b/test/Definition/RuntimeDefinitionTest.php index 38444f4f..60104a18 100644 --- a/test/Definition/RuntimeDefinitionTest.php +++ b/test/Definition/RuntimeDefinitionTest.php @@ -73,13 +73,13 @@ public function testExceptionDefaultValue() true, null, ), - 'RecursiveIteratorIterator::__construct:1' => Array ( + 'RecursiveIteratorIterator::__construct:1' => Array( 'mode', null, true, null, ), - 'RecursiveIteratorIterator::__construct:2' => Array ( + 'RecursiveIteratorIterator::__construct:2' => Array( 'flags', null, true, diff --git a/test/DiTest.php b/test/DiTest.php index 173cc42f..c1c64ca9 100644 --- a/test/DiTest.php +++ b/test/DiTest.php @@ -585,14 +585,14 @@ public function testNewInstanceWillUsePreferredClassForInterfaceHints() public function testNewInstanceWillThrowAnClassNotFoundExceptionWhenClassIsAnInterface() { - $definitionArray = array ( + $definitionArray = array( 'ZendTest\Di\TestAsset\ConstructorInjection\D' => array( 'supertypes' => array(), 'instantiator' => '__construct', 'methods' => array('__construct' => 3), 'parameters' => array( '__construct' => - array ( + array( 'ZendTest\Di\TestAsset\ConstructorInjection\D::__construct:0' => array( 0 => 'd', 1 => 'ZendTest\Di\TestAsset\DummyInterface', @@ -969,13 +969,13 @@ public function testGetWithParamsWillUseSharedInstance() $retrievedInstanceClass = 'ZendTest\Di\TestAsset\ConstructorInjection\C'; // Provide definitions for $retrievedInstanceClass, but not for $sharedInstanceClass. - $arrayDefinition = array($retrievedInstanceClass => array ( - 'supertypes' => array ( ), + $arrayDefinition = array($retrievedInstanceClass => array( + 'supertypes' => array( ), 'instantiator' => '__construct', - 'methods' => array ('__construct' => true), - 'parameters' => array ( '__construct' => array ( - "$retrievedInstanceClass::__construct:0" => array ('a', $sharedInstanceClass, true, NULL), - "$retrievedInstanceClass::__construct:1" => array ('params', NULL, false, array()), + 'methods' => array('__construct' => true), + 'parameters' => array( '__construct' => array( + "$retrievedInstanceClass::__construct:0" => array('a', $sharedInstanceClass, true, NULL), + "$retrievedInstanceClass::__construct:1" => array('params', NULL, false, array()), )), ));