Passed
Push — master ( 6791f9...01e57e )
by Adam
02:08
created
src/IPub/Packages/DI/PackagesExtensions.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
 	 * @var array
50 50
 	 */
51 51
 	private $defaults = [
52
-		'path'       => NULL,                        // Paths where to search for packages
53
-		'dirs'       => [                            // Define path to folders
54
-			'configDir' => '%appDir%/config',        // Path where is stored app configuration
55
-			'vendorDir' => '%appDir%/../vendor',     // Path to composer vendor folder
56
-			'tempDir'   => '%tempDir%',              // Path to temporary folder
52
+		'path'       => NULL, // Paths where to search for packages
53
+		'dirs'       => [// Define path to folders
54
+			'configDir' => '%appDir%/config', // Path where is stored app configuration
55
+			'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder
56
+			'tempDir'   => '%tempDir%', // Path to temporary folder
57 57
 		],
58
-		'configFile' => 'config.neon',               // Filename with enabled packages extensions
58
+		'configFile' => 'config.neon', // Filename with enabled packages extensions
59 59
 		'loader'     => [
60 60
 			'packageFiles' => [
61 61
 				'package.php',
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 
83 83
 		$builder->parameters['packages'] = [];
84 84
 
85
-		if (is_file($configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php')) {
86
-			$packages = require $configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php';
85
+		if (is_file($configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php')) {
86
+			$packages = require $configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php';
87 87
 
88 88
 			foreach ($packages as $name => $data) {
89 89
 				$builder->parameters['packages'][$name] = $data;
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		];
143 143
 
144 144
 		foreach ($commands as $name => $cmd) {
145
-			$builder->addDefinition($this->prefix('commands' . lcfirst($name)))
145
+			$builder->addDefinition($this->prefix('commands'.lcfirst($name)))
146 146
 				->setType($cmd)
147 147
 				->addTag(Console\DI\ConsoleExtension::TAG_COMMAND);
148 148
 		}
Please login to merge, or discard this patch.