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');
        }
    }
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');
        }
    }
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' ) ; } }
Check the supplied entry for sprintf directives and set php-format flag if found

@param PoEntry $entry entry to check

@return void
Check the supplied entry for sprintf directives and set php - format flag if found