1 | <?php |
||
11 | class MinFraudAPIConnector extends Object |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * REQUIRED! |
||
16 | * @var String |
||
17 | */ |
||
18 | private static $account_id = ""; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * REQUIRED! |
||
23 | * @var String |
||
24 | */ |
||
25 | private static $license_key = ""; |
||
26 | |||
27 | |||
28 | public function getConnection() |
||
36 | |||
37 | /** |
||
38 | * Creates the `MinFraud` object and builds the request with all the data available in the order |
||
39 | * |
||
40 | * @param Order $order - the order to be assessed |
||
41 | * |
||
42 | * @return MinFraud |
||
43 | */ |
||
44 | public function buildRequest($order) |
||
138 | |||
139 | |||
140 | /** |
||
141 | * minFraud Score provides the risk assessment of the transaction with the riskScore and the IP address risk as expressed in the IP Risk Score. |
||
142 | * Use minFraud Score to assess risk with these data points or use it as part of your own risk modeling. |
||
143 | * |
||
144 | * @param Order $order - the order to be assessed |
||
145 | * |
||
146 | * @return MinFraud\Model\Score minFraud Score model object |
||
147 | */ |
||
148 | public function getScore($order) |
||
153 | |||
154 | /** |
||
155 | * minFraud Insights provides a wide range of data points in addition to the riskScore and the IP Risk Score. |
||
156 | * |
||
157 | * Use minFraud Insights to score transactions and to get the data points you need for manual review, advanced rule creation, and internal risk modeling. |
||
158 | * |
||
159 | * @param Order $order - the order to be assessed |
||
160 | * |
||
161 | * @return MinFraud\Model\Insights minFraud Insights model object |
||
162 | */ |
||
163 | public function getInsights($order) |
||
168 | |||
169 | /** |
||
170 | * minFraud Factors provides detail on the specific components used to determine the riskScore. These subscores provide insight into how we arrived at a riskScore for a given transaction. |
||
171 | * |
||
172 | * Such detail on the factors contributing to the riskScore help you better assess the risk of a transaction as part of manual review. Use subscores as parameters in rules to disposition transactions, or as part of internal risk modeling. |
||
173 | * |
||
174 | * In addition to the subscores, minFraud Factors includes all the data of minFraud Insights. |
||
175 | * |
||
176 | * @param Order $order - the order to be assessed |
||
177 | * |
||
178 | * @return MinFraud\Model\Factors minFraud Factors model object |
||
179 | */ |
||
180 | public function getFactors($order) |
||
185 | } |
||
186 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.