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 ...@@ -29,7 +29,6 @@ class GenerateCommand extends ContainerAwareCommand
/** /**
* @param InputInterface $input * @param InputInterface $input
* @param OutputInterface $output * @param OutputInterface $output
*
* @SuppressWarnings(UnusedFormalParameter) * @SuppressWarnings(UnusedFormalParameter)
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
......
...@@ -34,7 +34,6 @@ class RenderCommand extends ContainerAwareCommand ...@@ -34,7 +34,6 @@ class RenderCommand extends ContainerAwareCommand
/** /**
* @param InputInterface $input * @param InputInterface $input
* @param OutputInterface $output * @param OutputInterface $output
*
* @SuppressWarnings(UnusedFormalParameter) * @SuppressWarnings(UnusedFormalParameter)
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
...@@ -96,13 +95,18 @@ class RenderCommand extends ContainerAwareCommand ...@@ -96,13 +95,18 @@ class RenderCommand extends ContainerAwareCommand
$fs->mkdir(dirname($target)); $fs->mkdir(dirname($target));
$ctn = $this->getContainer(); $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'), $ctn->getParameter('irstea_plant_uml.binaries.java'),
'-pipe', '-jar',
'-t' . $format, $ctn->getParameter('irstea_plant_uml.binaries.plamtuml_jar'),
]); '-graphvizdot',
$ctn->getParameter('irstea_plant_uml.binaries.dot'),
'-pipe',
'-t' . $format,
]
);
$desc = [ $desc = [
// stdin // stdin
......
...@@ -75,7 +75,16 @@ class AssociationDecorator extends AbstractDoctrineDecorator ...@@ -75,7 +75,16 @@ class AssociationDecorator extends AbstractDoctrineDecorator
} }
$node->addArrow( $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 ...@@ -38,13 +38,15 @@ class FieldDecorator extends AbstractDoctrineDecorator
}, },
$class $class
); );
$node->addAttribute(new Field( $node->addAttribute(
$field['fieldName'], new Field(
$field['type'], $field['fieldName'],
$field['unique'], $field['type'],
$field['nullable'], $field['unique'],
$isIdentifier $field['nullable'],
)); $isIdentifier
)
);
} }
public function toConfig(array &$conf) public function toConfig(array &$conf)
......
...@@ -35,7 +35,7 @@ class AttributeDecorator implements DecoratorInterface ...@@ -35,7 +35,7 @@ class AttributeDecorator implements DecoratorInterface
$property->isPrivate() ? MemberInterface::PRIVATE_ : $property->isPrivate() ? MemberInterface::PRIVATE_ :
$property->isProtected() ? MemberInterface::PROTECTED_ : $property->isProtected() ? MemberInterface::PROTECTED_ :
$property->isPublic() ? MemberInterface::PUBLIC_ : $property->isPublic() ? MemberInterface::PUBLIC_ :
MemberInterface::UNKNOWN MemberInterface::UNKNOWN
) )
); );
} }
......
...@@ -12,7 +12,6 @@ use ReflectionClass; ...@@ -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. * 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. * Ce décorateur s'assure de n'afficher que les éléments propres à la classe.
*/ */
trait InheritableItemDecoratorTrait trait InheritableItemDecoratorTrait
......
...@@ -22,7 +22,9 @@ class InterfaceDecorator extends AbstractRelationDecorator ...@@ -22,7 +22,9 @@ class InterfaceDecorator extends AbstractRelationDecorator
$indirectInterfaces = array_filter( $indirectInterfaces = array_filter(
array_map( array_map(
function ($i) { return $i->getInterfaceNames(); }, function ($i) {
return $i->getInterfaceNames();
},
$class->getInterfaces() $class->getInterfaces()
) )
); );
......
...@@ -35,7 +35,7 @@ class MethodDecorator implements DecoratorInterface ...@@ -35,7 +35,7 @@ class MethodDecorator implements DecoratorInterface
$method->isPrivate() ? MemberInterface::PRIVATE_ : $method->isPrivate() ? MemberInterface::PRIVATE_ :
($method->isProtected() ? MemberInterface::PROTECTED_ : ($method->isProtected() ? MemberInterface::PROTECTED_ :
($method->isPublic() ? MemberInterface::PUBLIC_ : ($method->isPublic() ? MemberInterface::PUBLIC_ :
MemberInterface::UNKNOWN)) MemberInterface::UNKNOWN))
) )
); );
} }
......
...@@ -31,7 +31,7 @@ interface WriterInterface ...@@ -31,7 +31,7 @@ interface WriterInterface
/** /**
* @param string $fmt * @param string $fmt
* @param mixed ... * @param mixed ...
* *
* @return self * @return self
*/ */
......
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