| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function __invoke() { |
||
| 38 | foreach ( $this->events as $event ) { |
||
| 39 | try { |
||
| 40 | $event->run(); |
||
| 41 | } catch ( \Throwable $th ) { |
||
| 42 | // If caught on Activation, throw Plugin_State_Exception |
||
| 43 | if ( is_a( $event, Activation::class ) ) { |
||
| 44 | throw Plugin_State_Exception::error_running_state_change_event( $event, $th ); |
||
| 45 | } |
||
| 46 | |||
| 47 | continue; |
||
| 48 | } |
||
| 52 |