Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / ObjectAttributesMatcher.php
similarity index 90%
rename from vendor/psy/psysh/src/Psy/TabCompletion/Matcher/ObjectAttributesMatcher.php
rename to vendor/psy/psysh/src/TabCompletion/Matcher/ObjectAttributesMatcher.php
index 668f3685d6d37b09383ed22881e820ce4ca95f77..bed365a8208ce640e4888769b2205ef62f365009 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.
@@ -26,7 +26,7 @@ class ObjectAttributesMatcher extends AbstractContextAwareMatcher
     /**
      * {@inheritdoc}
      */
-    public function getMatches(array $tokens, array $info = array())
+    public function getMatches(array $tokens, array $info = [])
     {
         $input = $this->getInput($tokens);
 
@@ -37,18 +37,18 @@ class ObjectAttributesMatcher extends AbstractContextAwareMatcher
         }
         $objectToken = array_pop($tokens);
         if (!is_array($objectToken)) {
-            return array();
+            return [];
         }
         $objectName = str_replace('$', '', $objectToken[1]);
 
         try {
             $object = $this->getVariable($objectName);
         } catch (InvalidArgumentException $e) {
-            return array();
+            return [];
         }
 
         if (!is_object($object)) {
-            return array();
+            return [];
         }
 
         return array_filter(