@@ -6,7 +6,6 @@ |
||
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 |
@@ -55,7 +55,7 @@ |
||
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); |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -11,7 +11,7 @@ |
||
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 | } |