Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Extension / Manager.php
index b0798f9659923a6e0084e52599e716d9344c0e9f..d83e8cad6d428a8197252a1e135aff1d4e5b122f 100644 (file)
@@ -98,10 +98,10 @@ class Manager
     }
 
     /**
-     * @param string $nameOnly
+     * @param boolean $nameOnly
      * @return array
      */
-    public function getList($nameOnly)
+    public function getList($nameOnly = false)
     {
         return $this->getExtensions($this->extension, $nameOnly);
     }
@@ -332,7 +332,7 @@ class Manager
         $module = $this->getModule($moduleName);
         $modulePath = $module->getPath();
         if ($moduleFile) {
-            $this->site->loadLegacyFile($modulePath . '/'. $moduleFile);
+            $this->site->loadLegacyFile($modulePath . '/' . $moduleFile);
         } else {
             $this->site->loadLegacyFile($modulePath . '/' . $module->getName() . '.module');
         }
@@ -352,7 +352,7 @@ class Manager
     {
         $module = $this->getModule($moduleName);
 
-        return $module->getPath() . '/src/Plugin/'.$pluginType;
+        return $module->getPath() . '/src/Plugin/' . $pluginType;
     }
 
     public function getDrupalExtension($type, $name)
@@ -369,9 +369,9 @@ class Manager
     public function checkExtensions(array $extensions, $type = 'module')
     {
         $checkextensions = [
-          'local_extensions' => [],
-          'drupal_extensions' => [],
-          'no_extensions' => [],
+            'local_extensions' => [],
+            'drupal_extensions' => [],
+            'no_extensions' => [],
         ];
 
         $local_extensions = $this->discoverExtension($type)