1#!/usr/bin/env php 2<?php 3require __DIR__ . '/bootstrap.php'; 4 5$git_files = swoole_git_files(); 6$git_files_map = []; 7foreach ($git_files as $file) { 8 $git_files_map[$file] = filesize(__DIR__ . "/../{$file}"); 9} 10array_multisort($git_files_map, SORT_DESC); 11$git_files_map = array_slice($git_files_map, 0, 36); 12echo json_encode($git_files_map, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); 13