Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Pop the element off the end of array
<?php array_pop(array &$array): mixed
<?php             if (isset($tokens[$i]['nested_parenthesis']) === true) {

                $nestedParenthesis     = $tokens[$i]['nested_parenthesis'];

                $nestedOpenParenthesis = \array_keys($nestedParenthesis);

                $lastOpenParenthesis   = \array_pop($nestedOpenParenthesis);



                $previousNonEmpty = $phpcsFile->findPrevious(

                    Tokens::$emptyTokens,
<?php     {

        $class    = \get_class($this);

        $parts    = \explode('\\', $class);

        $sniff    = \array_pop($parts);

        $sniff    = \str_replace('UnitTest', '', $sniff);

        $category = \array_pop($parts);

        return self::STANDARD_NAME . '.' . $category . '.' . $sniff;
<?php         $parts    = \explode('\\', $class);

        $sniff    = \array_pop($parts);

        $sniff    = \str_replace('UnitTest', '', $sniff);

        $category = \array_pop($parts);

        return self::STANDARD_NAME . '.' . $category . '.' . $sniff;

    }