src/System/Console.php
public static function properties(array $data, $separator = ':')
    {
        $keys = array_keys($data);
        $maxLength = max(array_map('strlen', $keys));
        if (count($data) > 0) {
            foreach ($data as $key => $value) {
                $key = Str::padRight($key, $maxLength);
                self::write($key);
                self::write(' ');
                if (Str::length($separator) > 0) {
                    self::write($separator . ' ');
                }
                self::writeln($value);
            }
        }
    }
public static function properties(array $data, $separator = ':')
    {
        $keys = array_keys($data);
        $maxLength = max(array_map('strlen', $keys));
        if (count($data) > 0) {
            foreach ($data as $key => $value) {
                $key = Str::padRight($key, $maxLength);
                self::write($key);
                self::write(' ');
                if (Str::length($separator) > 0) {
                    self::write($separator . ' ');
                }
                self::writeln($value);
            }
        }
    }
public static function properties ( array $ data , $ separator = ':' ) { $ keys = array_keys ( $ data ) ; $ maxLength = max ( array_map ( 'strlen' , $ keys ) ) ; if ( count ( $ data ) > 0 ) { foreach ( $ data as $ key => $ value ) { $ key = Str :: padRight ( $ key , $ maxLength ) ; self :: write ( $ key ) ; self :: write ( ' ' ) ; if ( Str :: length ( $ separator ) > 0 ) { self :: write ( $ separator . ' ' ) ; } self :: writeln ( $ value ) ; } } }
Properties.

@param array $data
@param string $separator Default ':'.
Properties .