Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
plantuml-bundle
Commits
74e56476
Commit
74e56476
authored
Sep 26, 2017
by
Raidelet Nicolas
Committed by
Guillaume Perréal
Oct 17, 2017
Browse files
CS et PHPDoc
parent
58699241
Changes
9
Hide whitespace changes
Inline
Side-by-side
Command/GenerateCommand.php
View file @
74e56476
...
@@ -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
)
...
...
Command/RenderCommand.php
View file @
74e56476
...
@@ -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
...
...
Doctrine/AssociationDecorator.php
View file @
74e56476
...
@@ -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
)
);
);
}
}
...
...
Doctrine/FieldDecorator.php
View file @
74e56476
...
@@ -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
)
...
...
Model/Decorator/AttributeDecorator.php
View file @
74e56476
...
@@ -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
)
)
);
);
}
}
...
...
Model/Decorator/InheritableItemDecoratorTrait.php
View file @
74e56476
...
@@ -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
...
...
Model/Decorator/InterfaceDecorator.php
View file @
74e56476
...
@@ -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
()
)
)
);
);
...
...
Model/Decorator/MethodDecorator.php
View file @
74e56476
...
@@ -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
))
)
)
);
);
}
}
...
...
Writer/WriterInterface.php
View file @
74e56476
...
@@ -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
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment