Security update for Core, with self-updated composer
[yaffs-website] / vendor / psy / psysh / src / Psy / TabCompletion / Matcher / MongoDatabaseMatcher.php
index 31aef898d1b2432cd0904adfbf156d53ac82cf58..8494067bf9a7d625f71fbd70e4c1bc97961b2f74 100644 (file)
@@ -33,8 +33,8 @@ class MongoDatabaseMatcher extends AbstractContextAwareMatcher
             array_pop($tokens);
         }
         $objectToken = array_pop($tokens);
-        $objectName = str_replace('$', '', $objectToken[1]);
-        $object = $this->getVariable($objectName);
+        $objectName  = str_replace('$', '', $objectToken[1]);
+        $object      = $this->getVariable($objectName);
 
         if (!$object instanceof \MongoDB) {
             return array();
@@ -53,7 +53,7 @@ class MongoDatabaseMatcher extends AbstractContextAwareMatcher
      */
     public function hasMatched(array $tokens)
     {
-        $token = array_pop($tokens);
+        $token     = array_pop($tokens);
         $prevToken = array_pop($tokens);
 
         switch (true) {