| Conditions | 1 |
| Paths | 1 |
| Total Lines | 60 |
| Code Lines | 58 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 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 |
||
| 55 | public function pairs(): array |
||
| 56 | { |
||
| 57 | return [ |
||
| 58 | ['btc_usd','btc_usd',], |
||
| 59 | ['btc_eur','btc_eur',], |
||
| 60 | ['btc_rur','btc_rur',], |
||
| 61 | ['ltc_btc','ltc_btc',], |
||
| 62 | ['ltc_usd','ltc_usd',], |
||
| 63 | ['ltc_rur','ltc_rur',], |
||
| 64 | ['nmc_btc','nmc_btc',], |
||
| 65 | ['usd_rur','usd_rur',], |
||
| 66 | ['eur_usd','eur_usd',], |
||
| 67 | ['nvc_btc','nvc_btc',], |
||
| 68 | ['ppc_btc','ppc_btc',], |
||
| 69 | ['ltc_eur','ltc_eur',], |
||
| 70 | ['nmc_usd','nmc_usd',], |
||
| 71 | ['nvc_usd','nvc_usd',], |
||
| 72 | ['ppc_usd','ppc_usd',], |
||
| 73 | ['eur_rur','eur_rur',], |
||
| 74 | ['dsh_btc','dsh_btc',], |
||
| 75 | ['dsh_usd','dsh_usd',], |
||
| 76 | ['eth_btc','eth_btc',], |
||
| 77 | ['eth_usd','eth_usd',], |
||
| 78 | ['eth_eur','eth_eur',], |
||
| 79 | ['eth_ltc','eth_ltc',], |
||
| 80 | ['eth_rur','eth_rur',], |
||
| 81 | ['dsh_rur','dsh_rur',], |
||
| 82 | ['dsh_eur','dsh_eur',], |
||
| 83 | ['dsh_ltc','dsh_ltc',], |
||
| 84 | ['dsh_eth','dsh_eth',], |
||
| 85 | ['bch_usd','bch_usd',], |
||
| 86 | ['bch_btc','bch_btc',], |
||
| 87 | ['bch_rur','bch_rur',], |
||
| 88 | ['bch_eur','bch_eur',], |
||
| 89 | ['bch_ltc','bch_ltc',], |
||
| 90 | ['bch_eth','bch_eth',], |
||
| 91 | ['bch_dsh','bch_dsh',], |
||
| 92 | ['zec_btc','zec_btc',], |
||
| 93 | ['zec_usd','zec_usd',], |
||
| 94 | ['usdet_usd','usdet_usd',], |
||
| 95 | ['ruret_rur','ruret_rur',], |
||
| 96 | ['euret_eur','euret_eur',], |
||
| 97 | ['btcet_btc','btcet_btc',], |
||
| 98 | ['ltcet_ltc','ltcet_ltc',], |
||
| 99 | ['ethet_eth','ethet_eth',], |
||
| 100 | ['nmcet_nmc','nmcet_nmc',], |
||
| 101 | ['nvcet_nvc','nvcet_nvc',], |
||
| 102 | ['ppcet_ppc','ppcet_ppc',], |
||
| 103 | ['dshet_dsh','dshet_dsh',], |
||
| 104 | ['bchet_bch','bchet_bch',], |
||
| 105 | ['dsh_zec','dsh_zec',], |
||
| 106 | ['eth_zec','eth_zec',], |
||
| 107 | ['bch_zec','bch_zec',], |
||
| 108 | ['zec_ltc','zec_ltc',], |
||
| 109 | ['usdt_usd','usdt_usd',], |
||
| 110 | ['btc_usdt','btc_usdt',], |
||
| 111 | ['xmr_usd','xmr_usd',], |
||
| 112 | ['xmr_btc','xmr_btc',], |
||
| 113 | ['xmr_eth','xmr_eth',], |
||
| 114 | ['xmr_rur','xmr_rur',], |
||
| 115 | ]; |
||
| 117 | } |