Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / Command / ListCommand / GlobalVariableEnumerator.php
similarity index 91%
rename from vendor/psy/psysh/src/Psy/Command/ListCommand/GlobalVariableEnumerator.php
rename to vendor/psy/psysh/src/Command/ListCommand/GlobalVariableEnumerator.php
index d957e9f52ed91a979bb6a50da66fe0d0f26bbf28..8e58af8b0e31f744dcb52bcf4c9461403a465c00 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.
@@ -39,9 +39,9 @@ class GlobalVariableEnumerator extends Enumerator
             return;
         }
 
-        return array(
+        return [
             'Global Variables' => $globals,
-        );
+        ];
     }
 
     /**
@@ -56,7 +56,7 @@ class GlobalVariableEnumerator extends Enumerator
         $names = array_keys($GLOBALS);
         natcasesort($names);
 
-        $ret = array();
+        $ret = [];
         foreach ($names as $name) {
             $ret[$name] = $GLOBALS[$name];
         }
@@ -74,16 +74,16 @@ class GlobalVariableEnumerator extends Enumerator
     protected function prepareGlobals($globals)
     {
         // My kingdom for a generator.
-        $ret = array();
+        $ret = [];
 
         foreach ($globals as $name => $value) {
             if ($this->showItem($name)) {
                 $fname = '$' . $name;
-                $ret[$fname] = array(
+                $ret[$fname] = [
                     'name'  => $fname,
                     'style' => self::IS_GLOBAL,
                     'value' => $this->presentRef($value),
-                );
+                ];
             }
         }