public function dump()
    {
        $message = '';
        if (!empty($this->warnings)) {
            uasort(
                $this->warnings,
                function ($a, $b) {
                    if (count($a) === count($b)) {
                        return 0;
                    }

                    return (count($a) > count($b)) ? -1 : 1;
                }
            );

            foreach ($this->warnings as $message => $warnings) {
                $count = count($warnings);
                print_r(sprintf("\n\033[0;30m\033[43m %sx: %s\033[0m\n", $count, $message));
            }
        }

        return $message;
    }
public function dump()
    {
        $message = '';
        if (!empty($this->warnings)) {
            uasort(
                $this->warnings,
                function ($a, $b) {
                    if (count($a) === count($b)) {
                        return 0;
                    }

                    return (count($a) > count($b)) ? -1 : 1;
                }
            );

            foreach ($this->warnings as $message => $warnings) {
                $count = count($warnings);
                print_r(sprintf("\n\033[0;30m\033[43m %sx: %s\033[0m\n", $count, $message));
            }
        }

        return $message;
    }
public function dump ( ) { $ message = '' ; if ( ! empty ( $ this -> warnings ) ) { uasort ( $ this -> warnings , function ( $ a , $ b ) { if ( count ( $ a ) === count ( $ b ) ) { return 0 ; } return ( count ( $ a ) > count ( $ b ) ) ? - 1 : 1 ; } ) ; foreach ( $ this -> warnings as $ message => $ warnings ) { $ count = count ( $ warnings ) ; print_r ( sprintf ( "\n\033[0;30m\033[43m %sx: %s\033[0m\n" , $ count , $ message ) ) ; } } return $ message ; }
Dump all warning ordered by amount of times triggered
Dump all warning ordered by amount of times triggered