@@ -218,6 +218,9 @@ discard block |
||
218 | 218 | return $values; |
219 | 219 | } |
220 | 220 | |
221 | + /** |
|
222 | + * @param string $cssClass |
|
223 | + */ |
|
221 | 224 | protected function appendClassAttr(array &$options, $cssClass) |
222 | 225 | { |
223 | 226 | if (isset($options['attr']['class'])) { |
@@ -227,6 +230,9 @@ discard block |
||
227 | 230 | } |
228 | 231 | } |
229 | 232 | |
233 | + /** |
|
234 | + * @param string $name |
|
235 | + */ |
|
230 | 236 | protected function setAttr(array &$options, $name, $value) |
231 | 237 | { |
232 | 238 | if (!isset($options['attr'])) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * @param FieldConfigModel $entity |
109 | 109 | * @param array $searchContext |
110 | - * @return null|FieldConfigModel |
|
110 | + * @return FieldConfigModel |
|
111 | 111 | */ |
112 | 112 | protected function findExistingEntity($entity, array $searchContext = []) |
113 | 113 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * @param FieldConfigModel $entity |
122 | - * @return null|FieldConfigModel |
|
122 | + * @return FieldConfigModel |
|
123 | 123 | */ |
124 | 124 | protected function validateAndUpdateContext(FieldConfigModel $entity) |
125 | 125 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -119,7 +119,7 @@ |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * @param LoggerInterface $logger |
122 | - * @param $sql |
|
122 | + * @param string $sql |
|
123 | 123 | * @param array $parameters |
124 | 124 | * @throws \Doctrine\DBAL\DBALException |
125 | 125 | */ |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -196,7 +196,7 @@ |
||
196 | 196 | * Applies the callback to configuration data to all configurable entities (if $className is not specified) |
197 | 197 | * or all configurable fields of the given entity. |
198 | 198 | * |
199 | - * @param callable $callback The callback function to run for configuration data for each object |
|
199 | + * @param \Closure $callback The callback function to run for configuration data for each object |
|
200 | 200 | * @param string|null $className |
201 | 201 | * @param bool $withHidden |
202 | 202 | * |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -186,7 +186,7 @@ |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * @param object $object |
|
189 | + * @param EntityFieldImportStrategy $object |
|
190 | 190 | * @param string $property |
191 | 191 | * @return mixed $value |
192 | 192 | */ |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -94,7 +94,7 @@ |
||
94 | 94 | * |
95 | 95 | * @param string $className |
96 | 96 | * |
97 | - * @return array [$moduleName, $entityName] |
|
97 | + * @return string[] [$moduleName, $entityName] |
|
98 | 98 | */ |
99 | 99 | public static function getModuleAndEntityNames($className) |
100 | 100 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * Load entity configs from annotations to a database |
38 | 38 | * |
39 | 39 | * @param bool $force Force overwrite config's option values |
40 | - * @param callable|null $filter function (ClassMetadata[] $doctrineAllMetadata) |
|
40 | + * @param null|\Closure $filter function (ClassMetadata[] $doctrineAllMetadata) |
|
41 | 41 | * @param LoggerInterface|null $logger |
42 | 42 | * @param bool $dryRun Log modifications without apply them |
43 | 43 | * |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param string $attribute The name of the entity config attribute which indicates |
104 | 104 | * whether the association is enabled or not |
105 | 105 | * |
106 | - * @return callable |
|
106 | + * @return \Closure |
|
107 | 107 | */ |
108 | 108 | public function getSingleOwnerFilter($scope, $attribute = 'enabled') |
109 | 109 | { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param string $attribute The name of the entity config attribute which is used to store |
122 | 122 | * enabled associations |
123 | 123 | * |
124 | - * @return callable |
|
124 | + * @return \Closure |
|
125 | 125 | */ |
126 | 126 | public function getMultiOwnerFilter($scope, $attribute) |
127 | 127 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -2,10 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Oro\Bundle\EntityExtendBundle\Form\Guesser; |
4 | 4 | |
5 | -use Symfony\Component\Form\Guess; |
|
6 | - |
|
7 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
8 | - |
|
9 | 6 | use Oro\Bundle\EntityBundle\Form\Guesser\AbstractFormGuesser; |
10 | 7 | use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface; |
11 | 8 | use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId; |
@@ -15,7 +12,6 @@ discard block |
||
15 | 12 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendConfigDumper; |
16 | 13 | use Oro\Bundle\EntityExtendBundle\Tools\ExtendHelper; |
17 | 14 | use Oro\Bundle\EntityExtendBundle\Validator\Constraints\Decimal; |
18 | - |
|
19 | 15 | use Symfony\Component\Validator\Constraints\Length; |
20 | 16 | |
21 | 17 | class ExtendFieldTypeGuesser extends AbstractFormGuesser |