@@ -163,12 +163,12 @@  | 
                                                    ||
| 163 | 163 | return self::$config;  | 
                                                        
| 164 | 164 | }  | 
                                                        
| 165 | 165 |          $keyParts = explode('.', $key); | 
                                                        
| 166 | - $config =& self::$config;  | 
                                                        |
| 166 | + $config = & self::$config;  | 
                                                        |
| 167 | 167 |          foreach ($keyParts as $keyPart) { | 
                                                        
| 168 | 168 |              if (!array_key_exists($keyPart, $config)) { | 
                                                        
| 169 | 169 |                  throw new \InvalidArgumentException(sprintf('Invalid config key "%s"', $key), 1466179561); | 
                                                        
| 170 | 170 | }  | 
                                                        
| 171 | - $config =& $config[$keyPart];  | 
                                                        |
| 171 | + $config = & $config[$keyPart];  | 
                                                        |
| 172 | 172 | }  | 
                                                        
| 173 | 173 | return $config;  | 
                                                        
| 174 | 174 | }  | 
                                                        
@@ -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)  | 
                                                        
@@ -834,7 +834,7 @@ discard block  | 
                                                    ||
| 834 | 834 | /**  | 
                                                        
| 835 | 835 | * Configure a protocol based port for a virtual host  | 
                                                        
| 836 | 836 | *  | 
                                                        
| 837 | - * @param string $account Account name  | 
                                                        |
| 837 | + * @param AccountInterface $account Account name  | 
                                                        |
| 838 | 838 | * @param string $docroot Document root  | 
                                                        
| 839 | 839 | * @param int $protocol Protocol  | 
                                                        
| 840 | 840 | * @param int $port Port  | 
                                                        
@@ -874,7 +874,7 @@ discard block  | 
                                                    ||
| 874 | 874 | /**  | 
                                                        
| 875 | 875 | * Add a secondary domain to a virtual host  | 
                                                        
| 876 | 876 | *  | 
                                                        
| 877 | - * @param string $account Account name  | 
                                                        |
| 877 | + * @param AccountInterface $account Account name  | 
                                                        |
| 878 | 878 | * @param string $docroot Document root  | 
                                                        
| 879 | 879 | * @param DomainInterface $domain Domain  | 
                                                        
| 880 | 880 | * @return VhostInterface Virtual host  | 
                                                        
@@ -932,7 +932,7 @@ discard block  | 
                                                    ||
| 932 | 932 | /**  | 
                                                        
| 933 | 933 | * Remove a secondary domain from a virtual host  | 
                                                        
| 934 | 934 | *  | 
                                                        
| 935 | - * @param string $account Account name  | 
                                                        |
| 935 | + * @param AccountInterface $account Account name  | 
                                                        |
| 936 | 936 | * @param string $docroot Document root  | 
                                                        
| 937 | 937 | * @param DomainInterface $domain Domain  | 
                                                        
| 938 | 938 | * @return VhostInterface Virtual host  | 
                                                        
@@ -100,7 +100,6 @@  | 
                                                    ||
| 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 | }  | 
                                                        
@@ -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)  | 
                                                        
@@ -87,7 +87,7 @@  | 
                                                    ||
| 87 | 87 | public function __construct(  | 
                                                        
| 88 | 88 | PersistenceAdapterFactoryInterface $persistenceAdapterFactory,  | 
                                                        
| 89 | 89 | ServiceServiceInterface $serviceService  | 
                                                        
| 90 | -    ){ | 
                                                        |
| 90 | +    ) { | 
                                                        |
| 91 | 91 | $this->persistenceAdapterFactory = $persistenceAdapterFactory;  | 
                                                        
| 92 | 92 | $this->serviceService = $serviceService;  | 
                                                        
| 93 | 93 | }  | 
                                                        
@@ -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  |