Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / Command / ListCommand / InterfaceEnumerator.php
similarity index 92%
rename from vendor/psy/psysh/src/Psy/Command/ListCommand/InterfaceEnumerator.php
rename to vendor/psy/psysh/src/Command/ListCommand/InterfaceEnumerator.php
index 91ba985d918d1d1428da031cebb92c3a4702ea87..dae0dace86a74d5c3db8a8814e935a7ad0853b12 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * This file is part of Psy Shell.
  *
- * (c) 2012-2017 Justin Hileman
+ * (c) 2012-2018 Justin Hileman
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
@@ -24,6 +24,7 @@ class InterfaceEnumerator extends Enumerator
     public function __construct(Presenter $presenter)
     {
         @trigger_error('InterfaceEnumerator is no longer used', E_USER_DEPRECATED);
+        parent::__construct($presenter);
     }
 
     /**
@@ -54,9 +55,9 @@ class InterfaceEnumerator extends Enumerator
             return;
         }
 
-        return array(
+        return [
             'Interfaces' => $interfaces,
-        );
+        ];
     }
 
     /**
@@ -71,15 +72,15 @@ class InterfaceEnumerator extends Enumerator
         natcasesort($interfaces);
 
         // My kingdom for a generator.
-        $ret = array();
+        $ret = [];
 
         foreach ($interfaces as $name) {
             if ($this->showItem($name)) {
-                $ret[$name] = array(
+                $ret[$name] = [
                     'name'  => $name,
                     'style' => self::IS_CLASS,
                     'value' => $this->presentSignature($name),
-                );
+                ];
             }
         }