@@ -106,8 +106,8 @@ |
||
| 106 | 106 | * Apply expression using one condition (less or more) |
| 107 | 107 | * |
| 108 | 108 | * @param FilterDatasourceAdapterInterface $ds |
| 109 | - * @param $dateValue |
|
| 110 | - * @param $dateParameterName |
|
| 109 | + * @param string $dateValue |
|
| 110 | + * @param string $dateParameterName |
|
| 111 | 111 | * @param string $fieldName |
| 112 | 112 | * @param bool $isLess less/more mode, true if 'less than', false if 'more than' |
| 113 | 113 | */ |
@@ -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; |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | /** |
| 111 | 111 | * @param FilterDatasourceAdapterInterface $ds |
| 112 | 112 | * @param string $fieldName |
| 113 | - * @param mixed $valueStart |
|
| 114 | - * @param mixed $valueEnd |
|
| 113 | + * @param string|null $valueStart |
|
| 114 | + * @param string|null $valueEnd |
|
| 115 | 115 | * @return string |
| 116 | 116 | */ |
| 117 | 117 | protected function buildBetweenExpr(FilterDatasourceAdapterInterface $ds, $fieldName, $valueStart, $valueEnd) |
@@ -141,8 +141,8 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * @param FilterDatasourceAdapterInterface $ds |
| 143 | 143 | * @param string $fieldName |
| 144 | - * @param mixed $valueStart |
|
| 145 | - * @param mixed $valueEnd |
|
| 144 | + * @param string|null $valueStart |
|
| 145 | + * @param string|null $valueEnd |
|
| 146 | 146 | * @return string |
| 147 | 147 | */ |
| 148 | 148 | protected function buildNotBetweenExpr(FilterDatasourceAdapterInterface $ds, $fieldName, $valueStart, $valueEnd) |
@@ -157,9 +157,9 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * Call callback for each of given value, used instead of array_map to walk safely through array |
| 159 | 159 | * |
| 160 | - * @param array $keys |
|
| 160 | + * @param integer[] $keys |
|
| 161 | 161 | * @param array $data |
| 162 | - * @param callable $callback |
|
| 162 | + * @param \Closure $callback |
|
| 163 | 163 | */ |
| 164 | 164 | private function mapValues(array $keys, array &$data, \Closure $callback) |
| 165 | 165 | { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * |
| 176 | 176 | * @param string $part |
| 177 | 177 | * |
| 178 | - * @return callable |
|
| 178 | + * @return \Closure |
|
| 179 | 179 | */ |
| 180 | 180 | private function getDatePartAccessorClosure($part) |
| 181 | 181 | { |
@@ -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; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | protected $types; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * @param $types |
|
| 20 | + * @param integer[] $types |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct($types) |
| 23 | 23 | { |
@@ -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; |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | - * @return OptionsResolverInterface|\PHPUnit_Framework_MockObject_MockObject |
|
| 82 | + * @return OptionsResolverInterface |
|
| 83 | 83 | */ |
| 84 | 84 | protected function createMockOptionsResolver() |
| 85 | 85 | { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | abstract protected function getTestFormType(); |
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | - * @return array|FormExtensionInterface[] |
|
| 157 | + * @return FormExtensionInterface[] |
|
| 158 | 158 | */ |
| 159 | 159 | protected function getExtensions() |
| 160 | 160 | { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | * @param string $class |
| 166 | 166 | * @param array $events |
| 167 | 167 | * |
| 168 | - * @return mixed |
|
| 168 | + * @return MutableFormEventSubscriber |
|
| 169 | 169 | */ |
| 170 | 170 | public function getMockSubscriber($class, array $events = []) |
| 171 | 171 | { |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | - * @return OptionsResolver|\PHPUnit_Framework_MockObject_MockObject |
|
| 59 | + * @return OptionsResolver |
|
| 60 | 60 | */ |
| 61 | 61 | protected function createMockOptionsResolver() |
| 62 | 62 | { |
@@ -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; |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | protected $subBlocks = array(); |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @param $code |
|
| 45 | + * @param string $code |
|
| 46 | 46 | */ |
| 47 | 47 | public function __construct($code) |
| 48 | 48 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @param $code |
|
| 72 | + * @param string $code |
|
| 73 | 73 | * @return $this |
| 74 | 74 | */ |
| 75 | 75 | public function setCode($code) |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * Gets constraint name based on object |
| 146 | 146 | * |
| 147 | 147 | * @param Constraint $constraint |
| 148 | - * @return mixed|string |
|
| 148 | + * @return string |
|
| 149 | 149 | */ |
| 150 | 150 | protected function getConstraintName(Constraint $constraint) |
| 151 | 151 | { |
@@ -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; |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * |
| 19 | 19 | * @param Collection $object object to normalize |
| 20 | 20 | * @param mixed $format |
| 21 | - * @param array $context |
|
| 21 | + * @param string[] $context |
|
| 22 | 22 | * @return array |
| 23 | 23 | */ |
| 24 | 24 | public function normalize($object, $format = null, array $context = array()) |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Denormalizes and sets primary to first element |
| 43 | 43 | * |
| 44 | - * @param mixed $data |
|
| 44 | + * @param string[] $data |
|
| 45 | 45 | * @param string $class |
| 46 | 46 | * @param null $format |
| 47 | - * @param array $context |
|
| 47 | + * @param string[] $context |
|
| 48 | 48 | * @return ArrayCollection |
| 49 | 49 | */ |
| 50 | 50 | public function denormalize($data, $class, $format = null, array $context = array()) |
@@ -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 | |