Completed
Push — master ( 96e687...3334c9 )
by Ilario
12:12 queued 02:13
created
src/Command/LoadFixturesCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $this
29 29
             ->setName('mongodb:fixtures:load')
30 30
             ->addArgument('addFixturesPath', InputArgument::OPTIONAL, 'Add a path to search in for fixtures files')
31
-            ->setDescription('Load fixtures and applies them');;
31
+            ->setDescription('Load fixtures and applies them'); ;
32 32
     }
33 33
 
34 34
     protected function initialize(InputInterface $input, OutputInterface $output)
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $fixtures = $this->loader->getLoadedClasses();
54 54
         if (empty($fixtures)) {
55 55
             throw new \InvalidArgumentException(
56
-                sprintf('Could not find any class to load in: %s', "\n\n- " . implode("\n- ", $paths))
56
+                sprintf('Could not find any class to load in: %s', "\n\n- ".implode("\n- ", $paths))
57 57
             );
58 58
         }
59 59
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
     private function prepareSearchPaths(InputInterface $input, KernelInterface $kernel): array
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         foreach ($kernel->getBundles() as $bundle) {
86
-            $paths[] = $bundle->getPath() . '/DataFixtures/Mongo';
86
+            $paths[] = $bundle->getPath().'/DataFixtures/Mongo';
87 87
         }
88 88
 
89 89
         return $paths;
Please login to merge, or discard this patch.
src/Fixtures/FixtureSorter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 
13 13
     private static function orderedFixtureSorter(): \Closure
14 14
     {
15
-        return static function ($a, $b): int {
15
+        return static function($a, $b): int {
16 16
             if ($a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) {
17 17
                 return $a->getOrder() - $b->getOrder();
18 18
             }
19 19
 
20
-            if ($a instanceof OrderedFixtureInterface && ! $b instanceof OrderedFixtureInterface) {
20
+            if ($a instanceof OrderedFixtureInterface && !$b instanceof OrderedFixtureInterface) {
21 21
                 return 1;
22 22
             }
23 23
 
24
-            if (! $a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) {
24
+            if (!$a instanceof OrderedFixtureInterface && $b instanceof OrderedFixtureInterface) {
25 25
                 return -1;
26 26
             }
27 27
 
Please login to merge, or discard this patch.