| Conditions | 1 |
| Paths | 1 |
| Total Lines | 65 |
| Code Lines | 61 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
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 |
||
| 56 | ['в', 'v'], |
||
| 57 | ['г', 'g'], |
||
| 58 | ['д', 'd'], |
||
| 59 | ['е', 'e'], |
||
| 60 | ['ё', 'e'], |
||
| 61 | ['ж', 'zh'], |
||
| 62 | ['з', 'z'], |
||
| 63 | ['и', 'i'], |
||
| 64 | ['й', 'y'], |
||
| 65 | ['к', 'k'], |
||
| 66 | ['л', 'l'], |
||
| 67 | ['м', 'm'], |
||
| 68 | ['н', 'n'], |
||
| 69 | ['о', 'o'], |
||
| 70 | ['п', 'p'], |
||
| 71 | ['р', 'r'], |
||
| 72 | ['с', 's'], |
||
| 73 | ['т', 't'], |
||
| 74 | ['у', 'u'], |
||
| 75 | ['ф', 'f'], |
||
| 76 | ['х', 'h'], |
||
| 77 | ['ц', 'ts'], |
||
| 78 | ['ч', 'ch'], |
||
| 79 | ['ш', 'sh'], |
||
| 80 | ['щ', 'sht'], |
||
| 81 | ['ь', '\''], |
||
| 82 | ['ы', 'y'], |
||
| 83 | ['ъ', '\''], |
||
| 84 | ['ю', 'yu'], |
||
| 85 | ['я', 'ya'], |
||
| 86 | ['А', 'A'], |
||
| 87 | ['Б', 'B'], |
||
| 88 | ['В', 'V'], |
||
| 89 | ['Г', 'G'], |
||
| 90 | ['Д', 'D'], |
||
| 91 | ['Е', 'E'], |
||
| 92 | ['Ж', 'Zh'], |
||
| 93 | ['З', 'Z'], |
||
| 94 | ['И', 'I'], |
||
| 95 | ['Й', 'Y'], |
||
| 96 | ['К', 'K'], |
||
| 97 | ['Л', 'L'], |
||
| 98 | ['М', 'M'], |
||
| 99 | ['Н', 'N'], |
||
| 100 | ['О', 'O'], |
||
| 101 | ['П', 'P'], |
||
| 102 | ['Р', 'R'], |
||
| 103 | ['С', 'S'], |
||
| 104 | ['Т', 'T'], |
||
| 105 | ['У', 'U'], |
||
| 106 | ['Ф', 'F'], |
||
| 107 | ['Х', 'H'], |
||
| 108 | ['Ц', 'Ts'], |
||
| 109 | ['Ч', 'Ch'], |
||
| 110 | ['Ш', 'Sh'], |
||
| 111 | ['Щ', 'Sht'], |
||
| 112 | ['Ь', '\''], |
||
| 113 | ['Ы','Y]', |
||
| 114 | ['Ъ','\''], |
||
| 115 | ['Ю', 'Yu'], |
||
| 116 | ['Я', 'Ya'], |
||
| 117 | ]; |
||
|
|
|||
| 118 | } |
||
| 119 | } |
||
| 120 |