@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\FSi\Bundle\AdminBundle\Display\Property\Formatter; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | |
| 8 | 7 | class BooleanSpec extends ObjectBehavior |
| 9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\FSi\Bundle\AdminBundle\Display\Property\Formatter; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | |
| 8 | 7 | class CallbackSpec extends ObjectBehavior |
| 9 | 8 | { |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use FSi\Bundle\AdminBundle\DependencyInjection\Compiler\TwigGlobalsPass; |
| 22 | 22 | use FSi\Bundle\AdminBundle\DependencyInjection\FSIAdminExtension; |
| 23 | 23 | use FSi\Bundle\AdminBundle\Finder\AdminClassFinder; |
| 24 | -use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
|
| 25 | 24 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 26 | 25 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
| 27 | 26 | |
@@ -150,6 +150,7 @@ |
||
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | 152 | * @Then there should be :count :className present in the database |
| 153 | + * @param integer $count |
|
| 153 | 154 | */ |
| 154 | 155 | public function thereShouldExistsNumberOfEntities($count, string $className) |
| 155 | 156 | { |
@@ -43,6 +43,10 @@ |
||
| 43 | 43 | $this->accessor = $this->createPropertyAccessor(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $path |
|
| 48 | + * @param string $label |
|
| 49 | + */ |
|
| 46 | 50 | public function add($path, ?string $label = null, array $valueFormatters = []): Display |
| 47 | 51 | { |
| 48 | 52 | $this->data[] = new Property( |
@@ -20,6 +20,7 @@ |
||
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * {@inheritdoc} |
| 23 | + * @param string $label |
|
| 23 | 24 | */ |
| 24 | 25 | public function add($value, ?string $label = null, array $valueFormatters = []): Display |
| 25 | 26 | { |
@@ -78,6 +78,9 @@ |
||
| 78 | 78 | $event->getMenu()->addChild($language); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $locale |
|
| 83 | + */ |
|
| 81 | 84 | private function getLanguageName(?string $locale = null): ?string |
| 82 | 85 | { |
| 83 | 86 | if (null === $locale) { |
@@ -104,6 +104,9 @@ discard block |
||
| 104 | 104 | return $this->createdAt; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $creatorEmail |
|
| 109 | + */ |
|
| 107 | 110 | public function setCreatorEmail(?string $creatorEmail): void |
| 108 | 111 | { |
| 109 | 112 | $this->creatorEmail = $creatorEmail; |
@@ -159,6 +162,9 @@ discard block |
||
| 159 | 162 | return $this->photoKey; |
| 160 | 163 | } |
| 161 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string|null $photoKey |
|
| 167 | + */ |
|
| 162 | 168 | public function setPhotoKey(?string $photoKey): void |
| 163 | 169 | { |
| 164 | 170 | $this->photoKey = $photoKey; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use FSi\Bundle\AdminBundle\Admin\CRUD\DataIndexerElement; |
| 13 | 13 | use FSi\Bundle\AdminBundle\Admin\DependentElement; |
| 14 | 14 | use FSi\Bundle\AdminBundle\Admin\Element; |
| 15 | -use FSi\Bundle\AdminBundle\Exception\RuntimeException; |
|
| 16 | 15 | use FSi\Component\DataGrid\DataGridFactoryInterface; |
| 17 | 16 | use FSi\Component\DataGrid\DataGridInterface; |
| 18 | 17 | use FSi\Component\DataIndexer\DataIndexerInterface; |