@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Configuration; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma; |
| 6 | 6 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $paths = $c['sources.path']; |
| 112 | 112 | |
| 113 | - if(! is_array($paths)) |
|
| 113 | + if( ! is_array($paths)) |
|
| 114 | 114 | { |
| 115 | 115 | $paths = array($paths); |
| 116 | 116 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | $this['target.fileSystem.adapter'] = $this->factory(function(Container $c) { |
| 138 | 138 | |
| 139 | - if(! empty($c['target.path'])) |
|
| 139 | + if( ! empty($c['target.path'])) |
|
| 140 | 140 | { |
| 141 | 141 | $c['hydrator.allowNonDistFilesOverwrite'] = true; |
| 142 | 142 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | return new \Psr\Log\NullLogger(); |
| 192 | 192 | }); |
| 193 | 193 | |
| 194 | - $this['formatter.provider'] = function (Container $c) { |
|
| 194 | + $this['formatter.provider'] = function(Container $c) { |
|
| 195 | 195 | return new ProfileProvider($c['profile']); |
| 196 | 196 | }; |
| 197 | 197 | |
@@ -205,19 +205,19 @@ discard block |
||
| 205 | 205 | return $hydrator; |
| 206 | 206 | }); |
| 207 | 207 | |
| 208 | - $this['generator.nameTranslator'] = function (Container $c) { |
|
| 208 | + $this['generator.nameTranslator'] = function(Container $c) { |
|
| 209 | 209 | $translator = new FilePrefixTranslator(); |
| 210 | 210 | $translator->changeMasterFile($c['configuration.masterFile']); |
| 211 | 211 | |
| 212 | 212 | return $translator; |
| 213 | 213 | }; |
| 214 | 214 | |
| 215 | - $this['generator.variableProvider'] = $this->factory(function (Container $c) { |
|
| 215 | + $this['generator.variableProvider'] = $this->factory(function(Container $c) { |
|
| 216 | 216 | $provider = new VariableProvider($c['parser']); |
| 217 | 217 | |
| 218 | 218 | $profile = $c['profile']; |
| 219 | 219 | $options = $profile->getGeneratorOptions(); |
| 220 | - if(! isset($options['translator']) || $options['translator'] === 'prefix') |
|
| 220 | + if( ! isset($options['translator']) || $options['translator'] === 'prefix') |
|
| 221 | 221 | { |
| 222 | 222 | $provider->setNameTranslator($c['generator.nameTranslator']); |
| 223 | 223 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | return $provider; |
| 226 | 226 | }); |
| 227 | 227 | |
| 228 | - $this['configurationFilesGenerator'] = function (Container $c) { |
|
| 228 | + $this['configurationFilesGenerator'] = function(Container $c) { |
|
| 229 | 229 | return new YamlGenerator($c['sources.fileSystem'], $c['configuration'], $c['generator.variableProvider']); |
| 230 | 230 | }; |
| 231 | 231 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator\NameTranslators; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator\NameTranslators; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator\ConfigurationFileGenerators; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Generator; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Karma\Logging; |
| 6 | 6 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | if($verbosity <= $this->output->getVerbosity()) |
| 46 | 46 | { |
| 47 | - if(! is_array($messages)) |
|
| 47 | + if( ! is_array($messages)) |
|
| 48 | 48 | { |
| 49 | 49 | $messages = array($messages); |
| 50 | 50 | } |