]> git.agnieray.net Git - galette.git/blobdiff - galette/lib/Galette/Core/Plugins.php
Scrutinizer Auto-Fixes (#59)
[galette.git] / galette / lib / Galette / Core / Plugins.php
index ec93e147ab260f0459cca2eb8c9b85a4c776c3bd..db588ca0dc57671483d89d9ce371819bca378335 100644 (file)
@@ -120,7 +120,7 @@ class Plugins
                             Analog::WARNING
                         );
                         $this->setDisabled(self::DISABLED_MISS);
-                    } elseif (!file_exists($full_entry.'/_disabled')) {
+                    } elseif (!file_exists($full_entry . '/_disabled')) {
                         include $full_entry . '/_define.php';
                         $this->id = null;
                         $this->mroot = null;
@@ -255,8 +255,7 @@ class Plugins
                     'acls'          => $acls,
                     'date'          => $release_date,
                     'priority'      => $priority === null ?
-                                         1000 :
-                                         (integer) $priority,
+                                         1000 : (integer)$priority,
                     'root_writable' => is_writable($this->mroot),
                     'route'         => $route
                 );
@@ -313,7 +312,7 @@ class Plugins
             throw new \Exception(_T("Cannot activate plugin."));
         }
 
-        if (@unlink($this->disabled[$id]['root'].'/_disabled') === false) {
+        if (@unlink($this->disabled[$id]['root'] . '/_disabled') === false) {
             throw new \Exception(_T("Cannot activate plugin."));
         }
     }