@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\FixturesBundle\Listener\AfterSuiteListenerInterface; |
17 | 16 | use Sylius\Bundle\FixturesBundle\Listener\BeforeSuiteListenerInterface; |
18 | 17 | use Sylius\Bundle\FixturesBundle\Listener\SuiteEvent; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
17 | 16 | use Sylius\Bundle\FixturesBundle\Loader\FixtureLoaderInterface; |
18 | 17 | use Sylius\Bundle\FixturesBundle\Loader\SuiteLoader; |
@@ -187,6 +187,7 @@ |
||
187 | 187 | |
188 | 188 | /** |
189 | 189 | * {@inheritdoc} |
190 | + * @param string $field |
|
190 | 191 | */ |
191 | 192 | private function getFieldName($field) |
192 | 193 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $parameterName = $this->getParameterName($field); |
66 | 66 | $this->queryBuilder->setParameter($parameterName, $value); |
67 | 67 | |
68 | - return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':'.$parameterName); |
|
68 | + return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':' . $parameterName); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $parameterName = $this->getParameterName($field); |
77 | 77 | $this->queryBuilder->setParameter($parameterName, $value); |
78 | 78 | |
79 | - return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':'.$parameterName); |
|
79 | + return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':' . $parameterName); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $parameterName = $this->getParameterName($field); |
88 | 88 | $this->queryBuilder->setParameter($parameterName, $value); |
89 | 89 | |
90 | - $this->queryBuilder->andWhere($this->getFieldName($field).' < :'.$parameterName); |
|
90 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' < :' . $parameterName); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $parameterName = $this->getParameterName($field); |
99 | 99 | $this->queryBuilder->setParameter($parameterName, $value); |
100 | 100 | |
101 | - $this->queryBuilder->andWhere($this->getFieldName($field).' <= :'.$parameterName); |
|
101 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' <= :' . $parameterName); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $parameterName = $this->getParameterName($field); |
110 | 110 | $this->queryBuilder->setParameter($parameterName, $value); |
111 | 111 | |
112 | - $this->queryBuilder->andWhere($this->getFieldName($field).' > :'.$parameterName); |
|
112 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' > :' . $parameterName); |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $parameterName = $this->getParameterName($field); |
121 | 121 | $this->queryBuilder->setParameter($parameterName, $value); |
122 | 122 | |
123 | - $this->queryBuilder->andWhere($this->getFieldName($field).' >= :'.$parameterName); |
|
123 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' >= :' . $parameterName); |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | private function getFieldName($field) |
194 | 194 | { |
195 | 195 | if (false === strpos($field, '.')) { |
196 | - return $this->queryBuilder->getRootAlias().'.'.$field; |
|
196 | + return $this->queryBuilder->getRootAlias() . '.' . $field; |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | return $field; |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\ORM; |
13 | 13 | |
14 | -use Doctrine\ORM\Query\Expr\Comparison; |
|
15 | 14 | use Doctrine\ORM\QueryBuilder; |
15 | +use Doctrine\ORM\Query\Expr\Comparison; |
|
16 | 16 | use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
17 | 17 | |
18 | 18 | /** |
@@ -21,6 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @param RequestConfiguration $configuration |
23 | 23 | * @param ResourceInterface $resource |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function apply(RequestConfiguration $configuration, ResourceInterface $resource); |
26 | 27 | } |
@@ -22,6 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param ContainerBuilder $container |
24 | 24 | * @param MetadataInterface $metadata |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function load(ContainerBuilder $container, MetadataInterface $metadata); |
27 | 28 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param ClassMetadataInfo $metadata |
73 | - * @param $configuration |
|
73 | + * @param \Doctrine\ORM\Configuration $configuration |
|
74 | 74 | */ |
75 | 75 | private function setAssociationMappings(ClassMetadataInfo $metadata, $configuration) |
76 | 76 | { |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * Check if a unique constraint has been defined. |
154 | 154 | * |
155 | 155 | * @param ClassMetadata $metadata |
156 | - * @param array $columns |
|
156 | + * @param string[] $columns |
|
157 | 157 | * |
158 | 158 | * @return bool |
159 | 159 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** @var MetadataInterface $translationResourceMetadata */ |
137 | - $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation'); |
|
137 | + $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation'); |
|
138 | 138 | |
139 | 139 | $metadata->mapOneToMany([ |
140 | 140 | 'fieldName' => 'translations', |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
195 | 195 | $constraints = isset($metadata->table['uniqueConstraints']) ? $metadata->table['uniqueConstraints'] : []; |
196 | 196 | |
197 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
197 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
198 | 198 | 'columns' => $columns, |
199 | 199 | ]; |
200 | 200 |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Resource\Metadata\RegistryInterface; |
22 | 22 | use Sylius\Component\Resource\Model\TranslatableInterface; |
23 | 23 | use Sylius\Component\Resource\Model\TranslationInterface; |
24 | -use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface; |
|
25 | 24 | use Sylius\Component\Resource\Translation\TranslatableEntityLocaleAssignerInterface; |
26 | 25 | use Symfony\Component\DependencyInjection\ContainerInterface; |
27 | 26 |
@@ -23,6 +23,7 @@ |
||
23 | 23 | * @param MetadataInterface $metadata |
24 | 24 | * @param FormBuilderInterface $formBuilder |
25 | 25 | * @param array $options |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function build(MetadataInterface $metadata, FormBuilderInterface $formBuilder, array $options); |
28 | 29 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param mixed $value |
|
43 | + * @param ToggleableInterface $value |
|
44 | 44 | */ |
45 | 45 | private function ensureValueImplementsToggleableInterface($value) |
46 | 46 | { |