Completed
Branch test_coverage (1c10ac)
by Alessandro
01:39
created
src/DataCollector/MongoDbDataCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     public function getTime(): float
78 78
     {
79
-        return (float)($this->data[self::TIME_KEYWORD] * 1000);
79
+        return (float) ($this->data[self::TIME_KEYWORD] * 1000);
80 80
     }
81 81
 
82 82
     /**
Please login to merge, or discard this patch.
src/Fixtures/MongoFixturesLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         return array_reduce(
68 68
             $declared,
69
-            function ($classList, string $className) use ($includedFiles) {
69
+            function($classList, string $className) use ($includedFiles) {
70 70
                 $reflClass = new \ReflectionClass($className);
71 71
                 $sourceFile = $reflClass->getFileName();
72 72
 
Please login to merge, or discard this patch.
src/Command/LoadFixturesCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             );
59 59
         }
60 60
 
61
-        foreach ($fixtures as $fixture){
61
+        foreach ($fixtures as $fixture) {
62 62
             $this->loadFixture($fixture);
63 63
         }
64 64
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $indexList->loadData();
74 74
         $indexList->loadIndexes();
75
-        $this->io->writeln('Loaded fixture: '. get_class($indexList));
75
+        $this->io->writeln('Loaded fixture: '.get_class($indexList));
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
src/Models/ClientConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
     {
102 102
         return array_filter(
103 103
             $options,
104
-            function ($value) {
104
+            function($value) {
105 105
                 return !empty($value) || is_int($value) || is_bool($value) || is_float($value);
106 106
             }
107 107
         );
Please login to merge, or discard this patch.
src/Models/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
      */
91 91
     public function setFilters($filters)
92 92
     {
93
-        $this->filters = (array)$filters ?? [];
93
+        $this->filters = (array) $filters ?? [];
94 94
     }
95 95
 
96 96
     /**
Please login to merge, or discard this patch.
src/Twig/FacileMongoDbBundleExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function queryFilterTranslate(string $label, string $methodName)
22 22
     {
23
-        switch(strtolower($methodName)) {
23
+        switch (strtolower($methodName)) {
24 24
             default:
25 25
                 return $label;
26 26
         }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function queryDataTranslate(string $label, string $methodName)
36 36
     {
37
-        switch(strtolower($methodName)) {
37
+        switch (strtolower($methodName)) {
38 38
             case 'aggregate':
39 39
                 return 'Pipeline';
40 40
             case 'insertOne':
Please login to merge, or discard this patch.
src/Services/ClientRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         return implode(
88 88
             ',',
89 89
             array_map(
90
-                function (array $host) {
90
+                function(array $host) {
91 91
                     return sprintf("%s:%d", $host['host'], $host['port']);
92 92
                 },
93 93
                 $hosts
Please login to merge, or discard this patch.
src/DataCollector/MongoQuerySerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         }
47 47
 
48 48
         if (method_exists($item, 'toDateTime')) {
49
-            return 'ISODate("' . $item->toDateTime()->format('c') . '")';
49
+            return 'ISODate("'.$item->toDateTime()->format('c').'")';
50 50
         }
51 51
 
52 52
         if (method_exists($item, '__toString')) {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         if (is_array($item) || is_object($item)) {
61
-            return self::prepareUnserializableData((array)$item);
61
+            return self::prepareUnserializableData((array) $item);
62 62
         }
63 63
 
64 64
         return $item;
Please login to merge, or discard this patch.