mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Fix CS
This commit is contained in:
parent
0912c85a0d
commit
68bf1670f3
@ -16,7 +16,7 @@ class UndocumentedArrayItemsException extends \LogicException
|
||||
private $class;
|
||||
private $path;
|
||||
|
||||
public function __construct(string $class = null, string $path = "")
|
||||
public function __construct(string $class = null, string $path = '')
|
||||
{
|
||||
$this->class = $class;
|
||||
$this->path = $path;
|
||||
|
@ -152,7 +152,7 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
|
||||
throw $e; // This exception is already complete
|
||||
}
|
||||
|
||||
throw new UndocumentedArrayItemsException($model->getType()->getClassName(), sprintf("%s%s", $propertyName, $e->getPath()));
|
||||
throw new UndocumentedArrayItemsException($model->getType()->getClassName(), sprintf('%s%s', $propertyName, $e->getPath()));
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -51,7 +51,7 @@ class ArrayPropertyDescriber implements PropertyDescriberInterface, ModelRegistr
|
||||
throw $e; // This exception is already complete
|
||||
}
|
||||
|
||||
throw new UndocumentedArrayItemsException(null, sprintf("%s[]", $e->getPath()));
|
||||
throw new UndocumentedArrayItemsException(null, sprintf('%s[]', $e->getPath()));
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity\ArrayItemsError;
|
||||
|
||||
use Symfony\Component\Serializer\Annotation\Groups;
|
||||
|
||||
/**
|
||||
* @author Guilhem N. <guilhem@gniot.fr>
|
||||
*/
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
namespace Nelmio\ApiDocBundle\Tests\Functional\Entity\ArrayItemsError;
|
||||
|
||||
use Symfony\Component\Serializer\Annotation\Groups;
|
||||
|
||||
/**
|
||||
* @author Guilhem N. <guilhem@gniot.fr>
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user