@@ -261,7 +261,7 @@ |
||
| 261 | 261 | { |
| 262 | 262 | $secondaryDomains = array_values($this->secondaryDomains); |
| 263 | 263 | return $excludeWildcards ? |
| 264 | - array_filter($secondaryDomains, function (DomainInterface $domain) { |
|
| 264 | + array_filter($secondaryDomains, function(DomainInterface $domain) { |
|
| 265 | 265 | return !$domain->isWildcard(); |
| 266 | 266 | }) : |
| 267 | 267 | $secondaryDomains; |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | { |
| 76 | 76 | $command = Binary::sudo($this->config['service']); |
| 77 | 77 | array_map( |
| 78 | - function ($argument) use ($command) { |
|
| 78 | + function($argument) use ($command) { |
|
| 79 | 79 | $command->addArg($argument); |
| 80 | 80 | }, |
| 81 | 81 | $arguments |
@@ -228,12 +228,12 @@ discard block |
||
| 228 | 228 | return self::$config; |
| 229 | 229 | } |
| 230 | 230 | $keyParts = explode('.', $key); |
| 231 | - $config =& self::$config; |
|
| 231 | + $config = & self::$config; |
|
| 232 | 232 | foreach ($keyParts as $keyPart) { |
| 233 | 233 | if (!array_key_exists($keyPart, $config)) { |
| 234 | 234 | throw new \InvalidArgumentException(sprintf('Invalid config key "%s"', $key), 1466179561); |
| 235 | 235 | } |
| 236 | - $config =& $config[$keyPart]; |
|
| 236 | + $config = & $config[$keyPart]; |
|
| 237 | 237 | } |
| 238 | 238 | return $config; |
| 239 | 239 | } |
@@ -248,8 +248,7 @@ discard block |
||
| 248 | 248 | public static function getTemplate($template, $useDefault = false) |
| 249 | 249 | { |
| 250 | 250 | $templateFile = self::$rootDirectory; |
| 251 | - $templateFile .= $useDefault ? 'config' : |
|
| 252 | - 'src'.DIRECTORY_SEPARATOR.'Admin'.DIRECTORY_SEPARATOR.'Infrastructure'.DIRECTORY_SEPARATOR.'Templates'; |
|
| 251 | + $templateFile .= $useDefault ? 'config' : 'src'.DIRECTORY_SEPARATOR.'Admin'.DIRECTORY_SEPARATOR.'Infrastructure'.DIRECTORY_SEPARATOR.'Templates'; |
|
| 253 | 252 | $templateFile .= DIRECTORY_SEPARATOR.$template; |
| 254 | 253 | if (!file_exists($templateFile)) { |
| 255 | 254 | throw new \RuntimeException( |
@@ -100,8 +100,7 @@ |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | return $absolute ? |
| 103 | - $absDataDirectory : |
|
| 104 | - trim(substr($absDataDirectory, strlen($dataBaseDirectory)), DIRECTORY_SEPARATOR); |
|
| 103 | + $absDataDirectory : trim(substr($absDataDirectory, strlen($dataBaseDirectory)), DIRECTORY_SEPARATOR); |
|
| 105 | 104 | } |
| 106 | 105 | |
| 107 | 106 | /** |