1 | <?php namespace Arcanesoft\Foundation\ViewComposers\System; |
||
11 | class ApplicationInfoComposer |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Constants |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | const VIEW = 'foundation::admin.system.information._includes.application'; |
||
19 | |||
20 | /* ----------------------------------------------------------------- |
||
21 | | Main Methods |
||
22 | | ----------------------------------------------------------------- |
||
23 | */ |
||
24 | |||
25 | /** |
||
26 | * Compose the view. |
||
27 | * |
||
28 | * @param \Illuminate\View\View $view |
||
29 | */ |
||
30 | public function compose(View $view) |
||
48 | |||
49 | /* ----------------------------------------------------------------- |
||
50 | | Other Methods |
||
51 | | ----------------------------------------------------------------- |
||
52 | */ |
||
53 | |||
54 | /** |
||
55 | * Get the application size. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | private function getApplicationSize() |
||
67 | |||
68 | /** |
||
69 | * Get the folder size. |
||
70 | * |
||
71 | * @param string $dir |
||
72 | * |
||
73 | * @return int |
||
74 | */ |
||
75 | private function getFolderSize($dir) |
||
85 | |||
86 | /** |
||
87 | * Format the size for humans. |
||
88 | * |
||
89 | * @param int $bytes |
||
90 | * |
||
91 | * @return string |
||
92 | */ |
||
93 | private function formatSize($bytes) |
||
118 | } |
||
119 |