| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php namespace Arcanesoft\Foundation\ViewComposers\System;  | 
            ||
| 51 | private function prepare(array $folders)  | 
            ||
| 52 |     { | 
            ||
| 53 |         return collect($folders)->mapWithKeys(function ($folder) { | 
            ||
| 54 | $path = base_path($folder);  | 
            ||
| 55 | |||
| 56 | return [  | 
            ||
| 57 | $folder => [  | 
            ||
| 58 |                     'chmod'    => (int) substr(sprintf('%o', fileperms($path)), -4), | 
            ||
| 59 | 'writable' => is_writable($path),  | 
            ||
| 60 | ],  | 
            ||
| 61 | ];  | 
            ||
| 62 | });  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 |