Skip to content

Commit bc72c22

Browse files
committed
Extension Manager: style fixes
1 parent ea9e07c commit bc72c22

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/plugins/extension/Installer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function uninstall(Extension $extension)
210210
self::ensurePermissions($extension);
211211

212212
$dependants = $extension->getDependants();
213-
if($dependants !== []) {
213+
if ($dependants !== []) {
214214
throw new Exception('error_uninstall_dependants', [$extension->getId(), implode(', ', $dependants)]);
215215
}
216216

@@ -254,7 +254,7 @@ public function disable(Extension $extension)
254254
if ($extension->isProtected()) throw new Exception('error_disable_protected', [$extension->getId()]);
255255

256256
$dependants = $extension->getDependants();
257-
if($dependants !== []) {
257+
if ($dependants !== []) {
258258
throw new Exception('error_disable_dependants', [$extension->getId(), implode(', ', $dependants)]);
259259
}
260260

lib/plugins/extension/Repository.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,14 +264,13 @@ protected function parseQuery($q)
264264
}
265265
// extract types
266266
if (preg_match_all('/(^|\s)(type:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
267-
268267
$typevalues = array_flip(Extension::COMPONENT_TYPES);
269268
$typevalues = array_change_key_case($typevalues, CASE_LOWER);
270269

271270
foreach ($matches as $m) {
272271
$q = str_replace($m[2], '', $q);
273272
$t = strtolower($m[3]);
274-
if(isset($typevalues[$t])) {
273+
if (isset($typevalues[$t])) {
275274
$parameters['type'] += $typevalues[$t];
276275
}
277276
}

0 commit comments

Comments
 (0)