Conditions | 1 |
Paths | 1 |
Total Lines | 696 |
Code Lines | 695 |
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 |
||
5 | public static function getIcons() { |
||
6 | return [ |
||
7 | "glass", |
||
8 | "music", |
||
9 | "search", |
||
10 | "envelope-o", |
||
11 | "heart", |
||
12 | "star", |
||
13 | "star-o", |
||
14 | "user", |
||
15 | "film", |
||
16 | "th-large", |
||
17 | "th", |
||
18 | "th-list", |
||
19 | "check", |
||
20 | "remove", |
||
21 | "close", |
||
22 | "times", |
||
23 | "search-plus", |
||
24 | "search-minus", |
||
25 | "power-off", |
||
26 | "signal", |
||
27 | "gear", |
||
28 | "cog", |
||
29 | "trash-o", |
||
30 | "home", |
||
31 | "file-o", |
||
32 | "clock-o", |
||
33 | "road", |
||
34 | "download", |
||
35 | "arrow-circle-o-down", |
||
36 | "arrow-circle-o-up", |
||
37 | "inbox", |
||
38 | "play-circle-o", |
||
39 | "rotate-right", |
||
40 | "repeat", |
||
41 | "refresh", |
||
42 | "list-alt", |
||
43 | "lock", |
||
44 | "flag", |
||
45 | "headphones", |
||
46 | "volume-off", |
||
47 | "volume-down", |
||
48 | "volume-up", |
||
49 | "qrcode", |
||
50 | "barcode", |
||
51 | "tag", |
||
52 | "tags", |
||
53 | "book", |
||
54 | "bookmark", |
||
55 | "print", |
||
56 | "camera", |
||
57 | "font", |
||
58 | "bold", |
||
59 | "italic", |
||
60 | "text-height", |
||
61 | "text-width", |
||
62 | "align-left", |
||
63 | "align-center", |
||
64 | "align-right", |
||
65 | "align-justify", |
||
66 | "list", |
||
67 | "dedent", |
||
68 | "outdent", |
||
69 | "indent", |
||
70 | "video-camera", |
||
71 | "photo", |
||
72 | "image", |
||
73 | "picture-o", |
||
74 | "pencil", |
||
75 | "map-marker", |
||
76 | "adjust", |
||
77 | "tint", |
||
78 | "edit", |
||
79 | "pencil-square-o", |
||
80 | "share-square-o", |
||
81 | "check-square-o", |
||
82 | "arrows", |
||
83 | "step-backward", |
||
84 | "fast-backward", |
||
85 | "backward", |
||
86 | "play", |
||
87 | "pause", |
||
88 | "stop", |
||
89 | "forward", |
||
90 | "fast-forward", |
||
91 | "step-forward", |
||
92 | "eject", |
||
93 | "chevron-left", |
||
94 | "chevron-right", |
||
95 | "plus-circle", |
||
96 | "minus-circle", |
||
97 | "times-circle", |
||
98 | "check-circle", |
||
99 | "question-circle", |
||
100 | "info-circle", |
||
101 | "crosshairs", |
||
102 | "times-circle-o", |
||
103 | "check-circle-o", |
||
104 | "ban", |
||
105 | "arrow-left", |
||
106 | "arrow-right", |
||
107 | "arrow-up", |
||
108 | "arrow-down", |
||
109 | "mail-forward", |
||
110 | "share", |
||
111 | "expand", |
||
112 | "compress", |
||
113 | "plus", |
||
114 | "minus", |
||
115 | "asterisk", |
||
116 | "exclamation-circle", |
||
117 | "gift", |
||
118 | "leaf", |
||
119 | "fire", |
||
120 | "eye", |
||
121 | "eye-slash", |
||
122 | "warning", |
||
123 | "exclamation-triangle", |
||
124 | "plane", |
||
125 | "calendar", |
||
126 | "random", |
||
127 | "comment", |
||
128 | "magnet", |
||
129 | "chevron-up", |
||
130 | "chevron-down", |
||
131 | "retweet", |
||
132 | "shopping-cart", |
||
133 | "folder", |
||
134 | "folder-open", |
||
135 | "arrows-v", |
||
136 | "arrows-h", |
||
137 | "bar-chart-o", |
||
138 | "bar-chart", |
||
139 | "twitter-square", |
||
140 | "facebook-square", |
||
141 | "camera-retro", |
||
142 | "key", |
||
143 | "gears", |
||
144 | "cogs", |
||
145 | "comments", |
||
146 | "thumbs-o-up", |
||
147 | "thumbs-o-down", |
||
148 | "star-half", |
||
149 | "heart-o", |
||
150 | "sign-out", |
||
151 | "linkedin-square", |
||
152 | "thumb-tack", |
||
153 | "external-link", |
||
154 | "sign-in", |
||
155 | "trophy", |
||
156 | "github-square", |
||
157 | "upload", |
||
158 | "lemon-o", |
||
159 | "phone", |
||
160 | "square-o", |
||
161 | "bookmark-o", |
||
162 | "phone-square", |
||
163 | "twitter", |
||
164 | "facebook-f", |
||
165 | "facebook", |
||
166 | "github", |
||
167 | "unlock", |
||
168 | "credit-card", |
||
169 | "feed", |
||
170 | "rss", |
||
171 | "hdd-o", |
||
172 | "bullhorn", |
||
173 | "bell", |
||
174 | "certificate", |
||
175 | "hand-o-right", |
||
176 | "hand-o-left", |
||
177 | "hand-o-up", |
||
178 | "hand-o-down", |
||
179 | "arrow-circle-left", |
||
180 | "arrow-circle-right", |
||
181 | "arrow-circle-up", |
||
182 | "arrow-circle-down", |
||
183 | "globe", |
||
184 | "wrench", |
||
185 | "tasks", |
||
186 | "filter", |
||
187 | "briefcase", |
||
188 | "arrows-alt", |
||
189 | "group", |
||
190 | "users", |
||
191 | "chain", |
||
192 | "link", |
||
193 | "cloud", |
||
194 | "flask", |
||
195 | "cut", |
||
196 | "scissors", |
||
197 | "copy", |
||
198 | "files-o", |
||
199 | "paperclip", |
||
200 | "save", |
||
201 | "floppy-o", |
||
202 | "square", |
||
203 | "navicon", |
||
204 | "reorder", |
||
205 | "bars", |
||
206 | "list-ul", |
||
207 | "list-ol", |
||
208 | "strikethrough", |
||
209 | "underline", |
||
210 | "table", |
||
211 | "magic", |
||
212 | "truck", |
||
213 | "pinterest", |
||
214 | "pinterest-square", |
||
215 | "google-plus-square", |
||
216 | "google-plus", |
||
217 | "money", |
||
218 | "caret-down", |
||
219 | "caret-up", |
||
220 | "caret-left", |
||
221 | "caret-right", |
||
222 | "columns", |
||
223 | "unsorted", |
||
224 | "sort", |
||
225 | "sort-down", |
||
226 | "sort-desc", |
||
227 | "sort-up", |
||
228 | "sort-asc", |
||
229 | "envelope", |
||
230 | "linkedin", |
||
231 | "rotate-left", |
||
232 | "undo", |
||
233 | "legal", |
||
234 | "gavel", |
||
235 | "dashboard", |
||
236 | "tachometer", |
||
237 | "comment-o", |
||
238 | "comments-o", |
||
239 | "flash", |
||
240 | "bolt", |
||
241 | "sitemap", |
||
242 | "umbrella", |
||
243 | "paste", |
||
244 | "clipboard", |
||
245 | "lightbulb-o", |
||
246 | "exchange", |
||
247 | "cloud-download", |
||
248 | "cloud-upload", |
||
249 | "user-md", |
||
250 | "stethoscope", |
||
251 | "suitcase", |
||
252 | "bell-o", |
||
253 | "coffee", |
||
254 | "cutlery", |
||
255 | "file-text-o", |
||
256 | "building-o", |
||
257 | "hospital-o", |
||
258 | "ambulance", |
||
259 | "medkit", |
||
260 | "fighter-jet", |
||
261 | "beer", |
||
262 | "h-square", |
||
263 | "plus-square", |
||
264 | "angle-double-left", |
||
265 | "angle-double-right", |
||
266 | "angle-double-up", |
||
267 | "angle-double-down", |
||
268 | "angle-left", |
||
269 | "angle-right", |
||
270 | "angle-up", |
||
271 | "angle-down", |
||
272 | "desktop", |
||
273 | "laptop", |
||
274 | "tablet", |
||
275 | "mobile-phone", |
||
276 | "mobile", |
||
277 | "circle-o", |
||
278 | "quote-left", |
||
279 | "quote-right", |
||
280 | "spinner", |
||
281 | "circle", |
||
282 | "mail-reply", |
||
283 | "reply", |
||
284 | "github-alt", |
||
285 | "folder-o", |
||
286 | "folder-open-o", |
||
287 | "smile-o", |
||
288 | "frown-o", |
||
289 | "meh-o", |
||
290 | "gamepad", |
||
291 | "keyboard-o", |
||
292 | "flag-o", |
||
293 | "flag-checkered", |
||
294 | "terminal", |
||
295 | "code", |
||
296 | "mail-reply-all", |
||
297 | "reply-all", |
||
298 | "star-half-empty", |
||
299 | "star-half-full", |
||
300 | "star-half-o", |
||
301 | "location-arrow", |
||
302 | "crop", |
||
303 | "code-fork", |
||
304 | "unlink", |
||
305 | "chain-broken", |
||
306 | "question", |
||
307 | "info", |
||
308 | "exclamation", |
||
309 | "superscript", |
||
310 | "subscript", |
||
311 | "eraser", |
||
312 | "puzzle-piece", |
||
313 | "microphone", |
||
314 | "microphone-slash", |
||
315 | "shield", |
||
316 | "calendar-o", |
||
317 | "fire-extinguisher", |
||
318 | "rocket", |
||
319 | "maxcdn", |
||
320 | "chevron-circle-left", |
||
321 | "chevron-circle-right", |
||
322 | "chevron-circle-up", |
||
323 | "chevron-circle-down", |
||
324 | "html5", |
||
325 | "css3", |
||
326 | "anchor", |
||
327 | "unlock-alt", |
||
328 | "bullseye", |
||
329 | "ellipsis-h", |
||
330 | "ellipsis-v", |
||
331 | "rss-square", |
||
332 | "play-circle", |
||
333 | "ticket", |
||
334 | "minus-square", |
||
335 | "minus-square-o", |
||
336 | "level-up", |
||
337 | "level-down", |
||
338 | "check-square", |
||
339 | "pencil-square", |
||
340 | "external-link-square", |
||
341 | "share-square", |
||
342 | "compass", |
||
343 | "toggle-down", |
||
344 | "caret-square-o-down", |
||
345 | "toggle-up", |
||
346 | "caret-square-o-up", |
||
347 | "toggle-right", |
||
348 | "caret-square-o-right", |
||
349 | "euro", |
||
350 | "eur", |
||
351 | "gbp", |
||
352 | "dollar", |
||
353 | "usd", |
||
354 | "rupee", |
||
355 | "inr", |
||
356 | "cny", |
||
357 | "rmb", |
||
358 | "yen", |
||
359 | "jpy", |
||
360 | "ruble", |
||
361 | "rouble", |
||
362 | "rub", |
||
363 | "won", |
||
364 | "krw", |
||
365 | "bitcoin", |
||
366 | "btc", |
||
367 | "file", |
||
368 | "file-text", |
||
369 | "sort-alpha-asc", |
||
370 | "sort-alpha-desc", |
||
371 | "sort-amount-asc", |
||
372 | "sort-amount-desc", |
||
373 | "sort-numeric-asc", |
||
374 | "sort-numeric-desc", |
||
375 | "thumbs-up", |
||
376 | "thumbs-down", |
||
377 | "youtube-square", |
||
378 | "youtube", |
||
379 | "xing", |
||
380 | "xing-square", |
||
381 | "youtube-play", |
||
382 | "dropbox", |
||
383 | "stack-overflow", |
||
384 | "instagram", |
||
385 | "flickr", |
||
386 | "adn", |
||
387 | "bitbucket", |
||
388 | "bitbucket-square", |
||
389 | "tumblr", |
||
390 | "tumblr-square", |
||
391 | "long-arrow-down", |
||
392 | "long-arrow-up", |
||
393 | "long-arrow-left", |
||
394 | "long-arrow-right", |
||
395 | "apple", |
||
396 | "windows", |
||
397 | "android", |
||
398 | "linux", |
||
399 | "dribbble", |
||
400 | "skype", |
||
401 | "foursquare", |
||
402 | "trello", |
||
403 | "female", |
||
404 | "male", |
||
405 | "gittip", |
||
406 | "gratipay", |
||
407 | "sun-o", |
||
408 | "moon-o", |
||
409 | "archive", |
||
410 | "bug", |
||
411 | "vk", |
||
412 | "weibo", |
||
413 | "renren", |
||
414 | "pagelines", |
||
415 | "stack-exchange", |
||
416 | "arrow-circle-o-right", |
||
417 | "arrow-circle-o-left", |
||
418 | "toggle-left", |
||
419 | "caret-square-o-left", |
||
420 | "dot-circle-o", |
||
421 | "wheelchair", |
||
422 | "vimeo-square", |
||
423 | "turkish-lira", |
||
424 | "try", |
||
425 | "plus-square-o", |
||
426 | "space-shuttle", |
||
427 | "slack", |
||
428 | "envelope-square", |
||
429 | "wordpress", |
||
430 | "openid", |
||
431 | "institution", |
||
432 | "bank", |
||
433 | "university", |
||
434 | "mortar-board", |
||
435 | "graduation-cap", |
||
436 | "yahoo", |
||
437 | "google", |
||
438 | "reddit", |
||
439 | "reddit-square", |
||
440 | "stumbleupon-circle", |
||
441 | "stumbleupon", |
||
442 | "delicious", |
||
443 | "digg", |
||
444 | "pied-piper", |
||
445 | "pied-piper-alt", |
||
446 | "drupal", |
||
447 | "joomla", |
||
448 | "language", |
||
449 | "fax", |
||
450 | "building", |
||
451 | "child", |
||
452 | "paw", |
||
453 | "spoon", |
||
454 | "cube", |
||
455 | "cubes", |
||
456 | "behance", |
||
457 | "behance-square", |
||
458 | "steam", |
||
459 | "steam-square", |
||
460 | "recycle", |
||
461 | "automobile", |
||
462 | "car", |
||
463 | "cab", |
||
464 | "taxi", |
||
465 | "tree", |
||
466 | "spotify", |
||
467 | "deviantart", |
||
468 | "soundcloud", |
||
469 | "database", |
||
470 | "file-pdf-o", |
||
471 | "file-word-o", |
||
472 | "file-excel-o", |
||
473 | "file-powerpoint-o", |
||
474 | "file-photo-o", |
||
475 | "file-picture-o", |
||
476 | "file-image-o", |
||
477 | "file-zip-o", |
||
478 | "file-archive-o", |
||
479 | "file-sound-o", |
||
480 | "file-audio-o", |
||
481 | "file-movie-o", |
||
482 | "file-video-o", |
||
483 | "file-code-o", |
||
484 | "vine", |
||
485 | "codepen", |
||
486 | "jsfiddle", |
||
487 | "life-bouy", |
||
488 | "life-buoy", |
||
489 | "life-saver", |
||
490 | "support", |
||
491 | "life-ring", |
||
492 | "circle-o-notch", |
||
493 | "ra", |
||
494 | "rebel", |
||
495 | "ge", |
||
496 | "empire", |
||
497 | "git-square", |
||
498 | "git", |
||
499 | "y-combinator-square", |
||
500 | "yc-square", |
||
501 | "hacker-news", |
||
502 | "tencent-weibo", |
||
503 | "qq", |
||
504 | "wechat", |
||
505 | "weixin", |
||
506 | "send", |
||
507 | "paper-plane", |
||
508 | "send-o", |
||
509 | "paper-plane-o", |
||
510 | "history", |
||
511 | "circle-thin", |
||
512 | "header", |
||
513 | "paragraph", |
||
514 | "sliders", |
||
515 | "share-alt", |
||
516 | "share-alt-square", |
||
517 | "bomb", |
||
518 | "soccer-ball-o", |
||
519 | "futbol-o", |
||
520 | "tty", |
||
521 | "binoculars", |
||
522 | "plug", |
||
523 | "slideshare", |
||
524 | "twitch", |
||
525 | "yelp", |
||
526 | "newspaper-o", |
||
527 | "wifi", |
||
528 | "calculator", |
||
529 | "paypal", |
||
530 | "google-wallet", |
||
531 | "cc-visa", |
||
532 | "cc-mastercard", |
||
533 | "cc-discover", |
||
534 | "cc-amex", |
||
535 | "cc-paypal", |
||
536 | "cc-stripe", |
||
537 | "bell-slash", |
||
538 | "bell-slash-o", |
||
539 | "trash", |
||
540 | "copyright", |
||
541 | "at", |
||
542 | "eyedropper", |
||
543 | "paint-brush", |
||
544 | "birthday-cake", |
||
545 | "area-chart", |
||
546 | "pie-chart", |
||
547 | "line-chart", |
||
548 | "lastfm", |
||
549 | "lastfm-square", |
||
550 | "toggle-off", |
||
551 | "toggle-on", |
||
552 | "bicycle", |
||
553 | "bus", |
||
554 | "ioxhost", |
||
555 | "angellist", |
||
556 | "cc", |
||
557 | "shekel", |
||
558 | "sheqel", |
||
559 | "ils", |
||
560 | "meanpath", |
||
561 | "buysellads", |
||
562 | "connectdevelop", |
||
563 | "dashcube", |
||
564 | "forumbee", |
||
565 | "leanpub", |
||
566 | "sellsy", |
||
567 | "shirtsinbulk", |
||
568 | "simplybuilt", |
||
569 | "skyatlas", |
||
570 | "cart-plus", |
||
571 | "cart-arrow-down", |
||
572 | "diamond", |
||
573 | "ship", |
||
574 | "user-secret", |
||
575 | "motorcycle", |
||
576 | "street-view", |
||
577 | "heartbeat", |
||
578 | "venus", |
||
579 | "mars", |
||
580 | "mercury", |
||
581 | "intersex", |
||
582 | "transgender", |
||
583 | "transgender-alt", |
||
584 | "venus-double", |
||
585 | "mars-double", |
||
586 | "venus-mars", |
||
587 | "mars-stroke", |
||
588 | "mars-stroke-v", |
||
589 | "mars-stroke-h", |
||
590 | "neuter", |
||
591 | "genderless", |
||
592 | "facebook-official", |
||
593 | "pinterest-p", |
||
594 | "whatsapp", |
||
595 | "server", |
||
596 | "user-plus", |
||
597 | "user-times", |
||
598 | "hotel", |
||
599 | "bed", |
||
600 | "viacoin", |
||
601 | "train", |
||
602 | "subway", |
||
603 | "medium", |
||
604 | "yc", |
||
605 | "y-combinator", |
||
606 | "optin-monster", |
||
607 | "opencart", |
||
608 | "expeditedssl", |
||
609 | "battery-4", |
||
610 | "battery-full", |
||
611 | "battery-3", |
||
612 | "battery-three-quarters", |
||
613 | "battery-2", |
||
614 | "battery-half", |
||
615 | "battery-1", |
||
616 | "battery-quarter", |
||
617 | "battery-0", |
||
618 | "battery-empty", |
||
619 | "mouse-pointer", |
||
620 | "i-cursor", |
||
621 | "object-group", |
||
622 | "object-ungroup", |
||
623 | "sticky-note", |
||
624 | "sticky-note-o", |
||
625 | "cc-jcb", |
||
626 | "cc-diners-club", |
||
627 | "clone", |
||
628 | "balance-scale", |
||
629 | "hourglass-o", |
||
630 | "hourglass-1", |
||
631 | "hourglass-start", |
||
632 | "hourglass-2", |
||
633 | "hourglass-half", |
||
634 | "hourglass-3", |
||
635 | "hourglass-end", |
||
636 | "hourglass", |
||
637 | "hand-grab-o", |
||
638 | "hand-rock-o", |
||
639 | "hand-stop-o", |
||
640 | "hand-paper-o", |
||
641 | "hand-scissors-o", |
||
642 | "hand-lizard-o", |
||
643 | "hand-spock-o", |
||
644 | "hand-pointer-o", |
||
645 | "hand-peace-o", |
||
646 | "trademark", |
||
647 | "registered", |
||
648 | "creative-commons", |
||
649 | "gg", |
||
650 | "gg-circle", |
||
651 | "tripadvisor", |
||
652 | "odnoklassniki", |
||
653 | "odnoklassniki-square", |
||
654 | "get-pocket", |
||
655 | "wikipedia-w", |
||
656 | "safari", |
||
657 | "chrome", |
||
658 | "firefox", |
||
659 | "opera", |
||
660 | "internet-explorer", |
||
661 | "tv", |
||
662 | "television", |
||
663 | "contao", |
||
664 | "500px", |
||
665 | "amazon", |
||
666 | "calendar-plus-o", |
||
667 | "calendar-minus-o", |
||
668 | "calendar-times-o", |
||
669 | "calendar-check-o", |
||
670 | "industry", |
||
671 | "map-pin", |
||
672 | "map-signs", |
||
673 | "map-o", |
||
674 | "map", |
||
675 | "commenting", |
||
676 | "commenting-o", |
||
677 | "houzz", |
||
678 | "vimeo", |
||
679 | "black-tie", |
||
680 | "fonticons", |
||
681 | "reddit-alien", |
||
682 | "edge", |
||
683 | "credit-card-alt", |
||
684 | "codiepie", |
||
685 | "modx", |
||
686 | "fort-awesome", |
||
687 | "usb", |
||
688 | "product-hunt", |
||
689 | "mixcloud", |
||
690 | "scribd", |
||
691 | "pause-circle", |
||
692 | "pause-circle-o", |
||
693 | "stop-circle", |
||
694 | "stop-circle-o", |
||
695 | "shopping-bag", |
||
696 | "shopping-basket", |
||
697 | "hashtag", |
||
698 | "bluetooth", |
||
699 | "bluetooth-b", |
||
700 | "percent", |
||
701 | ]; |
||
703 | } |