original_string: public static function checkIsRequired($doc)
      {
          $required = false;
          if (false !== preg_match('/@required/', $doc, $matches)) {
              $required = (bool)count($matches);
          }
          return $required;
      }
code: public static function checkIsRequired($doc)
      {
          $required = false;
          if (false !== preg_match('/@required/', $doc, $matches)) {
              $required = (bool)count($matches);
          }
          return $required;
      }
code_tokens: public static function checkIsRequired ( $ doc ) { $ required = false ; if ( false !== preg_match ( '/@required/' , $ doc , $ matches ) ) { $ required = ( bool ) count ( $ matches ) ; } return $ required ; }
docstring: Method extract if a variable is required
  @param $doc
  @return null|string
docstring_tokens: Method extract if a variable is required