Skip to content

Commit

Permalink
More ecs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Jan 13, 2018
1 parent 4383ae0 commit bb80096
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/phpDocumentor/Plugin/Twig/Writer/Twig.php
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/phpDocumentor/Transformer/Transformation.php
Expand Up @@ -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)
{
Expand Down

0 comments on commit bb80096

Please sign in to comment.