Commit dceb9d80 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Corrections PHPMD.

Showing with 9 additions and 7 deletions
+9 -7
......@@ -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
*/
......
......@@ -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
{
......
......@@ -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);
}
......
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