$app = self::downloadApp($app);
}
- if($app!==false) {
+ if ($app !== false) {
// check if the app is compatible with this version of ownCloud
$info = self::getAppInfo($app);
- $version=OC_Util::getVersion();
- if(!self::isAppCompatible($version, $info)) {
+ $version = OC_Util::getVersion();
+ if (!self::isAppCompatible($version, $info)) {
throw new \Exception(
- $l->t('App \"%s\" can\'t be installed because it is not compatible with this version of ownCloud.',
+ $l->t('App "%s" cannot be installed because it is not compatible with this version of ownCloud.',
array($info['name'])
)
);
// check for required dependencies
$dependencyAnalyzer = new DependencyAnalyzer(new Platform($config), $l);
$missing = $dependencyAnalyzer->analyze($app);
- if(!empty($missing)) {
+ if (!empty($missing)) {
$missingMsg = join(PHP_EOL, $missing);
throw new \Exception(
- $l->t('App \"%s\" cannot be installed because the following dependencies are not fulfilled: %s',
+ $l->t('App "%s" cannot be installed because the following dependencies are not fulfilled: %s',
array($info['name'], $missingMsg)
)
);