original_string: public function checkPhpFormatFlag(PoEntry $entry): void
      {
          if (preg_match(
              '#(?<!%)%(?:\d+\$)?[+-]?(?:[ 0]|\'.{1})?-?\d*(?:\.\d+)?[bcdeEufFgGosxX]#',
              $entry->get(PoTokens::MESSAGE) . $entry->get(PoTokens::PLURAL)
          )) {
              $entry->addFlag('php-format');
          }
      }
code: public function checkPhpFormatFlag(PoEntry $entry): void
      {
          if (preg_match(
              '#(?<!%)%(?:\d+\$)?[+-]?(?:[ 0]|\'.{1})?-?\d*(?:\.\d+)?[bcdeEufFgGosxX]#',
              $entry->get(PoTokens::MESSAGE) . $entry->get(PoTokens::PLURAL)
          )) {
              $entry->addFlag('php-format');
          }
      }
code_tokens: public function checkPhpFormatFlag ( PoEntry $ entry ) : void { if ( preg_match ( '#(?<!%)%(?:\d+\$)?[+-]?(?:[ 0]|\'.{1})?-?\d*(?:\.\d+)?[bcdeEufFgGosxX]#' , $ entry -> get ( PoTokens :: MESSAGE ) . $ entry -> get ( PoTokens :: PLURAL ) ) ) { $ entry -> addFlag ( 'php-format' ) ; } }
docstring: Check the supplied entry for sprintf directives and set php-format flag if found
  
  @param PoEntry $entry entry to check
  
  @return void
docstring_tokens: Check the supplied entry for sprintf directives and set php - format flag if found