@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Facile\MongoDbBundle\DataCollector\MongoQuerySerializer; |
| 6 | 6 | use Facile\MongoDbBundle\Services\Explain\ExplainQueryService; |
| 7 | -use MongoDB\BSON\UTCDateTime; |
|
| 8 | 7 | use Symfony\Component\DependencyInjection\Container; |
| 9 | 8 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
| 10 | 9 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | const VERBOSITY_EXECUTION_STATS = 'executionStats'; |
| 14 | 14 | const VERBOSITY_ALL_PLAN_EXECUTION = 'allPlansExecution'; |
| 15 | 15 | |
| 16 | - public static $acceptedMethods= [ |
|
| 16 | + public static $acceptedMethods = [ |
|
| 17 | 17 | 'count', |
| 18 | 18 | 'distinct', |
| 19 | 19 | 'find', |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | if (!in_array($query->getMethod(), self::$acceptedMethods)) { |
| 58 | 58 | throw new \InvalidArgumentException( |
| 59 | - 'Cannot explain the method \''.$query->getMethod().'\'. Allowed methods: '. implode(', ',self::$acceptedMethods) |
|
| 59 | + 'Cannot explain the method \''.$query->getMethod().'\'. Allowed methods: '.implode(', ', self::$acceptedMethods) |
|
| 60 | 60 | ); |
| 61 | 61 | }; |
| 62 | 62 | |
@@ -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\Services\Explain; |
| 4 | 4 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $args = [ |
| 23 | 23 | $query->getMethod() => $query->getCollection(), |
| 24 | 24 | ]; |
| 25 | - switch($query->getMethod()) { |
|
| 25 | + switch ($query->getMethod()) { |
|
| 26 | 26 | case 'count': |
| 27 | 27 | $args += self::getCountArgs($query); |
| 28 | 28 | break; |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | return [ |
| 116 | 116 | 'delete' => $query->getCollection(), |
| 117 | 117 | 'deletes' => [ |
| 118 | - ['q' => $query->getFilters(), 'limit' => $query->getOptions()['limit'] ?? 0,] |
|
| 118 | + ['q' => $query->getFilters(), 'limit' => $query->getOptions()['limit'] ?? 0, ] |
|
| 119 | 119 | ] |
| 120 | 120 | ]; |
| 121 | 121 | } |