Conditions | 1 |
Paths | 1 |
Total Lines | 89 |
Lines | 89 |
Ratio | 100 % |
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 |
||
130 | 'word' => 'ღლონტი', |
||
131 | 'turned' => [ |
||
132 | Declensions::DECLENSION_3 => 'ღლონტს', |
||
133 | Declensions::DECLENSION_4 => 'ღლონტის', |
||
134 | ], |
||
135 | ], |
||
136 | 'თოდუა' => [ |
||
137 | 'word' => 'თოდუა', |
||
138 | 'turned' => [ |
||
139 | Declensions::DECLENSION_3 => 'თოდუას', |
||
140 | Declensions::DECLENSION_4 => 'თოდუას', |
||
141 | ], |
||
142 | ], |
||
143 | 'ტუღუში' => [ |
||
144 | 'word' => 'ტუღუში', |
||
145 | 'turned' => [ |
||
146 | Declensions::DECLENSION_3 => 'ტუღუშს', |
||
147 | Declensions::DECLENSION_4 => 'ტუღუშის', |
||
148 | ], |
||
149 | ], |
||
150 | 'ახალკაცი' => [ |
||
151 | 'word' => 'ახალკაცი', |
||
152 | 'turned' => [ |
||
153 | Declensions::DECLENSION_3 => 'ახალკაცს', |
||
154 | Declensions::DECLENSION_4 => 'ახალკაცის', |
||
155 | ], |
||
156 | ], |
||
157 | 'კიკაბიძე' => [ |
||
158 | 'word' => 'კიკაბიძე', |
||
159 | 'turned' => [ |
||
160 | Declensions::DECLENSION_3 => 'კიკაბიძეს', |
||
161 | Declensions::DECLENSION_4 => 'კიკაბიძის', |
||
162 | ], |
||
163 | ], |
||
164 | 'მესხი' => [ |
||
165 | 'word' => 'მესხი', |
||
166 | 'turned' => [ |
||
167 | Declensions::DECLENSION_3 => 'მესხს', |
||
168 | Declensions::DECLENSION_4 => 'მესხის', |
||
169 | ], |
||
170 | ], |
||
171 | 'ბჰაილალბჰაი' => [ |
||
172 | 'word' => 'ბჰაილალბჰაი', |
||
173 | 'turned' => [ |
||
174 | Declensions::DECLENSION_3 => 'ბჰაილალბჰაის', |
||
175 | Declensions::DECLENSION_4 => 'ბჰაილალბჰაის', |
||
176 | ], |
||
177 | ], |
||
178 | 'ადმინისტრაცია' => [ |
||
179 | 'word' => 'ადმინისტრაცია', |
||
180 | 'turned' => [ |
||
181 | Declensions::DECLENSION_3 => 'ადმინისტრაციას', |
||
182 | Declensions::DECLENSION_4 => 'ადმინისტრაციის', |
||
183 | ], |
||
184 | ], |
||
185 | 'თანამშრომელი' => [ |
||
186 | 'word' => 'თანამშრომელი', |
||
187 | 'turned' => [ |
||
188 | Declensions::DECLENSION_3 => 'თანამშრომელს', |
||
189 | Declensions::DECLENSION_4 => 'თანამშრომლის', |
||
190 | ], |
||
191 | ], |
||
192 | 'თანაშემწე' => [ |
||
193 | 'word' => 'თანაშემწე', |
||
194 | 'turned' => [ |
||
195 | Declensions::DECLENSION_3 => 'თანაშემწეს', |
||
196 | Declensions::DECLENSION_4 => 'თანაშემწის', |
||
197 | ], |
||
198 | ], |
||
199 | 'ინჟინერი' => [ |
||
200 | 'word' => 'ინჟინერი', |
||
201 | 'turned' => [ |
||
202 | Declensions::DECLENSION_3 => 'ინჟინერს', |
||
203 | Declensions::DECLENSION_4 => 'ინჟინრის', |
||
204 | ], |
||
205 | ], |
||
206 | 'ოფიცერი' => [ |
||
207 | 'word' => 'ოფიცერი', |
||
208 | 'turned' => [ |
||
209 | Declensions::DECLENSION_3 => 'ოფიცერს', |
||
210 | Declensions::DECLENSION_4 => 'ოფიცრის', |
||
211 | ], |
||
212 | ], |
||
213 | 'ბიბლიოთეკა' => [ |
||
214 | 'word' => 'ბიბლიოთეკა', |
||
215 | 'turned' => [ |
||
216 | Declensions::DECLENSION_3 => 'ბიბლიოთეკას', |
||
217 | Declensions::DECLENSION_4 => 'ბიბლიოთეკის', |
||
218 | ], |
||
219 | ], |
||
258 |