Test Failed
Push — master ( 98ddc8...4fb840 )
by Adam
01:45
created
bin/packages-manager.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,40 +12,40 @@  discard block
 block discarded – undo
12 12
  * @date           19.07.16
13 13
  */
14 14
 
15
-declare(strict_types = 1);
15
+declare(strict_types=1);
16 16
 
17 17
 use Contributte\Console;
18 18
 
19 19
 $rootDir = getcwd();
20
-$libsDir = $rootDir . DIRECTORY_SEPARATOR . 'vendor';
21
-$wwwDir = $rootDir . DIRECTORY_SEPARATOR . 'www';
22
-$appDir = $rootDir . DIRECTORY_SEPARATOR . 'app';
23
-$packagesDir = $appDir . DIRECTORY_SEPARATOR . 'config';
20
+$libsDir = $rootDir.DIRECTORY_SEPARATOR.'vendor';
21
+$wwwDir = $rootDir.DIRECTORY_SEPARATOR.'www';
22
+$appDir = $rootDir.DIRECTORY_SEPARATOR.'app';
23
+$packagesDir = $appDir.DIRECTORY_SEPARATOR.'config';
24 24
 
25 25
 if (!file_exists($packagesDir)) {
26 26
 	if (is_writable(dirname($packagesDir))) {
27 27
 		mkdir($packagesDir);
28 28
 
29 29
 	} else {
30
-		die('Path "' . $packagesDir . '" does not exists.');
30
+		die('Path "'.$packagesDir.'" does not exists.');
31 31
 	}
32 32
 }
33 33
 
34 34
 if (!is_writable($packagesDir)) {
35
-	die('Path "' . $packagesDir . '" it not writable.');
35
+	die('Path "'.$packagesDir.'" it not writable.');
36 36
 }
37 37
 
38 38
 foreach (['log', 'temp'] as $dir) {
39
-	if (!is_dir($rootDir . DIRECTORY_SEPARATOR . $dir)) {
40
-		mkdir($rootDir . DIRECTORY_SEPARATOR . $dir);
39
+	if (!is_dir($rootDir.DIRECTORY_SEPARATOR.$dir)) {
40
+		mkdir($rootDir.DIRECTORY_SEPARATOR.$dir);
41 41
 	}
42 42
 }
43 43
 
44
-if (!file_exists($libsDir . DIRECTORY_SEPARATOR . 'autoload.php')) {
44
+if (!file_exists($libsDir.DIRECTORY_SEPARATOR.'autoload.php')) {
45 45
 	die('autoload.php file can not be found.');
46 46
 }
47 47
 
48
-require_once $libsDir . DIRECTORY_SEPARATOR . 'autoload.php';
48
+require_once $libsDir.DIRECTORY_SEPARATOR.'autoload.php';
49 49
 
50 50
 $configurator = new Nette\Configurator;
51 51
 $configurator->addParameters([
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
 ]);
55 55
 
56 56
 //$configurator->setDebugMode(TRUE);  // Debug mode HAVE TO BE enabled on production server
57
-$configurator->enableDebugger($packagesDir . DIRECTORY_SEPARATOR . 'log');
57
+$configurator->enableDebugger($packagesDir.DIRECTORY_SEPARATOR.'log');
58 58
 
59
-$configurator->setTempDirectory($packagesDir . DIRECTORY_SEPARATOR . 'temp');
60
-$configurator->addConfig(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.neon');
59
+$configurator->setTempDirectory($packagesDir.DIRECTORY_SEPARATOR.'temp');
60
+$configurator->addConfig(dirname(__DIR__).DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.neon');
61 61
 
62 62
 $container = $configurator->createContainer();
63 63
 
Please login to merge, or discard this patch.