/*
* 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 = [])
{
$input = $this->getInput($tokens);
}
$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(