original_string: protected function doesArgumentNameMatchParam(ParamTag $param, ArgumentReflector $argument, BaseReflector $element)
      {
          $param_name = $param->getVariableName();
          if ($param_name == $argument->getName()) {
              return null;
          }
  
          if ($param_name == '') {
              $param->setVariableName($argument->getName());
  
              return null;
          }
  
          return new Error(
              LogLevel::ERROR,
              'PPC:ERR-50014',
              $argument->getLinenumber(),
              array($argument->getName(), $param_name, $element->getName())
          );
      }
code: protected function doesArgumentNameMatchParam(ParamTag $param, ArgumentReflector $argument, BaseReflector $element)
      {
          $param_name = $param->getVariableName();
          if ($param_name == $argument->getName()) {
              return null;
          }
  
          if ($param_name == '') {
              $param->setVariableName($argument->getName());
  
              return null;
          }
  
          return new Error(
              LogLevel::ERROR,
              'PPC:ERR-50014',
              $argument->getLinenumber(),
              array($argument->getName(), $param_name, $element->getName())
          );
      }
code_tokens: protected function doesArgumentNameMatchParam ( ParamTag $ param , ArgumentReflector $ argument , BaseReflector $ element ) { $ param_name = $ param -> getVariableName ( ) ; if ( $ param_name == $ argument -> getName ( ) ) { return null ; } if ( $ param_name == '' ) { $ param -> setVariableName ( $ argument -> getName ( ) ) ; return null ; } return new Error ( LogLevel :: ERROR , 'PPC:ERR-50014' , $ argument -> getLinenumber ( ) , array ( $ argument -> getName ( ) , $ param_name , $ element -> getName ( ) ) ) ; }
docstring: Validates whether the name of the argument is the same as that of the
  param tag.
  
  If the param tag does not contain a name then this method will set it
  based on the argument.
  
  @param ParamTag          $param    param to validate with.
  @param ArgumentReflector $argument Argument to validate against.
  @param BaseReflector     $element
  
  @return Error|null whether an issue occurred
docstring_tokens: Validates whether the name of the argument is the same as that of the param tag .