public static function normalisePermissions($config)
    {
        foreach ($config as $type => $codes) {
            foreach ($codes as $key => $mask) {
                if (is_string($mask)) {
                    $config[$type][$key] = intval($mask, 8);
                }
            }
        }
        return $config;
    }
public static function normalisePermissions($config)
    {
        foreach ($config as $type => $codes) {
            foreach ($codes as $key => $mask) {
                if (is_string($mask)) {
                    $config[$type][$key] = intval($mask, 8);
                }
            }
        }
        return $config;
    }
public static function normalisePermissions ( $ config ) { foreach ( $ config as $ type => $ codes ) { foreach ( $ codes as $ key => $ mask ) { if ( is_string ( $ mask ) ) { $ config [ $ type ] [ $ key ] = intval ( $ mask , 8 ) ; } } } return $ config ; }
Converts strings to octal permission codes. E.g. '0700' => 0700

@param array $config
@return array
Converts strings to octal permission codes . E . g . 0700 = > 0700