@@ -3,13 +3,9 @@ |
||
| 3 | 3 | namespace Oro\Bundle\DataGridBundle\Datasource\Orm; |
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
| 6 | -use Doctrine\ORM\Query; |
|
| 7 | 6 | use Doctrine\ORM\QueryBuilder; |
| 8 | - |
|
| 9 | 7 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
| 10 | - |
|
| 11 | 8 | use Oro\Component\DoctrineUtils\ORM\QueryHintResolver; |
| 12 | - |
|
| 13 | 9 | use Oro\Bundle\DataGridBundle\Datagrid\DatagridInterface; |
| 14 | 10 | use Oro\Bundle\DataGridBundle\Datasource\DatasourceInterface; |
| 15 | 11 | use Oro\Bundle\DataGridBundle\Datasource\ParameterBinderAwareInterface; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * @param string $name Where type ('and', 'or') |
| 99 | 99 | * |
| 100 | 100 | * @throws InvalidConfigurationException |
| 101 | - * @return ArrayNodeDefinition |
|
| 101 | + * @return \Symfony\Component\Config\Definition\Builder\NodeBuilder |
|
| 102 | 102 | */ |
| 103 | 103 | protected function addWhereNode($name) |
| 104 | 104 | { |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | /** |
| 179 | 179 | * @param int $id |
| 180 | 180 | * |
| 181 | - * @return this |
|
| 181 | + * @return GridView |
|
| 182 | 182 | */ |
| 183 | 183 | public function setId($id) |
| 184 | 184 | { |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * @param string $name |
| 192 | 192 | * |
| 193 | - * @return this |
|
| 193 | + * @return GridView |
|
| 194 | 194 | */ |
| 195 | 195 | public function setName($name) |
| 196 | 196 | { |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | /** |
| 203 | 203 | * @param string $type |
| 204 | 204 | * |
| 205 | - * @return this |
|
| 205 | + * @return GridView |
|
| 206 | 206 | */ |
| 207 | 207 | public function setType($type) |
| 208 | 208 | { |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | /** |
| 215 | 215 | * @param array $filtersData |
| 216 | 216 | * |
| 217 | - * @return this |
|
| 217 | + * @return GridView |
|
| 218 | 218 | */ |
| 219 | 219 | public function setFiltersData(array $filtersData = []) |
| 220 | 220 | { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | /** |
| 227 | 227 | * @param array $sortersData |
| 228 | 228 | * |
| 229 | - * @return this |
|
| 229 | + * @return GridView |
|
| 230 | 230 | */ |
| 231 | 231 | public function setSortersData(array $sortersData = []) |
| 232 | 232 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | /** |
| 255 | 255 | * @param string $gridName |
| 256 | 256 | * |
| 257 | - * @return this |
|
| 257 | + * @return GridView |
|
| 258 | 258 | */ |
| 259 | 259 | public function setGridName($gridName) |
| 260 | 260 | { |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | /** |
| 267 | 267 | * @param User $owner |
| 268 | 268 | * |
| 269 | - * @return this |
|
| 269 | + * @return GridView |
|
| 270 | 270 | */ |
| 271 | 271 | public function setOwner(User $owner = null) |
| 272 | 272 | { |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | * Set organization |
| 299 | 299 | * |
| 300 | 300 | * @param OrganizationInterface $organization |
| 301 | - * @return User |
|
| 301 | + * @return GridView |
|
| 302 | 302 | */ |
| 303 | 303 | public function setOrganization(OrganizationInterface $organization = null) |
| 304 | 304 | { |
@@ -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 | |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | * |
| 100 | 100 | * @param DatagridConfiguration $config |
| 101 | 101 | * |
| 102 | - * @return mixed |
|
| 102 | + * @return DatagridConfiguration |
|
| 103 | 103 | */ |
| 104 | 104 | public function setConfig(DatagridConfiguration $config) |
| 105 | 105 | { |
@@ -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'; |