1 | <?php |
||
21 | class CompletePurchaseResponse extends AbstractResponse |
||
22 | { |
||
23 | /** |
||
24 | * @param RequestInterface $request |
||
25 | * @param array $data |
||
26 | */ |
||
27 | 5 | public function __construct(RequestInterface $request, $data) |
|
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 1 | public function isSuccessful() |
|
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * @return string |
||
57 | */ |
||
58 | 1 | public function getTransactionId() |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getTransactionReference() |
|
71 | |||
72 | 5 | public function getTransactionStatus() |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | * @return string |
||
80 | */ |
||
81 | 1 | public function getAmount() |
|
85 | |||
86 | /** |
||
87 | * Get payment time. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 1 | public function getTime() |
|
95 | |||
96 | /** |
||
97 | * Get test mode. |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | 3 | public function getTestMode() |
|
105 | |||
106 | /** |
||
107 | * Get payer info - name, username and id. |
||
108 | * |
||
109 | * @return string |
||
110 | */ |
||
111 | 1 | public function getPayer() |
|
115 | |||
116 | /** |
||
117 | * Get hash from request. |
||
118 | * |
||
119 | * @return string |
||
120 | */ |
||
121 | 4 | public function getHash() |
|
125 | |||
126 | /** |
||
127 | * Calculate hash to validate incoming IPN notifications. |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | 4 | public function calculateHash() |
|
166 | } |
||
167 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.