Conditions | 1 |
Paths | 1 |
Total Lines | 123 |
Code Lines | 121 |
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 |
||
359 | private function ansi24part3(): Traversable |
||
360 | { |
||
361 | yield from [ |
||
362 | '0;0;255', |
||
363 | '4;0;255', |
||
364 | '8;0;255', |
||
365 | '12;0;255', |
||
366 | '16;0;255', |
||
367 | '21;0;255', |
||
368 | '25;0;255', |
||
369 | '29;0;255', |
||
370 | '33;0;255', |
||
371 | '38;0;255', |
||
372 | '42;0;255', |
||
373 | '46;0;255', |
||
374 | '50;0;255', |
||
375 | '55;0;255', |
||
376 | '59;0;255', |
||
377 | '63;0;255', |
||
378 | '67;0;255', |
||
379 | '72;0;255', |
||
380 | '76;0;255', |
||
381 | '80;0;255', |
||
382 | '84;0;255', |
||
383 | '89;0;255', |
||
384 | '93;0;255', |
||
385 | '97;0;255', |
||
386 | '101;0;255', |
||
387 | '106;0;255', |
||
388 | '110;0;255', |
||
389 | '114;0;255', |
||
390 | '119;0;255', |
||
391 | '123;0;255', |
||
392 | '127;0;255', |
||
393 | '131;0;255', |
||
394 | '135;0;255', |
||
395 | '140;0;255', |
||
396 | '144;0;255', |
||
397 | '148;0;255', |
||
398 | '153;0;255', |
||
399 | '157;0;255', |
||
400 | '161;0;255', |
||
401 | '165;0;255', |
||
402 | '170;0;255', |
||
403 | '174;0;255', |
||
404 | '178;0;255', |
||
405 | '182;0;255', |
||
406 | '187;0;255', |
||
407 | '191;0;255', |
||
408 | '195;0;255', |
||
409 | '199;0;255', |
||
410 | '204;0;255', |
||
411 | '208;0;255', |
||
412 | '212;0;255', |
||
413 | '216;0;255', |
||
414 | '221;0;255', |
||
415 | '225;0;255', |
||
416 | '229;0;255', |
||
417 | '233;0;255', |
||
418 | '238;0;255', |
||
419 | '242;0;255', |
||
420 | '246;0;255', |
||
421 | '250;0;255', |
||
422 | '255;0;255', |
||
423 | '255;0;250', |
||
424 | '255;0;246', |
||
425 | '255;0;242', |
||
426 | '255;0;238', |
||
427 | '255;0;233', |
||
428 | '255;0;229', |
||
429 | '255;0;225', |
||
430 | '255;0;221', |
||
431 | '255;0;216', |
||
432 | '255;0;212', |
||
433 | '255;0;208', |
||
434 | '255;0;203', |
||
435 | '255;0;199', |
||
436 | '255;0;195', |
||
437 | '255;0;191', |
||
438 | '255;0;187', |
||
439 | '255;0;182', |
||
440 | '255;0;178', |
||
441 | '255;0;174', |
||
442 | '255;0;170', |
||
443 | '255;0;165', |
||
444 | '255;0;161', |
||
445 | '255;0;157', |
||
446 | '255;0;152', |
||
447 | '255;0;148', |
||
448 | '255;0;144', |
||
449 | '255;0;140', |
||
450 | '255;0;135', |
||
451 | '255;0;131', |
||
452 | '255;0;127', |
||
453 | '255;0;123', |
||
454 | '255;0;119', |
||
455 | '255;0;114', |
||
456 | '255;0;110', |
||
457 | '255;0;106', |
||
458 | '255;0;102', |
||
459 | '255;0;97', |
||
460 | '255;0;93', |
||
461 | '255;0;89', |
||
462 | '255;0;85', |
||
463 | '255;0;80', |
||
464 | '255;0;76', |
||
465 | '255;0;72', |
||
466 | '255;0;67', |
||
467 | '255;0;63', |
||
468 | '255;0;59', |
||
469 | '255;0;55', |
||
470 | '255;0;51', |
||
471 | '255;0;46', |
||
472 | '255;0;42', |
||
473 | '255;0;38', |
||
474 | '255;0;34', |
||
475 | '255;0;29', |
||
476 | '255;0;25', |
||
477 | '255;0;21', |
||
478 | '255;0;16', |
||
479 | '255;0;12', |
||
480 | '255;0;8', |
||
481 | '255;0;4', |
||
482 | ]; |
||
485 |