Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / psy / psysh / src / TabCompletion / Matcher / VariablesMatcher.php
similarity index 85%
rename from vendor/psy/psysh/src/Psy/TabCompletion/Matcher/VariablesMatcher.php
rename to vendor/psy/psysh/src/TabCompletion/Matcher/VariablesMatcher.php
index ee3b27cd5c576a29de06286f4cb78ee23c785ebe..2868525934109678686db62f1aef61a398c1d6c0 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.
@@ -23,7 +23,7 @@ class VariablesMatcher extends AbstractContextAwareMatcher
     /**
      * {@inheritdoc}
      */
-    public function getMatches(array $tokens, array $info = array())
+    public function getMatches(array $tokens, array $info = [])
     {
         $var = str_replace('$', '', $this->getInput($tokens));
 
@@ -40,7 +40,7 @@ class VariablesMatcher extends AbstractContextAwareMatcher
         $token = array_pop($tokens);
 
         switch (true) {
-            case self::hasToken(array(self::T_OPEN_TAG, self::T_VARIABLE), $token):
+            case self::hasToken([self::T_OPEN_TAG, self::T_VARIABLE], $token):
             case is_string($token) && $token === '$':
             case self::isOperator($token):
                 return true;