| 1 | <?php  | 
            ||
| 16 | class TicketPayment extends DataExtension  | 
            ||
| 17 | { | 
            ||
| 18 | private static $has_one = array(  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 19 | 'Reservation' => 'Broarm\EventTickets\Reservation',  | 
            ||
| 20 | );  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Fix issue manual gateway doesn't call onCaptured hook  | 
            ||
| 24 | *  | 
            ||
| 25 | * @param ServiceResponse $response  | 
            ||
| 26 | */  | 
            ||
| 27 | public function onAuthorized(ServiceResponse $response)  | 
            ||
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * Complete the order on a successful transaction  | 
            ||
| 38 | *  | 
            ||
| 39 | * @param ServiceResponse $response  | 
            ||
| 40 | *  | 
            ||
| 41 | * @throws \ValidationException  | 
            ||
| 42 | */  | 
            ||
| 43 | public function onCaptured(ServiceResponse $response)  | 
            ||
| 50 | }  | 
            ||
| 51 | 
This check marks private properties in classes that are never used. Those properties can be removed.