src/Validation.php
private function pluckError(array $error) {
        $row = array_intersect_key(
            $error,
            ['field' => 1, 'error' => 1, 'code' => 1]
        );

        $row['message'] = $this->formatErrorMessage($error);
        return $row;
    }
private function pluckError(array $error) {
        $row = array_intersect_key(
            $error,
            ['field' => 1, 'error' => 1, 'code' => 1]
        );

        $row['message'] = $this->formatErrorMessage($error);
        return $row;
    }
private function pluckError ( array $ error ) { $ row = array_intersect_key ( $ error , [ 'field' => 1 , 'error' => 1 , 'code' => 1 ] ) ; $ row [ 'message' ] = $ this -> formatErrorMessage ( $ error ) ; return $ row ; }
Format a raw error row for consumption.

@param array $error The error to format.
@return array Returns the error stripped of default values.
Format a raw error row for consumption .