src/ministruts/Request.php
public function isActionError($keys = null) {
        $errors = $this->getAttribute(ACTION_ERRORS_KEY);
        if (!$errors)
            return false;

        if (is_string($keys))
            $keys = [$keys];

        if (is_array($keys)) {
            foreach ($keys as $key) {
                if (key_exists($key, $errors)) return true;
            }
            if ($keys)
                return false;
            $keys = null;
        }

        if (is_null($keys))
            return true;
        throw new IllegalTypeException('Illegal type of parameter $keys: '.gettype($keys));
    }
public function isActionError($keys = null) {
        $errors = $this->getAttribute(ACTION_ERRORS_KEY);
        if (!$errors)
            return false;

        if (is_string($keys))
            $keys = [$keys];

        if (is_array($keys)) {
            foreach ($keys as $key) {
                if (key_exists($key, $errors)) return true;
            }
            if ($keys)
                return false;
            $keys = null;
        }

        if (is_null($keys))
            return true;
        throw new IllegalTypeException('Illegal type of parameter $keys: '.gettype($keys));
    }
public function isActionError ( $ keys = null ) { $ errors = $ this -> getAttribute ( ACTION_ERRORS_KEY ) ; if ( ! $ errors ) return false ; if ( is_string ( $ keys ) ) $ keys = [ $ keys ] ; if ( is_array ( $ keys ) ) { foreach ( $ keys as $ key ) { if ( key_exists ( $ key , $ errors ) ) return true ; } if ( $ keys ) return false ; $ keys = null ; } if ( is_null ( $ keys ) ) return true ; throw new IllegalTypeException ( 'Illegal type of parameter $keys: ' . gettype ( $ keys ) ) ; }
Whether an ActionError exists for one of the specified keys or for any key if no key was given.

@param  string|string[] $keys [optional] - error keys

@return bool
Whether an ActionError exists for one of the specified keys or for any key if no key was given .