@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Blast\Bundle\CoreBundle\Admin\Traits; |
13 | 13 | |
14 | 14 | use Blast\Bundle\CoreBundle\Admin\CoreAdmin; |
15 | -use Blast\Bundle\CoreBundle\DataSource\Iterator; |
|
16 | 15 | use Sonata\AdminBundle\Datagrid\DatagridMapper; |
17 | 16 | use Sonata\AdminBundle\Datagrid\ListMapper; |
18 | 17 | use Sonata\AdminBundle\Form\FormMapper; |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Exporter\Source\DoctrineORMQuerySourceIterator; |
15 | 15 | use Doctrine\ORM\PersistentCollection; |
16 | -use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
|
17 | 16 | use Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException; |
18 | 17 | |
19 | 18 | class Iterator extends DoctrineORMQuerySourceIterator |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | unset($this->propertyPaths[$i]); |
51 | 51 | } |
52 | - } catch (NoSuchPropertyException|UnexpectedTypeException $e) { |
|
52 | + } catch (NoSuchPropertyException | UnexpectedTypeException $e) { |
|
53 | 53 | $collection = preg_replace('/\..+$/', '', $propertyPath); |
54 | 54 | $subProperty = preg_replace('/^.+\./U', '', $propertyPath); |
55 | 55 | if ($collection != (string) $propertyPath && $subProperty) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | } |
55 | 55 | $writer = $this->writers[$format]; |
56 | 56 | |
57 | - $callback = function () use ($source, $writer) { |
|
57 | + $callback = function() use ($source, $writer) { |
|
58 | 58 | $handler = Handler::create($source, $writer); |
59 | 59 | $handler->export(); |
60 | 60 | }; |