| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 97 | 
| Code Lines | 95 | 
| 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  | 
            ||
| 7 | public static function all(): array  | 
            ||
| 8 |     { | 
            ||
| 9 | return [  | 
            ||
| 10 | '7z',  | 
            ||
| 11 | 'aiff',  | 
            ||
| 12 | 'asc',  | 
            ||
| 13 | 'asf',  | 
            ||
| 14 | 'avi',  | 
            ||
| 15 | 'avif',  | 
            ||
| 16 | 'bmp',  | 
            ||
| 17 | 'cap',  | 
            ||
| 18 | 'cin',  | 
            ||
| 19 | 'csv',  | 
            ||
| 20 | 'dfxp',  | 
            ||
| 21 | 'doc',  | 
            ||
| 22 | 'docx',  | 
            ||
| 23 | 'dotm',  | 
            ||
| 24 | 'dotx',  | 
            ||
| 25 | 'fla',  | 
            ||
| 26 | 'flv',  | 
            ||
| 27 | 'gif',  | 
            ||
| 28 | 'gz',  | 
            ||
| 29 | 'gzip',  | 
            ||
| 30 | 'itt',  | 
            ||
| 31 | 'jp2',  | 
            ||
| 32 | 'jpeg',  | 
            ||
| 33 | 'jpg',  | 
            ||
| 34 | 'jpx',  | 
            ||
| 35 | 'js',  | 
            ||
| 36 | 'json',  | 
            ||
| 37 | 'lrc',  | 
            ||
| 38 | 'm2t',  | 
            ||
| 39 | 'm4a',  | 
            ||
| 40 | 'm4v',  | 
            ||
| 41 | 'mcc',  | 
            ||
| 42 | 'mid',  | 
            ||
| 43 | 'mov',  | 
            ||
| 44 | 'mp3',  | 
            ||
| 45 | 'mp4',  | 
            ||
| 46 | 'mpc',  | 
            ||
| 47 | 'mpeg',  | 
            ||
| 48 | 'mpg',  | 
            ||
| 49 | 'mpsub',  | 
            ||
| 50 | 'ods',  | 
            ||
| 51 | 'odt',  | 
            ||
| 52 | 'ogg',  | 
            ||
| 53 | 'ogv',  | 
            ||
| 54 | 'pdf',  | 
            ||
| 55 | 'png',  | 
            ||
| 56 | 'potx',  | 
            ||
| 57 | 'pps',  | 
            ||
| 58 | 'ppsm',  | 
            ||
| 59 | 'ppsx',  | 
            ||
| 60 | 'ppt',  | 
            ||
| 61 | 'pptm',  | 
            ||
| 62 | 'pptx',  | 
            ||
| 63 | 'ppz',  | 
            ||
| 64 | 'pxd',  | 
            ||
| 65 | 'qt',  | 
            ||
| 66 | 'ram',  | 
            ||
| 67 | 'rar',  | 
            ||
| 68 | 'rm',  | 
            ||
| 69 | 'rmi',  | 
            ||
| 70 | 'rmvb',  | 
            ||
| 71 | 'rt',  | 
            ||
| 72 | 'rtf',  | 
            ||
| 73 | 'sami',  | 
            ||
| 74 | 'sbv',  | 
            ||
| 75 | 'scc',  | 
            ||
| 76 | 'sdc',  | 
            ||
| 77 | 'sitd',  | 
            ||
| 78 | 'smi',  | 
            ||
| 79 | 'srt',  | 
            ||
| 80 | 'stl',  | 
            ||
| 81 | 'sub',  | 
            ||
| 82 | 'svg',  | 
            ||
| 83 | 'swf',  | 
            ||
| 84 | 'sxc',  | 
            ||
| 85 | 'sxw',  | 
            ||
| 86 | 'tar',  | 
            ||
| 87 | 'tds',  | 
            ||
| 88 | 'tgz',  | 
            ||
| 89 | 'tif',  | 
            ||
| 90 | 'tiff',  | 
            ||
| 91 | 'ttml',  | 
            ||
| 92 | 'txt',  | 
            ||
| 93 | 'vob',  | 
            ||
| 94 | 'vsd',  | 
            ||
| 95 | 'vtt',  | 
            ||
| 96 | 'wav',  | 
            ||
| 97 | 'webm',  | 
            ||
| 98 | 'webp',  | 
            ||
| 99 | 'wma',  | 
            ||
| 100 | 'wmv',  | 
            ||
| 101 | 'xls',  | 
            ||
| 102 | 'xlsx',  | 
            ||
| 103 | 'zip',  | 
            ||
| 104 | ];  | 
            ||
| 107 |