<?php trim(string $string, string $characters = " \n\r\t\v\x00"): string
<?php $process->run(); return trim($process->getOutput()); } }
<?php protected function getCurrentBranch(string $directory): string { $branch = "'".trim(shell_exec("cd ${directory}; git branch | grep \\* | cut -d ' ' -f2"))."'"; if (! isset($branch) || $branch === "''") { $branch = 'current branch';
<?php protected function getFullyQualifiedClassNameFromFile(string $rootNamespace, SplFileInfo $file): string { $class = trim(str_replace($this->basePath, '', $file->getRealPath()), DIRECTORY_SEPARATOR); $class = str_replace( [DIRECTORY_SEPARATOR, 'App\\'],