@@ -81,7 +81,6 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Delete a domain |
| 83 | 83 | * |
| 84 | - * @param string $domain Domain name |
|
| 85 | 84 | * @return boolean Success |
| 86 | 85 | */ |
| 87 | 86 | public static function delete($name) |
@@ -92,7 +91,6 @@ discard block |
||
| 92 | 91 | /** |
| 93 | 92 | * Enable a domain |
| 94 | 93 | * |
| 95 | - * @param string $domain Domain name |
|
| 96 | 94 | * @return boolean Success |
| 97 | 95 | */ |
| 98 | 96 | public static function enable($name) |
@@ -103,7 +101,6 @@ discard block |
||
| 103 | 101 | /** |
| 104 | 102 | * Disable a domain |
| 105 | 103 | * |
| 106 | - * @param string $domain Domain name |
|
| 107 | 104 | * @return boolean Success |
| 108 | 105 | */ |
| 109 | 106 | public static function disable($name) |
@@ -114,7 +111,6 @@ discard block |
||
| 114 | 111 | /** |
| 115 | 112 | * Enable a domain wildcard |
| 116 | 113 | * |
| 117 | - * @param string $domain Domain name |
|
| 118 | 114 | * @return boolean Success |
| 119 | 115 | */ |
| 120 | 116 | public static function enableWildcard($name) |
@@ -125,7 +121,6 @@ discard block |
||
| 125 | 121 | /** |
| 126 | 122 | * Disable a domain wildcard |
| 127 | 123 | * |
| 128 | - * @param string $domain Domain name |
|
| 129 | 124 | * @return boolean Success |
| 130 | 125 | */ |
| 131 | 126 | public static function disableWildcard($name) |
@@ -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; |
@@ -51,7 +51,6 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Create a PHP FPM service instance |
| 53 | 53 | * |
| 54 | - * @param string $version PHP version |
|
| 55 | 54 | * @return ShellServiceInterface PHP FPM service |
| 56 | 55 | */ |
| 57 | 56 | public static function create($php) |
@@ -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( |
@@ -840,7 +840,7 @@ discard block |
||
| 840 | 840 | /** |
| 841 | 841 | * Add a protocol port to a virtual host |
| 842 | 842 | * |
| 843 | - * @param string $account Account name |
|
| 843 | + * @param AccountInterface $account Account name |
|
| 844 | 844 | * @param string $docroot Document root |
| 845 | 845 | * @param int $protocol Protocol |
| 846 | 846 | * @param int $port Port |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | /** |
| 897 | 897 | * Remove a protocol port from a virtual host |
| 898 | 898 | * |
| 899 | - * @param string $account Account name |
|
| 899 | + * @param AccountInterface $account Account name |
|
| 900 | 900 | * @param string $docroot Document root |
| 901 | 901 | * @param int $protocol Protocol |
| 902 | 902 | * @param int $port Port |
@@ -945,7 +945,7 @@ discard block |
||
| 945 | 945 | /** |
| 946 | 946 | * Add a secondary domain to a virtual host |
| 947 | 947 | * |
| 948 | - * @param string $account Account name |
|
| 948 | + * @param AccountInterface $account Account name |
|
| 949 | 949 | * @param string $docroot Document root |
| 950 | 950 | * @param DomainInterface $domain Domain |
| 951 | 951 | * @return VhostInterface Virtual host |
@@ -1004,7 +1004,7 @@ discard block |
||
| 1004 | 1004 | /** |
| 1005 | 1005 | * Remove a secondary domain from a virtual host |
| 1006 | 1006 | * |
| 1007 | - * @param string $account Account name |
|
| 1007 | + * @param AccountInterface $account Account name |
|
| 1008 | 1008 | * @param string $docroot Document root |
| 1009 | 1009 | * @param DomainInterface $domain Domain |
| 1010 | 1010 | * @return VhostInterface Virtual host |
@@ -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 | /** |