| Conditions | 9 | 
| Paths | 10 | 
| Total Lines | 44 | 
| Code Lines | 31 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 28 | public function process(NoticesContainerInterface $notices)  | 
            ||
| 29 |     { | 
            ||
| 30 | $this->setNotices($notices);  | 
            ||
| 31 | $notices = $this->getNotices();  | 
            ||
| 32 |         if ($notices->hasAttention()) { | 
            ||
| 33 |             foreach ($notices->getAttention() as $notice) { | 
            ||
| 34 | EE_Error::add_attention(  | 
            ||
| 35 | $notice->message(),  | 
            ||
| 36 | $notice->file(),  | 
            ||
| 37 | $notice->func(),  | 
            ||
| 38 | $notice->line()  | 
            ||
| 39 | );  | 
            ||
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 |         if ($notices->hasError()) { | 
            ||
| 43 |             $error_string = esc_html__('The following errors occurred:', 'event_espresso'); | 
            ||
| 44 |             foreach ($notices->getError() as $notice) { | 
            ||
| 45 |                 if ($this->getThrowExceptions()) { | 
            ||
| 46 | $error_string .= '<br />' . $notice->message();  | 
            ||
| 47 |                 } else { | 
            ||
| 48 | EE_Error::add_error(  | 
            ||
| 49 | $notice->message(),  | 
            ||
| 50 | $notice->file(),  | 
            ||
| 51 | $notice->func(),  | 
            ||
| 52 | $notice->line()  | 
            ||
| 53 | );  | 
            ||
| 54 | }  | 
            ||
| 55 | }  | 
            ||
| 56 |             if ($this->getThrowExceptions()) { | 
            ||
| 57 | throw new EE_Error($error_string);  | 
            ||
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 |         if ($notices->hasSuccess()) { | 
            ||
| 61 |             foreach ($notices->getSuccess() as $notice) { | 
            ||
| 62 | EE_Error::add_success(  | 
            ||
| 63 | $notice->message(),  | 
            ||
| 64 | $notice->file(),  | 
            ||
| 65 | $notice->func(),  | 
            ||
| 66 | $notice->line()  | 
            ||
| 67 | );  | 
            ||
| 68 | }  | 
            ||
| 69 | }  | 
            ||
| 70 | $this->clearNotices();  | 
            ||
| 71 | }  | 
            ||
| 72 | |||
| 75 |