diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 12:36:25 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 12:36:25 +0100 |
commit | 6bbea33133867c0fc7dc0ab1df74a38c30843141 (patch) | |
tree | 035b6310da06ca747733c36b5c09d0c97b886e22 /settings/Controller/AppSettingsController.php | |
parent | 26682b6936dcc127393655754500a1848d28c7d0 (diff) | |
download | nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.tar.gz nextcloud-server-6bbea33133867c0fc7dc0ab1df74a38c30843141.zip |
Simplify ternary operator statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings/Controller/AppSettingsController.php')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index f2a92b52f6d..cd34edf567c 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -205,7 +205,7 @@ class AppSettingsController extends Controller { $nextCloudVersionDependencies['nextcloud']['@attributes']['max-version'] = $nextCloudVersion->getMaximumVersion(); } $phpVersion = $versionParser->getVersion($app['releases'][0]['rawPhpVersionSpec']); - $existsLocally = (\OC_App::getAppPath($app['id']) !== false) ? true : false; + $existsLocally = \OC_App::getAppPath($app['id']) !== false; $phpDependencies = []; if($phpVersion->getMinimumVersion() !== '') { $phpDependencies['php']['@attributes']['min-version'] = $phpVersion->getMinimumVersion(); |