Commit 74e56476 authored by Raidelet Nicolas's avatar Raidelet Nicolas Committed by Guillaume Perréal
Browse files

CS et PHPDoc

No related merge requests found
Showing with 37 additions and 22 deletions
+37 -22
......@@ -29,7 +29,6 @@ class GenerateCommand extends ContainerAwareCommand
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @SuppressWarnings(UnusedFormalParameter)
*/
protected function execute(InputInterface $input, OutputInterface $output)
......
......@@ -34,7 +34,6 @@ class RenderCommand extends ContainerAwareCommand
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @SuppressWarnings(UnusedFormalParameter)
*/
protected function execute(InputInterface $input, OutputInterface $output)
......@@ -96,13 +95,18 @@ class RenderCommand extends ContainerAwareCommand
$fs->mkdir(dirname($target));
$ctn = $this->getContainer();
$cmd = implode(' ', [
$ctn->getParameter('irstea_plant_uml.binaries.java'),
'-jar', $ctn->getParameter('irstea_plant_uml.binaries.plamtuml_jar'),
'-graphvizdot', $ctn->getParameter('irstea_plant_uml.binaries.dot'),
'-pipe',
'-t' . $format,
]);
$cmd = implode(
' ',
[
$ctn->getParameter('irstea_plant_uml.binaries.java'),
'-jar',
$ctn->getParameter('irstea_plant_uml.binaries.plamtuml_jar'),
'-graphvizdot',
$ctn->getParameter('irstea_plant_uml.binaries.dot'),
'-pipe',
'-t' . $format,
]
);
$desc = [
// stdin
......
......@@ -75,7 +75,16 @@ class AssociationDecorator extends AbstractDoctrineDecorator
}
$node->addArrow(
new BaseArrow($node, $target, '--', $association['fieldName'] . ' >', $linkSource, $linkTarget, $sourceCardinality, $targetCardinality)
new BaseArrow(
$node,
$target,
'--',
$association['fieldName'] . ' >',
$linkSource,
$linkTarget,
$sourceCardinality,
$targetCardinality
)
);
}
......
......@@ -38,13 +38,15 @@ class FieldDecorator extends AbstractDoctrineDecorator
},
$class
);
$node->addAttribute(new Field(
$field['fieldName'],
$field['type'],
$field['unique'],
$field['nullable'],
$isIdentifier
));
$node->addAttribute(
new Field(
$field['fieldName'],
$field['type'],
$field['unique'],
$field['nullable'],
$isIdentifier
)
);
}
public function toConfig(array &$conf)
......
......@@ -35,7 +35,7 @@ class AttributeDecorator implements DecoratorInterface
$property->isPrivate() ? MemberInterface::PRIVATE_ :
$property->isProtected() ? MemberInterface::PROTECTED_ :
$property->isPublic() ? MemberInterface::PUBLIC_ :
MemberInterface::UNKNOWN
MemberInterface::UNKNOWN
)
);
}
......
......@@ -12,7 +12,6 @@ use ReflectionClass;
/**
* Décorateur abstrait pour les éléments d'une classe qui peuvent être hérités d'une classe base.
*
* Ce décorateur s'assure de n'afficher que les éléments propres à la classe.
*/
trait InheritableItemDecoratorTrait
......
......@@ -22,7 +22,9 @@ class InterfaceDecorator extends AbstractRelationDecorator
$indirectInterfaces = array_filter(
array_map(
function ($i) { return $i->getInterfaceNames(); },
function ($i) {
return $i->getInterfaceNames();
},
$class->getInterfaces()
)
);
......
......@@ -35,7 +35,7 @@ class MethodDecorator implements DecoratorInterface
$method->isPrivate() ? MemberInterface::PRIVATE_ :
($method->isProtected() ? MemberInterface::PROTECTED_ :
($method->isPublic() ? MemberInterface::PUBLIC_ :
MemberInterface::UNKNOWN))
MemberInterface::UNKNOWN))
)
);
}
......
......@@ -31,7 +31,7 @@ interface WriterInterface
/**
* @param string $fmt
* @param mixed ...
* @param mixed ...
*
* @return self
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment