@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Facile\MongoDbBundle\Controller; |
4 | 4 | |
5 | 5 | use Facile\MongoDbBundle\DataCollector\MongoQuerySerializer; |
6 | -use MongoDB\BSON\UTCDateTime; |
|
7 | 6 | use Symfony\Component\DependencyInjection\Container; |
8 | 7 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
9 | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | try { |
51 | 51 | $result = $service->execute($query); |
52 | - }catch (\InvalidArgumentException $e) { |
|
52 | + } catch (\InvalidArgumentException $e) { |
|
53 | 53 | return new JsonResponse([ |
54 | 54 | "err" => $e->getMessage() |
55 | 55 | ]); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Controller; |
4 | 4 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | foreach ($data as $key => $item) { |
73 | 73 | |
74 | 74 | if (\is_string($item) && 0 === strpos($item, 'ISODate')) { |
75 | - $time = str_replace(['ISODate("','")'], '', $item); |
|
75 | + $time = str_replace(['ISODate("', '")'], '', $item); |
|
76 | 76 | $dateTime = new \DateTime($time); |
77 | 77 | $item = new UTCDatetime($dateTime->getTimestamp() * 1000); |
78 | 78 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\DependencyInjection; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\DataCollector; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Command; |
4 | 4 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Command; |
4 | 4 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | $indexList->loadData(); |
73 | 73 | $indexList->loadIndexes(); |
74 | - $this->io->writeln('Loaded fixture: '. \get_class($indexList)); |
|
74 | + $this->io->writeln('Loaded fixture: '.\get_class($indexList)); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Services\Explain; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Services; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace Facile\MongoDbBundle\Services\Loggers; |
4 | 4 |