public function toStudly($string) { $value = ucwords(str_replace(['-', '_'], ' ', $string)); return str_replace(' ', '', $value); }
/** * Save versions of project names. * * @return void */ protected function saveNames() { $names = $this->str->split($this->settings->getProjectName()); $this->vendorLower = $this->str->toLower($names['vendor']); $this->vendorUpper = $this->str->toStudly($names['vendor']); $this->projectLower = $this->str->toLower($names['project']); $this->projectUpper = $this->str->toStudly($names['project']); }