| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 30 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 58 | protected function deleteInvalidSubscriptions($response, $subscriptions)  | 
            ||
| 59 |     { | 
            ||
| 60 |         if (! is_array($response)) { | 
            ||
| 61 | return;  | 
            ||
| 62 | }  | 
            ||
| 63 | |||
| 64 |         foreach ($response as $index => $value) { | 
            ||
| 65 |             if (! $value['success'] && isset($subscriptions[$index])) { | 
            ||
| 66 | $subscriptions[$index]->delete();  | 
            ||
| 67 | }  | 
            ||
| 68 | }  | 
            ||
| 69 | }  | 
            ||
| 70 | }  | 
            ||
| 71 | 
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.