From bb800965b5270215711919a5260fa893925900b2 Mon Sep 17 00:00:00 2001 From: Jaapio Date: Sat, 13 Jan 2018 21:56:32 +0100 Subject: [PATCH] More ecs fixes --- src/phpDocumentor/Plugin/Twig/Writer/Twig.php | 11 ++++++----- src/phpDocumentor/Transformer/Transformation.php | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/phpDocumentor/Plugin/Twig/Writer/Twig.php b/src/phpDocumentor/Plugin/Twig/Writer/Twig.php index ec9b39b975..54cca0b10a 100644 --- a/src/phpDocumentor/Plugin/Twig/Writer/Twig.php +++ b/src/phpDocumentor/Plugin/Twig/Writer/Twig.php @@ -90,8 +90,8 @@ class Twig extends WriterAbstract implements Routable * This method combines the ProjectDescriptor and the given target template * and creates a static html page at the artifact location. * - * @param ProjectDescriptor $project Document containing the structure. - * @param Transformation $transformation Transformation to execute. + * @param ProjectDescriptor $project Document containing the structure. + * @param Transformation $transformation Transformation to execute. */ public function transform(ProjectDescriptor $project, Transformation $transformation) { @@ -206,7 +206,8 @@ protected function addExtensionsFromTemplateConfiguration( // to support 'normal' Twig extensions we check the interface to determine what instantiation to do. $implementsInterface = in_array( 'phpDocumentor\Plugin\Twig\ExtensionInterface', - class_implements($extensionValue), true + class_implements($extensionValue), + true ); $twigEnvironment->addExtension( @@ -235,8 +236,8 @@ class_implements($extensionValue), true * node 'name' as a child of the given $node and use that value instead. * * @param DescriptorAbstract $node - * @throws InvalidArgumentException if no artifact is provided and no routing rule matches. - * @throws UnexpectedValueException if the provided node does not contain anything. + * @throws \InvalidArgumentException if no artifact is provided and no routing rule matches. + * @throws \UnexpectedValueException if the provided node does not contain anything. * @return string|bool returns the destination location or false if generation should be aborted. */ protected function getDestinationPath($node, Transformation $transformation) diff --git a/src/phpDocumentor/Transformer/Transformation.php b/src/phpDocumentor/Transformer/Transformation.php index 859f623b17..c6881a0412 100644 --- a/src/phpDocumentor/Transformer/Transformation.php +++ b/src/phpDocumentor/Transformer/Transformation.php @@ -268,7 +268,7 @@ public function getParameter($name) * * @param string $name Name of the parameter to return. * - * @return Parameter + * @return Parameter[] */ public function getParametersWithKey($name) {