projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
vendor
/
psy
/
psysh
/
src
/
TabCompletion
/
Matcher
/
KeywordsMatcher.php
diff --git
a/vendor/psy/psysh/src/TabCompletion/Matcher/KeywordsMatcher.php
b/vendor/psy/psysh/src/TabCompletion/Matcher/KeywordsMatcher.php
index b576f82bb28c0dfd664a15ebc7e0dc4be5a408a2..9d0deeeea0a5809e470dd26eb08a4a11fc00ee5c 100644
(file)
--- a/
vendor/psy/psysh/src/TabCompletion/Matcher/KeywordsMatcher.php
+++ b/
vendor/psy/psysh/src/TabCompletion/Matcher/KeywordsMatcher.php
@@
-48,7
+48,7
@@
class KeywordsMatcher extends AbstractMatcher
*/
public function isKeyword($keyword)
{
*/
public function isKeyword($keyword)
{
- return in_array($keyword, $this->keywords);
+ return
\
in_array($keyword, $this->keywords);
}
/**
}
/**
@@
-58,7
+58,7
@@
class KeywordsMatcher extends AbstractMatcher
{
$input = $this->getInput($tokens);
{
$input = $this->getInput($tokens);
- return array_filter($this->keywords, function ($keyword) use ($input) {
+ return
\
array_filter($this->keywords, function ($keyword) use ($input) {
return AbstractMatcher::startsWith($input, $keyword);
});
}
return AbstractMatcher::startsWith($input, $keyword);
});
}
@@
-68,8
+68,8
@@
class KeywordsMatcher extends AbstractMatcher
*/
public function hasMatched(array $tokens)
{
*/
public function hasMatched(array $tokens)
{
- $token = array_pop($tokens);
- $prevToken = array_pop($tokens);
+ $token =
\
array_pop($tokens);
+ $prevToken =
\
array_pop($tokens);
switch (true) {
case self::hasToken([self::T_OPEN_TAG, self::T_VARIABLE], $token):
switch (true) {
case self::hasToken([self::T_OPEN_TAG, self::T_VARIABLE], $token):