= '5.2') { $dir = $wpDashiconsDir; } elseif (File::exists($aopDashiconsDir)) { $dir = $aopDashiconsDir; } else { throw new Exception('File dashicons.css is not loaded correctly'); } return Collection::make(explode('.dashicons-', File::get($dir)))->filter(function ($item) { return strpos($item, 'content'); })->map(function ($item) { $item = explode('content:', $item); $name = strstr($item[0], ':', true); $css = strstr(strrchr($item[1], '\\f'), '"', true); return [$name, $css]; })->values(); } }