private function surroundItemsWithSpacesWithQuotes($item) { return strpos($item, ' ') !== false ? "\"{$item}\"" : $item; }