Passed
Push — master ( 2db21b...52a038 )
by Robbie
02:05
created
tests/Command/Member/ChangeGroupsCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 $this->isInstanceOf(InputInterface::class),
103 103
                 $this->isInstanceOf(OutputInterface::class),
104 104
                 $this->callback(
105
-                    function ($argument) {
105
+                    function($argument) {
106 106
                         return $argument instanceof ChoiceQuestion
107 107
                             && $argument->isMultiselect()
108 108
                             && !empty($argument->getChoices());
Please login to merge, or discard this patch.
tests/Command/FactoryTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Get a Factory to test with
89 89
      *
90
-     * @return Factory
90
+     * @return \SilverLeague\Console\Command\Factory
91 91
      */
92 92
     protected function getFactory()
93 93
     {
Please login to merge, or discard this patch.
src/Command/Object/DebugCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
             return $output->writeln(json_encode($data, JSON_PRETTY_PRINT));
195 195
         }
196 196
 
197
-        array_walk($data, function (&$value, $key) {
197
+        array_walk($data, function(&$value, $key) {
198 198
             $value = [$key, $value];
199 199
         });
200 200
 
Please login to merge, or discard this patch.
src/Command/Object/ChildrenCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return;
46 46
         }
47 47
         sort($classes);
48
-        $rows = array_map(function ($class) {
48
+        $rows = array_map(function($class) {
49 49
             return [$class, $this->getModuleName($class)];
50 50
         }, $classes);
51 51
 
Please login to merge, or discard this patch.
src/Command/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function getTaskAsClosure(AbstractTaskCommand $command)
76 76
     {
77
-        return function (InputInterface $input, OutputInterface $output) use ($command) {
77
+        return function(InputInterface $input, OutputInterface $output) use ($command) {
78 78
             $io = new SymfonyStyle($input, $output);
79 79
 
80 80
             $io->title(sprintf('%s: %s', $command->getName(), $command->getDescription()));
Please login to merge, or discard this patch.
src/Framework/Bootstrap.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use SilverStripe\Control\HTTPRequestBuilder;
7 7
 use SilverStripe\Core\CoreKernel;
8 8
 use SilverStripe\Core\Startup\ErrorControlChainMiddleware;
9
-use SilverStripe\ORM\DB;
10 9
 
11 10
 /**
12 11
  * Loads and configures SilverStripe
Please login to merge, or discard this patch.
src/Framework/Utility/ObjectUtilities.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         // Handle vendor modules
57 57
         if ($folder === 'vendor') {
58
-            $folder .=  '/' . array_shift($folders) . '/' . array_shift($folders);
58
+            $folder .= '/' . array_shift($folders) . '/' . array_shift($folders);
59 59
         }
60 60
 
61 61
         $composerConfig = $this->getModuleComposerConfiguration($folder);
Please login to merge, or discard this patch.
tests/Command/Config/DumpCommandTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function testExecuteWithFilteredResults()
51 51
     {
52 52
         $result = $this->executeTest(['--filter' => 'ViewableData'])->getDisplay();
53
-        $this->assertContains( RequestHandler::class, $result);
53
+        $this->assertContains(RequestHandler::class, $result);
54 54
         $this->assertNotContains('silverstripe\\core\\injector\\injector', $result);
55 55
     }
56 56
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 define('CONSOLE_BASE_DIR', realpath(__DIR__ . '/..'));
13 13
 
14
-foreach([CONSOLE_BASE_DIR, realpath(CONSOLE_BASE_DIR . '/../..')] as $vendorPath) {
14
+foreach ([CONSOLE_BASE_DIR, realpath(CONSOLE_BASE_DIR . '/../..')] as $vendorPath) {
15 15
     if (file_exists($vendorPath . '/autoload.php')) {
16 16
         require_once $vendorPath . '/autoload.php';
17 17
         require_once $vendorPath . '/silverstripe/framework/tests/bootstrap.php';
Please login to merge, or discard this patch.