@@ -110,7 +110,7 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @return bool |
|
113 | + * @return null|boolean |
|
114 | 114 | */ |
115 | 115 | protected function isLoggedIn() { |
116 | 116 | /** @var ConfigReader $configReader */ |
@@ -191,7 +191,7 @@ |
||
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
194 | - * @param $dir |
|
194 | + * @param string $dir |
|
195 | 195 | * @return bool |
196 | 196 | */ |
197 | 197 | public function rmdirr($dir) { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return array |
|
98 | + * @return string[] |
|
99 | 99 | */ |
100 | 100 | public function getUpdaterContent(){ |
101 | 101 | return [ |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | |
238 | 238 | /** |
239 | 239 | * @param string $filePostfix |
240 | - * @return array |
|
240 | + * @return string[] |
|
241 | 241 | */ |
242 | 242 | public function getPathtoConfigFiles($filePostfix = 'config.php'){ |
243 | 243 | // Only config.php for now |
@@ -160,6 +160,11 @@ |
||
160 | 160 | } |
161 | 161 | } |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $installedVersion |
|
165 | + * @param string $packageVersion |
|
166 | + * @param string[] $canBeUpgradedFrom |
|
167 | + */ |
|
163 | 168 | public function isUpgradeAllowed($installedVersion, $packageVersion, $canBeUpgradedFrom){ |
164 | 169 | if (version_compare($installedVersion, $packageVersion, '<=')){ |
165 | 170 | foreach ($canBeUpgradedFrom as $allowedPreviousVersion){ |