@@ -99,8 +99,8 @@ |
||
99 | 99 | { |
100 | 100 | return array_filter( |
101 | 101 | $options, |
102 | - function ($value) { |
|
103 | - return ! empty($value) || \is_int($value) || \is_bool($value) || \is_float($value); |
|
102 | + function($value) { |
|
103 | + return !empty($value) || \is_int($value) || \is_bool($value) || \is_float($value); |
|
104 | 104 | } |
105 | 105 | ); |
106 | 106 | } |
@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 | |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $indexList->loadData(); |
75 | 75 | $indexList->loadIndexes(); |
76 | - $this->io->writeln('Loaded fixture: ' . \get_class($indexList)); |
|
76 | + $this->io->writeln('Loaded fixture: '.\get_class($indexList)); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | foreach ($kernel->getBundles() as $bundle) { |
94 | - $paths[] = $bundle->getPath() . '/DataFixtures/Mongo'; |
|
94 | + $paths[] = $bundle->getPath().'/DataFixtures/Mongo'; |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | return $paths; |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | protected function sortFixtures(&$fixtures): self |
123 | 123 | { |
124 | - usort($fixtures, function ($fixture1, $fixture2) { |
|
124 | + usort($fixtures, function($fixture1, $fixture2) { |
|
125 | 125 | $isFixture1Instance = ($fixture1 instanceof OrderedFixtureInterface); |
126 | 126 | $isFixture2Instance = ($fixture2 instanceof OrderedFixtureInterface); |
127 | 127 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | return $fixture1->getOrder() - $fixture2->getOrder(); |
130 | 130 | } |
131 | 131 | |
132 | - if (! $isFixture1Instance && ! $isFixture2Instance) { |
|
132 | + if (!$isFixture1Instance && !$isFixture2Instance) { |
|
133 | 133 | return 1; |
134 | 134 | } |
135 | 135 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $this |
21 | 21 | ->setName('mongodb:collection:drop') |
22 | 22 | ->addArgument('collection', InputArgument::REQUIRED, 'collection to drop') |
23 | - ->setDescription('Drops a database');; |
|
23 | + ->setDescription('Drops a database'); ; |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -40,10 +40,10 @@ |
||
40 | 40 | $connectionName = 'mongo.connection'; |
41 | 41 | |
42 | 42 | if ($input->getOption('connection')) { |
43 | - $connectionName .= '.' . $input->getOption('connection'); |
|
43 | + $connectionName .= '.'.$input->getOption('connection'); |
|
44 | 44 | } |
45 | 45 | |
46 | - if (! $this->getContainer()->has($connectionName)) { |
|
46 | + if (!$this->getContainer()->has($connectionName)) { |
|
47 | 47 | throw new \LogicException(sprintf('No connection named \'%s\' found', $input->getOption('connection'))); |
48 | 48 | } |
49 | 49 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | parent::configure(); |
19 | 19 | $this |
20 | 20 | ->setName('mongodb:database:drop') |
21 | - ->setDescription('Drops a database');; |
|
21 | + ->setDescription('Drops a database'); ; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |