private function parseTsConstants($tsConstants)
    {
        if (is_array($tsConstants)) {
            $parsed = '';
            foreach ($tsConstants as $constant => $value) {
                $parsed .= $constant . ' = ' . $value . PHP_EOL;
            }
            return $parsed;
        }

        return $tsConstants;
    }
private function parseTsConstants($tsConstants)
    {
        if (is_array($tsConstants)) {
            $parsed = '';
            foreach ($tsConstants as $constant => $value) {
                $parsed .= $constant . ' = ' . $value . PHP_EOL;
            }
            return $parsed;
        }

        return $tsConstants;
    }
private function parseTsConstants ( $ tsConstants ) { if ( is_array ( $ tsConstants ) ) { $ parsed = '' ; foreach ( $ tsConstants as $ constant => $ value ) { $ parsed .= $ constant . ' = ' . $ value . PHP_EOL ; } return $ parsed ; } return $ tsConstants ; }
Parse TS constants into a string.

@param  array|string  $tsConstants  Hash of key/values, or string
@return  string
Parse TS constants into a string .