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

CS et PHPDoc

parent 58699241
......@@ -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(' ', [
$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'),
'-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(
$node->addAttribute(
new Field(
$field['fieldName'],
$field['type'],
$field['unique'],
$field['nullable'],
$isIdentifier
));
)
);
}
public function toConfig(array &$conf)
......
......@@ -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()
)
);
......
Markdown is supported
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