original_string: protected function stripOptionalFlag(&$selectors)
      {
          $optional = false;
  
          $selector = end($selectors);
          $part = end($selector);
  
          if ($part === ['!optional']) {
              array_pop($selectors[count($selectors) - 1]);
  
              $optional = true;
          }
  
          return $optional;
      }
code: protected function stripOptionalFlag(&$selectors)
      {
          $optional = false;
  
          $selector = end($selectors);
          $part = end($selector);
  
          if ($part === ['!optional']) {
              array_pop($selectors[count($selectors) - 1]);
  
              $optional = true;
          }
  
          return $optional;
      }
code_tokens: protected function stripOptionalFlag ( & $ selectors ) { $ optional = false ; $ selector = end ( $ selectors ) ; $ part = end ( $ selector ) ; if ( $ part === [ '!optional' ] ) { array_pop ( $ selectors [ count ( $ selectors ) - 1 ] ) ; $ optional = true ; } return $ optional ; }
docstring: Strip optional flag from selector list
  
  @param array $selectors
  
  @return string
docstring_tokens: Strip optional flag from selector list