@@ -3,11 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\DataGridBundle\Extension\Export; |
4 | 4 | |
5 | 5 | use Symfony\Component\Translation\TranslatorInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\DataGridBundle\Extension\AbstractExtension; |
8 | -use Oro\Bundle\DataGridBundle\Datagrid\Common\MetadataObject; |
|
9 | 7 | use Oro\Bundle\DataGridBundle\Datagrid\Common\DatagridConfiguration; |
10 | -use Oro\Bundle\DataGridBundle\Extension\Toolbar\ToolbarExtension; |
|
11 | 8 | |
12 | 9 | class ExportExtension extends AbstractExtension |
13 | 10 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | protected $root; |
23 | 23 | |
24 | 24 | /** |
25 | - * @param $types |
|
25 | + * @param integer[] $types |
|
26 | 26 | * @param string $root |
27 | 27 | */ |
28 | 28 | public function __construct($types, $root) |
@@ -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; |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\DataGridBundle\Extension\InlineEditing; |
4 | 4 | |
5 | 5 | use Symfony\Component\Validator\Mapping\ClassMetadataInterface; |
6 | -use Symfony\Component\Validator\PropertyMetadataContainerInterface; |
|
7 | 6 | use Symfony\Component\Validator\Validator\ValidatorInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\DataGridBundle\Extension\InlineEditing\InlineEditColumnOptions\GuesserInterface; |
10 | 8 | |
11 | 9 | /** |
@@ -139,7 +139,7 @@ |
||
139 | 139 | * @param string $paramName |
140 | 140 | * @param mixed $default |
141 | 141 | * |
142 | - * @return mixed |
|
142 | + * @return integer |
|
143 | 143 | */ |
144 | 144 | protected function getOr($paramName, $default = null) |
145 | 145 | { |
@@ -72,6 +72,9 @@ |
||
72 | 72 | $this->doTestGuess('guessFilter'); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $guessMethodName |
|
77 | + */ |
|
75 | 78 | public function doTestGuess($guessMethodName) |
76 | 79 | { |
77 | 80 | $class = 'TestClass'; |
@@ -99,6 +99,9 @@ |
||
99 | 99 | ); |
100 | 100 | } |
101 | 101 | |
102 | + /** |
|
103 | + * @param string $entityClass |
|
104 | + */ |
|
102 | 105 | protected function prepareEntityManagerForTestHints($entityClass) |
103 | 106 | { |
104 | 107 | $connection = $this->getMockBuilder('Doctrine\DBAL\Connection') |
@@ -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 |
@@ -134,6 +134,9 @@ |
||
134 | 134 | $this->assertEquals($config->offsetGet($key), $expectedResult->offsetGet($key)); |
135 | 135 | } |
136 | 136 | |
137 | + /** |
|
138 | + * @param string $entityName |
|
139 | + */ |
|
137 | 140 | protected function getProcessConfigsExpectedValues($entityName) |
138 | 141 | { |
139 | 142 | return [ |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * Generate grid element id. |
125 | 125 | * |
126 | 126 | * @param DatagridInterface $grid |
127 | - * @return array |
|
127 | + * @return string |
|
128 | 128 | */ |
129 | 129 | public function generateGridElementId(DatagridInterface $grid) |
130 | 130 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @param string $name |
144 | 144 | * @param string $scope |
145 | - * @return array |
|
145 | + * @return string |
|
146 | 146 | */ |
147 | 147 | public function buildGridFullName($name, $scope) |
148 | 148 | { |
@@ -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 |
@@ -236,7 +236,7 @@ |
||
236 | 236 | /** |
237 | 237 | * @param array $params |
238 | 238 | * @param string $paramName |
239 | - * @param mixed $defaultValue |
|
239 | + * @param null|false $defaultValue |
|
240 | 240 | * |
241 | 241 | * @return mixed |
242 | 242 | */ |