Completed
Push — master ( e2a184...b6fd99 )
by Joschi
04:50
created
src/Admin/Ports/Facade/Domain.php 1 patch
Doc Comments   -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Admin/Infrastructure/Strategy/DoctrineStorageAdapterStrategy.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Admin/Infrastructure/Service/DirectoryService.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Admin/Domain/Vhost/Vhost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Admin/Infrastructure/Factory/PhpFpmServiceFactory.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,6 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Admin/Infrastructure/Service/AbstractShellService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Admin/Infrastructure/App.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -228,12 +228,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.