Passed
Push — master ( 26ea1a...43abdf )
by Matthew
07:12
created
Model/Worker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             $hasEnDecimalPoint = $decimalPoint === '.' ? $hasDecimalPoint : strpos(strval($time), '.');
60 60
             if (!$hasEnDecimalPoint) {
61 61
                 if ($hasDecimalPoint) {
62
-                    $dateTime = \DateTime::createFromFormat('U' . $decimalPoint . 'u', strval($timeU),
62
+                    $dateTime = \DateTime::createFromFormat('U'.$decimalPoint.'u', strval($timeU),
63 63
                         new \DateTimeZone(date_default_timezone_get()));
64 64
                 } else {
65 65
                     $dateTime = \DateTime::createFromFormat('U', strval($timeU),
Please login to merge, or discard this patch.
DependencyInjection/Compiler/GridCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         $defaultManagerType = $container->getParameter('dtc_queue.manager.job');
18 18
         $runManagerType = $container->getParameter($this->getRunManagerType($container));
19 19
         if ($defaultManagerType === 'orm' || $runManagerType === 'orm' || $defaultManagerType === 'odm' || $runManagerType === 'odm') {
20
-            $filename =__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'dtc_grid.yaml';
20
+            $filename = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'dtc_grid.yaml';
21 21
             $cacheDir = $container->getParameter('kernel.cache_dir');
22 22
             if (class_exists('Dtc\GridBundle\Grid\Source\ColumnSource')) {
23 23
                 \Dtc\GridBundle\Grid\Source\ColumnSource::cacheClassesFromFile($cacheDir, $filename);
Please login to merge, or discard this patch.
Controller/TrendsController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         $format = $this->getDateFormat($type);
85
-        usort($timingsDates, function ($date1str, $date2str) use ($format) {
85
+        usort($timingsDates, function($date1str, $date2str) use ($format) {
86 86
             $date1 = \DateTime::createFromFormat($format, $date1str, new \DateTimeZone(date_default_timezone_get()));
87 87
             $date2 = \DateTime::createFromFormat($format, $date2str, new \DateTimeZone(date_default_timezone_get()));
88 88
             if (!$date2) {
@@ -282,21 +282,21 @@  discard block
 block discarded – undo
282 282
             case 'YEAR':
283 283
                 return $result['year'];
284 284
             case 'MONTH':
285
-                return "{$result['year']}-" . str_pad($result['month'], 2, "0", STR_PAD_LEFT);
285
+                return "{$result['year']}-".str_pad($result['month'], 2, "0", STR_PAD_LEFT);
286 286
             case 'DAY':
287
-                $str = "{$result['year']}-" . str_pad($result['month'], 2, "0", STR_PAD_LEFT);
288
-                $str .= '-' . str_pad($result['day'], 2, "0", STR_PAD_LEFT);
287
+                $str = "{$result['year']}-".str_pad($result['month'], 2, "0", STR_PAD_LEFT);
288
+                $str .= '-'.str_pad($result['day'], 2, "0", STR_PAD_LEFT);
289 289
                 return $str;
290 290
             case 'HOUR':
291
-                $str = "{$result['year']}-" . str_pad($result['month'], 2, "0", STR_PAD_LEFT);
292
-                $str .= '-' . str_pad($result['day'], 2, "0", STR_PAD_LEFT);
293
-                $str .= ' ' . str_pad($result['hour'], 2, "0", STR_PAD_LEFT);
291
+                $str = "{$result['year']}-".str_pad($result['month'], 2, "0", STR_PAD_LEFT);
292
+                $str .= '-'.str_pad($result['day'], 2, "0", STR_PAD_LEFT);
293
+                $str .= ' '.str_pad($result['hour'], 2, "0", STR_PAD_LEFT);
294 294
                 return $str;
295 295
             case 'MINUTE':
296
-                $str = "{$result['year']}-" . str_pad($result['month'], 2, "0", STR_PAD_LEFT);
297
-                $str .= '-' . str_pad($result['day'], 2, "0", STR_PAD_LEFT);
298
-                $str .= ' ' . str_pad($result['hour'], 2, "0", STR_PAD_LEFT);
299
-                $str .= ':' . str_pad($result['minute'], 2, "0", STR_PAD_LEFT);
296
+                $str = "{$result['year']}-".str_pad($result['month'], 2, "0", STR_PAD_LEFT);
297
+                $str .= '-'.str_pad($result['day'], 2, "0", STR_PAD_LEFT);
298
+                $str .= ' '.str_pad($result['hour'], 2, "0", STR_PAD_LEFT);
299
+                $str .= ':'.str_pad($result['minute'], 2, "0", STR_PAD_LEFT);
300 300
                 return $str;
301 301
             default:
302 302
                 throw new \InvalidArgumentException("Invalid date format type '$type''");
Please login to merge, or discard this patch.
ODM/CommonTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         $result = $query->execute();
32 32
         if ($result instanceof DeleteResult) {
33 33
             return $result->getDeletedCount();
34
-        }
35
-        else if (isset($result['n'])) {
34
+        } else if (isset($result['n'])) {
36 35
             return $result['n'];
37 36
         }
38 37
 
Please login to merge, or discard this patch.
ODM/JobManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -209,7 +209,7 @@
 block discarded – undo
209 209
         $status = [];
210 210
 
211 211
         foreach ($results as $info) {
212
-            $key = $info['_id']['worker_name'] . '->' .$info['_id']['method'] . '()';
212
+            $key = $info['_id']['worker_name'].'->'.$info['_id']['method'].'()';
213 213
             if (!isset($status[$key])) {
214 214
                 $status[$key] = $allStatus;
215 215
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
         $result = $this->runQuery($query, 'execute');
112 112
         if ($result instanceof UpdateResult) {
113 113
             return $result->getModifiedCount();
114
-        }
115
-        else if (isset($result['n'])) {
114
+        } else if (isset($result['n'])) {
116 115
             return $result['n'];
117 116
         }
118 117
 
Please login to merge, or discard this patch.