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
ng-model-generator-bundle
Commits
dceb9d80
Commit
dceb9d80
authored
Nov 29, 2018
by
Guillaume Perréal
Browse files
Corrections PHPMD.
parent
7737a382
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Metadata/PropertyMetadataFactory.php
View file @
dceb9d80
...
...
@@ -47,9 +47,6 @@ class PropertyMetadataFactory
/** @var ClassName */
private
$resource
;
/** @var bool */
private
$normalization
;
/** @var string */
private
$mode
;
...
...
@@ -89,9 +86,11 @@ class PropertyMetadataFactory
}
/**
* @param ClassName $class
* @param string $propertyName
* @param APIPropertyMetadata $propertyMeta
* @param ClassName $class
* @param string $propertyName
*
* @throws ResourceClassNotFoundException
* @throws \ApiPlatform\Core\Exception\PropertyNotFoundException
*
* @return PropertyMetadata
*/
...
...
src/Models/ClassInfo.php
View file @
dceb9d80
...
...
@@ -168,6 +168,8 @@ final class ClassInfo implements ClassName
/**
* @param ClassInfo $child
*
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private
function
addChild
(
ClassInfo
$child
):
void
{
...
...
@@ -359,6 +361,7 @@ final class ClassInfo implements ClassName
* Get properties.
*
* @return HasName[]
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
*/
private
function
getAllConcreteProperties
():
array
{
...
...
src/Models/PHPClass.php
View file @
dceb9d80
...
...
@@ -121,7 +121,7 @@ final class PHPClass implements ClassName
if
(
!
preg_match
(
'/^\\\\?((?:\w+\\\\)*)(\w+)$/i'
,
$name
,
$groups
))
{
throw
new
InvalidArgumentException
(
"Invalid PHP class name:
$name
"
);
}
[
,
$namespace
,
$baseName
]
=
$groups
;
list
(
,
$namespace
,
$baseName
)
=
$groups
;
$instances
[
$name
]
=
new
self
(
$namespace
,
$baseName
);
}
...
...
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