protected static function arrayFormat(array $data, $name)
    {
        $format = "\t'$name' => [\n";

        if (count($data) > 0) {
            foreach ($data as $key => $value) {
                $format .= "\t\t'$key' => $value::class , \n";
            }
        } else {
            $format .= "\t\t//\n";
        }

        $format .= "\t],\n\n";

        return $format;
    }
protected static function arrayFormat(array $data, $name)
    {
        $format = "\t'$name' => [\n";

        if (count($data) > 0) {
            foreach ($data as $key => $value) {
                $format .= "\t\t'$key' => $value::class , \n";
            }
        } else {
            $format .= "\t\t//\n";
        }

        $format .= "\t],\n\n";

        return $format;
    }
protected static function arrayFormat ( array $ data , $ name ) { $ format = "\t'$name' => [\n" ; if ( count ( $ data ) > 0 ) { foreach ( $ data as $ key => $ value ) { $ format .= "\t\t'$key' => $value::class , \n" ; } } else { $ format .= "\t\t//\n" ; } $ format .= "\t],\n\n" ; return $ format ; }
Format args array.

@param array  $data
@param string $name

@return string
Format args array .