| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 2 | 
| CRAP Score | 4 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 55 | 	public static function get_transaction_service( $transaction ) { | 
            ||
| 56 | 		if ( \property_exists( $transaction, 'Services' ) ) { | 
            ||
| 57 | 8 | 			foreach ( $transaction->Services as $service ) { | 
            |
| 58 | 8 | 				if ( ! \property_exists( $service, 'Name' ) ) { | 
            |
| 59 | continue;  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 62 | return $service->Name;  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 | |||
| 66 | return null;  | 
            ||
| 67 | }  | 
            ||
| 69 |