/*
* 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.
/**
* {@inheritdoc}
*/
- public function getMatches(array $tokens, array $info = array())
+ public function getMatches(array $tokens, array $info = [])
{
$var = str_replace('$', '', $this->getInput($tokens));
$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;