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