@@ -18,7 +18,6 @@ |
||
18 | 18 | |
19 | 19 | use Nette; |
20 | 20 | use Nette\DI; |
21 | - |
|
22 | 21 | use IPub\Packages; |
23 | 22 | use IPub\Packages\Commands; |
24 | 23 | use IPub\Packages\Events; |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @date 27.05.16 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\Packages\DI; |
18 | 18 | |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | * @var array |
43 | 43 | */ |
44 | 44 | private $defaults = [ |
45 | - 'path' => NULL, // Paths where to search for packages |
|
46 | - 'dirs' => [ // Define path to folders |
|
47 | - 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
48 | - 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
49 | - 'tempDir' => '%tempDir%', // Path to temporary folder |
|
45 | + 'path' => NULL, // Paths where to search for packages |
|
46 | + 'dirs' => [// Define path to folders |
|
47 | + 'configDir' => '%appDir%/config', // Path where is stored app configuration |
|
48 | + 'vendorDir' => '%appDir%/../vendor', // Path to composer vendor folder |
|
49 | + 'tempDir' => '%tempDir%', // Path to temporary folder |
|
50 | 50 | ], |
51 | - 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
51 | + 'configFile' => 'config.neon', // Filename with enabled packages extensions |
|
52 | 52 | 'loader' => [ |
53 | 53 | 'packageFiles' => [ |
54 | 54 | 'package.php', |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | |
79 | 79 | $builder->parameters['packages'] = []; |
80 | 80 | |
81 | - if (is_file($configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php')) { |
|
82 | - $packages = require $configuration['dirs']['configDir'] . DIRECTORY_SEPARATOR . 'packages.php'; |
|
81 | + if (is_file($configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php')) { |
|
82 | + $packages = require $configuration['dirs']['configDir'].DIRECTORY_SEPARATOR.'packages.php'; |
|
83 | 83 | |
84 | 84 | foreach ($packages as $name => $data) { |
85 | 85 | $builder->parameters['packages'][$name] = $data; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | ]; |
139 | 139 | |
140 | 140 | foreach ($commands as $name => $cmd) { |
141 | - $builder->addDefinition($this->prefix('commands' . lcfirst($name))) |
|
141 | + $builder->addDefinition($this->prefix('commands'.lcfirst($name))) |
|
142 | 142 | ->setType($cmd); |
143 | 143 | } |
144 | 144 | } |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @date 19.07.16 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\Packages\Commands; |
18 | 18 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | foreach ($packages as $package) { |
72 | 72 | $output->writeln(sprintf( |
73 | - '<info>%' . $maxLength . 's</info> | status: <comment>%-12s</comment> | version: <comment>%s</comment>', |
|
73 | + '<info>%'.$maxLength.'s</info> | status: <comment>%-12s</comment> | version: <comment>%s</comment>', |
|
74 | 74 | $package->getName(), |
75 | 75 | $this->packageManager->getStatus($package), |
76 | 76 | $this->packageManager->getVersion($package) |