| Conditions | 1 |
| Paths | 1 |
| Total Lines | 283 |
| Code Lines | 163 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.
For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.
Commonly applied refactorings include:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 20 | function pronamic_pay_gateway_integrations() { |
||
| 21 | return array( |
||
| 22 | // ABN AMRO iDEAL Easy. |
||
| 23 | array( |
||
| 24 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandardEasy\Integration', |
||
| 25 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 26 | $integration->set_id( 'abnamro-ideal-easy' ); |
||
| 27 | $integration->set_name( 'ABN AMRO - iDEAL Easy' ); |
||
| 28 | |||
| 29 | $integration->provider = 'abnamro'; |
||
| 30 | $integration->url = 'https://internetkassa.abnamro.nl/'; |
||
| 31 | $integration->product_url = 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/'; |
||
| 32 | $integration->dashboard_url = 'https://internetkassa.abnamro.nl/'; |
||
| 33 | }, |
||
| 34 | ), |
||
| 35 | |||
| 36 | // ABN AMRO - iDEAL Only Kassa. |
||
| 37 | array( |
||
| 38 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard\Integration', |
||
| 39 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 40 | $integration->set_id( 'abnamro-ideal-only-kassa' ); |
||
| 41 | $integration->set_name( 'ABN AMRO - iDEAL Only Kassa' ); |
||
| 42 | |||
| 43 | $integration->provider = 'abnamro'; |
||
| 44 | $integration->url = 'https://internetkassa.abnamro.nl/'; |
||
| 45 | $integration->product_url = 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/'; |
||
| 46 | $integration->dashboard_url = 'https://internetkassa.abnamro.nl/'; |
||
| 47 | }, |
||
| 48 | ), |
||
| 49 | |||
| 50 | // ABN AMRO - Internetkassa. |
||
| 51 | array( |
||
| 52 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard\Integration', |
||
| 53 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 54 | $integration->set_id( 'abnamro-internetkassa' ); |
||
| 55 | $integration->set_name( 'ABN AMRO - Internetkassa' ); |
||
| 56 | |||
| 57 | $integration->provider = 'abnamro'; |
||
| 58 | $integration->url = 'https://internetkassa.abnamro.nl/'; |
||
| 59 | $integration->product_url = 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/'; |
||
| 60 | $integration->dashboard_url = 'https://internetkassa.abnamro.nl/'; |
||
| 61 | }, |
||
| 62 | ), |
||
| 63 | |||
| 64 | // ABN AMRO - iDEAL Zelfbouw (v3). |
||
| 65 | array( |
||
| 66 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 67 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 68 | $integration->set_id( 'abnamro-ideal-zelfbouw-v3' ); |
||
| 69 | $integration->set_name( 'ABN AMRO - iDEAL Zelfbouw (v3)' ); |
||
| 70 | |||
| 71 | $integration->provider = 'abnamro'; |
||
| 72 | $integration->url = 'https://abnamro.ideal-payment.de/'; |
||
| 73 | $integration->product_url = 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/'; |
||
| 74 | $integration->dashboard_url = array( |
||
| 75 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
||
| 76 | 'live' => 'https://abnamro.ideal-payment.de/', |
||
| 77 | ); |
||
| 78 | }, |
||
| 79 | ), |
||
| 80 | |||
| 81 | // Buckaroo. |
||
| 82 | '\Pronamic\WordPress\Pay\Gateways\Buckaroo\Integration', |
||
| 83 | |||
| 84 | // Deutsche Bank - iDEAL via Ogone. |
||
| 85 | array( |
||
| 86 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandardEasy\Integration', |
||
| 87 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 88 | $integration->set_id( 'deutschebank-ideal-via-ogone' ); |
||
| 89 | $integration->set_name( 'Deutsche Bank - iDEAL via Ogone' ); |
||
| 90 | |||
| 91 | $integration->provider = 'deutschebank'; |
||
| 92 | $integration->product_url = 'https://www.deutschebank.nl/nl/content/producten_en_services_commercial_banking_cash_management_betalen_ideal.html'; |
||
| 93 | }, |
||
| 94 | ), |
||
| 95 | |||
| 96 | // Deutsche Bank - iDEAL Expert (v3). |
||
| 97 | array( |
||
| 98 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 99 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 100 | $integration->set_id( 'deutschebank-ideal-expert-v3' ); |
||
| 101 | $integration->set_name( 'Deutsche Bank - iDEAL Expert (v3)' ); |
||
| 102 | |||
| 103 | $integration->provider = 'deutschebank'; |
||
| 104 | $integration->product_url = 'https://www.deutschebank.nl/nl/content/producten_en_services_commercial_banking_cash_management_betalen_ideal.html'; |
||
| 105 | $integration->dashboard_url = array( |
||
| 106 | 'test' => 'https://myideal.test.db.com/', |
||
| 107 | 'live' => 'https://myideal.db.com/', |
||
| 108 | ); |
||
| 109 | }, |
||
| 110 | ), |
||
| 111 | |||
| 112 | // EMS - eCommerce. |
||
| 113 | '\Pronamic\WordPress\Pay\Gateways\EMS\ECommerce\Integration', |
||
| 114 | |||
| 115 | // Fibonacci ORANGE. |
||
| 116 | array( |
||
| 117 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Icepay\Integration', |
||
| 118 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 119 | $integration->set_id( 'fibonacciorange' ); |
||
| 120 | $integration->set_name( 'Fibonacci ORANGE' ); |
||
| 121 | |||
| 122 | $integration->provider = 'fibonacciorange'; |
||
| 123 | $integration->product_url = 'http://www.fibonacciorange.nl/'; |
||
| 124 | }, |
||
| 125 | ), |
||
| 126 | |||
| 127 | // ICEPAY. |
||
| 128 | '\Pronamic\WordPress\Pay\Gateways\Icepay\Integration', |
||
| 129 | |||
| 130 | // iDEAL Simulator - iDEAL Lite / Basic. |
||
| 131 | array( |
||
| 132 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration', |
||
| 133 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 134 | $integration->set_id( 'ideal-simulator-ideal-basic' ); |
||
| 135 | $integration->set_name( 'iDEAL Simulator - iDEAL Lite / Basic' ); |
||
| 136 | |||
| 137 | $integration->provider = 'ideal-simulator'; |
||
| 138 | }, |
||
| 139 | ), |
||
| 140 | |||
| 141 | // iDEAL Simulator - iDEAL Professional / Advanced / Zelfbouw (v3). |
||
| 142 | array( |
||
| 143 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 144 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 145 | $integration->set_id( 'ideal-simulator-ideal-advanced-v3' ); |
||
| 146 | $integration->set_name( 'iDEAL Simulator - iDEAL Professional / Advanced / Zelfbouw (v3)' ); |
||
| 147 | |||
| 148 | $integration->provider = 'ideal-simulator'; |
||
| 149 | $integration->product_url = 'https://www.ideal-checkout.nl/support/ideal-simulator'; |
||
| 150 | }, |
||
| 151 | ), |
||
| 152 | |||
| 153 | // ING - iDEAL Basic. |
||
| 154 | array( |
||
| 155 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration', |
||
| 156 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 157 | $integration->set_id( 'ing-ideal-basic' ); |
||
| 158 | $integration->set_name( 'ING - iDEAL Basic' ); |
||
| 159 | |||
| 160 | $integration->provider = 'ing'; |
||
| 161 | $integration->product_url = 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/'; |
||
| 162 | $integration->dashboard_url = array( |
||
| 163 | 'test' => 'https://idealtest.secure-ing.com/', |
||
| 164 | 'live' => 'https://ideal.secure-ing.com/', |
||
| 165 | ); |
||
| 166 | }, |
||
| 167 | ), |
||
| 168 | |||
| 169 | // ING - iDEAL Advanced (v3). |
||
| 170 | array( |
||
| 171 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 172 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 173 | $integration->set_id( 'ing-ideal-advanced-v3' ); |
||
| 174 | $integration->set_name( 'ING - iDEAL Advanced (v3)' ); |
||
| 175 | |||
| 176 | $integration->provider = 'ing'; |
||
| 177 | $integration->product_url = 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/'; |
||
| 178 | $integration->dashboard_url = array( |
||
| 179 | 'test' => 'https://idealtest.secure-ing.com/', |
||
| 180 | 'live' => 'https://ideal.secure-ing.com/', |
||
| 181 | ); |
||
| 182 | }, |
||
| 183 | ), |
||
| 184 | |||
| 185 | // ING - Kassa Compleet. |
||
| 186 | '\Pronamic\WordPress\Pay\Gateways\ING\KassaCompleet\Integration', |
||
| 187 | |||
| 188 | // Mollie. |
||
| 189 | '\Pronamic\WordPress\Pay\Gateways\Mollie\Integration', |
||
| 190 | |||
| 191 | // Mollie - iDEAL. |
||
| 192 | '\Pronamic\WordPress\Pay\Gateways\MollieIDeal\Integration', |
||
| 193 | |||
| 194 | // Mollie - iDEAL Basic. |
||
| 195 | array( |
||
| 196 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration', |
||
| 197 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 198 | $integration->set_id( 'mollie-ideal-basic' ); |
||
| 199 | $integration->set_name( 'Mollie - iDEAL Basic' ); |
||
| 200 | |||
| 201 | $integration->provider = 'mollie'; |
||
| 202 | $integration->dashboard_url = 'http://www.mollie.nl/beheer/'; |
||
| 203 | $integration->deprecated = true; |
||
| 204 | }, |
||
| 205 | ), |
||
| 206 | |||
| 207 | // MultiSafePay - Connect. |
||
| 208 | '\Pronamic\WordPress\Pay\Gateways\MultiSafepay\Connect\Integration', |
||
| 209 | |||
| 210 | // Nocks. |
||
| 211 | '\Pronamic\WordPress\Pay\Gateways\Nocks\Integration', |
||
| 212 | |||
| 213 | // Ingenico - DirectLink. |
||
| 214 | '\Pronamic\WordPress\Pay\Gateways\Ingenico\DirectLink\Integration', |
||
| 215 | |||
| 216 | // Ingenico - OrderStandard. |
||
| 217 | '\Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard\Integration', |
||
| 218 | |||
| 219 | // Rabobank - OmniKassa. |
||
| 220 | '\Pronamic\WordPress\Pay\Gateways\OmniKassa\Integration', |
||
| 221 | |||
| 222 | // Rabobank - OmniKassa 2.0. |
||
| 223 | '\Pronamic\WordPress\Pay\Gateways\OmniKassa2\Integration', |
||
| 224 | |||
| 225 | // Pay.nl. |
||
| 226 | '\Pronamic\WordPress\Pay\Gateways\PayNL\Integration', |
||
| 227 | |||
| 228 | // Paytor. |
||
| 229 | array( |
||
| 230 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Mollie\Integration', |
||
| 231 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 232 | $integration->set_id( 'paytor' ); |
||
| 233 | $integration->set_name( 'Paytor' ); |
||
| 234 | |||
| 235 | $integration->provider = 'paytor'; |
||
| 236 | $integration->url = 'http://paytor.com/'; |
||
| 237 | $integration->product_url = 'http://paytor.com/'; |
||
| 238 | }, |
||
| 239 | ), |
||
| 240 | |||
| 241 | // Postcode iDEAL. |
||
| 242 | array( |
||
| 243 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 244 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 245 | $integration->set_id( 'postcode-ideal' ); |
||
| 246 | $integration->set_name( 'Postcode iDEAL' ); |
||
| 247 | |||
| 248 | $integration->provider = 'postcode.nl'; |
||
| 249 | $integration->product_url = 'https://services.postcode.nl/ideal'; |
||
| 250 | $integration->dashboard_url = 'https://services.postcode.nl/ideal'; |
||
| 251 | }, |
||
| 252 | ), |
||
| 253 | |||
| 254 | // Qantani (new platform). |
||
| 255 | array( |
||
| 256 | 'class' => '\Pronamic\WordPress\Pay\Gateways\Mollie\Integration', |
||
| 257 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 258 | $integration->set_id( 'qantani-mollie' ); |
||
| 259 | $integration->set_name( __( 'Qantani (new platform)', 'pronamic_ideal' ) ); |
||
| 260 | |||
| 261 | $integration->provider = 'qantani'; |
||
| 262 | $integration->url = 'https://www.qantani.com/'; |
||
| 263 | $integration->product_url = 'https://www.qantani.com/tarieven/'; |
||
| 264 | $integration->dashboard_url = 'https://www.qantani.eu/'; |
||
| 265 | }, |
||
| 266 | ), |
||
| 267 | |||
| 268 | // Rabobank - iDEAL Professional (v3). |
||
| 269 | array( |
||
| 270 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration', |
||
| 271 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 272 | $integration->set_id( 'rabobank-ideal-professional-v3' ); |
||
| 273 | $integration->set_name( 'Rabobank - iDEAL Professional (v3)' ); |
||
| 274 | |||
| 275 | $integration->provider = 'rabobank'; |
||
| 276 | $integration->product_url = 'https://www.rabobank.nl/bedrijven/betalen/geld-ontvangen/ideal-professional/'; |
||
| 277 | $integration->dashboard_url = array( |
||
| 278 | 'test' => 'https://idealtest.rabobank.nl/', |
||
| 279 | 'live' => 'https://ideal.rabobank.nl/', |
||
| 280 | ); |
||
| 281 | }, |
||
| 282 | ), |
||
| 283 | |||
| 284 | // Sisow. |
||
| 285 | '\Pronamic\WordPress\Pay\Gateways\Sisow\Integration', |
||
| 286 | |||
| 287 | // Sisow - iDEAL Basic. |
||
| 288 | array( |
||
| 289 | 'class' => '\Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration', |
||
| 290 | 'callback' => function( AbstractIntegration $integration ) { |
||
| 291 | $integration->set_id( 'sisow-ideal-basic' ); |
||
| 292 | $integration->set_name( 'Sisow - iDEAL Basic' ); |
||
| 293 | |||
| 294 | $integration->provider = 'sisow'; |
||
| 295 | $integration->url = 'https://www.sisow.nl/'; |
||
| 296 | $integration->dashboard_url = 'https://www.sisow.nl/Sisow/iDeal/Login.aspx'; |
||
| 297 | $integration->deprecated = true; |
||
| 298 | }, |
||
| 299 | ), |
||
| 300 | |||
| 301 | // TargetPay. |
||
| 302 | '\Pronamic\WordPress\Pay\Gateways\TargetPay\Integration', |
||
| 303 | ); |
||
| 305 |