diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..e82014e --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1 @@ +34072b51d2206168f37607c4dcd8ccc0d420cef2 diff --git a/README.md b/README.md index ad4ad23..61dddf0 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Extendible workspace configurator for Laravel to effortlessly keep linters, fixe Workspace Core is the enige used by [gedachtegoed/workspace](https://github.com/media-code/workspace). You can use this package to ship your own organization wide project defaults and keep them up to date with a upstream repository. -Workspace's Fluent Integrations enable automation of **_linting_**, **_fixing_**, **_ci workflows_**, **_editor integrations_**, **_working with gitignore files_** & **_composer scripts_**. Using custom hooks you can pretty much automate any Integration setup or repetetive task. For example; You can even use it to automate setting up [IDE helper](https://github.com/barryvdh/laravel-ide-helper) integrations in your project. +Workspace's Fluent Integrations enable automation of **_linting_**, **_fixing_**, **_ci workflows_**, **_editor integrations_** & **_composer scripts_**. You can even use it to automate setting up [IDE helper](https://github.com/barryvdh/laravel-ide-helper) integrations in your project. Using custom hooks you can pretty much automate any Integration setup or repetetive task and keep it in sync with your entire team across different projects. The [Workspace](https://github.com/media-code/workspace) package itself is a predefined Portable Workspace you can use as a well thought out but opinionated baseline for your Laravel projects. If you don't plan on creating your own presets we recommend to start there. diff --git a/src/Aggregator.php b/src/Aggregator.php index b3f910f..ef19712 100644 --- a/src/Aggregator.php +++ b/src/Aggregator.php @@ -21,9 +21,9 @@ * @method array publishesWorkflows() * @method array dusterLintConfig() * @method array dusterFixConfig() - * |-------------------------------------------------------------------------- - * | Package managers - * |-------------------------------------------------------------------------- + * |-------------------------------------------------------------------------- + * | Package managers + * |-------------------------------------------------------------------------- * @method array composerScripts() * @method array composerRequire() * @method array composerRequireDev() @@ -31,23 +31,23 @@ * @method array npmInstall() * @method array npmInstallDev() * @method array npmUpdate() - * |-------------------------------------------------------------------------- - * | Gitignore - * |-------------------------------------------------------------------------- + * |-------------------------------------------------------------------------- + * | Gitignore + * |-------------------------------------------------------------------------- * @method array addToGitignore() * @method array removeFromGitignore() - * |-------------------------------------------------------------------------- - * | Integrations - * |-------------------------------------------------------------------------- + * |-------------------------------------------------------------------------- + * | Integrations + * |-------------------------------------------------------------------------- * @method array provideVscodeWorkspaceConfig() * @method array provideVscodeRecommendedPlugins() * @method array provideVscodeAvoidPlugins() * @method array providePhpStormWorkspaceConfig() * @method array providePhpStormRequiredPlugins() * @method array providePhpStormSuggestedPlugins() - * |-------------------------------------------------------------------------- - * | Hooks - * |-------------------------------------------------------------------------- + * |-------------------------------------------------------------------------- + * | Hooks + * |-------------------------------------------------------------------------- * @method array beforeInstall() * @method array afterInstall() * @method array beforeUpdate() @@ -98,7 +98,7 @@ public function integrations(): Collection /** * Resolves Integrations by a array of their respective Builder classes * - * @param array $integrations Array of fully qualified classnames + * @param array $integrations Array of fully qualified classnames * @return Collection */ private function resolve(array $integrations): Collection @@ -144,7 +144,7 @@ private function registerIntegrationPublishGroups() * Forwards method calls to collect integration properties. * Please see class PHPDoc method hints for a list of methods this provides. * - * @param string $name property of Integration to aggregate + * @param string $name property of Integration to aggregate */ public function __call(string $name, ?array $arguments): array { diff --git a/src/Concerns/UpdatesGitignore.php b/src/Concerns/UpdatesGitignore.php index 8b72db5..28aae85 100644 --- a/src/Concerns/UpdatesGitignore.php +++ b/src/Concerns/UpdatesGitignore.php @@ -4,7 +4,7 @@ trait UpdatesGitignore { - public function addToGitignore(array|string $lines, string $path = null) + public function addToGitignore(array|string $lines, ?string $path = null) { $lines = (array) $lines; @@ -26,7 +26,7 @@ public function addToGitignore(array|string $lines, string $path = null) } } - public function removeFromGitignore(array|string $lines, string $path = null) + public function removeFromGitignore(array|string $lines, ?string $path = null) { $lines = (array) $lines;