diff --git a/src/Roots/Acorn/Application.php b/src/Roots/Acorn/Application.php index 2412333b..eff88c64 100644 --- a/src/Roots/Acorn/Application.php +++ b/src/Roots/Acorn/Application.php @@ -135,7 +135,7 @@ protected function bindPathsInContainer() /** * Get the path to the bootstrap directory. * - * @param string $path Optionally, a path to append to the bootstrap path + * @param string $path Optionally, a path to append to the bootstrap path * @return string */ public function bootstrapPath($path = '') diff --git a/src/Roots/Acorn/Assets/Asset/Asset.php b/src/Roots/Acorn/Assets/Asset/Asset.php index 3d3f2339..5c5d73d8 100644 --- a/src/Roots/Acorn/Assets/Asset/Asset.php +++ b/src/Roots/Acorn/Assets/Asset/Asset.php @@ -46,8 +46,8 @@ class Asset implements AssetContract /** * Get asset from manifest * - * @param string $path Local path - * @param string $uri Remote URI + * @param string $path Local path + * @param string $uri Remote URI */ public function __construct(string $path, string $uri) { @@ -86,7 +86,7 @@ public function contents(): string /** * Get the relative path to the asset. * - * @param string $basePath Base path to use for relative path. + * @param string $basePath Base path to use for relative path. */ public function relativePath(string $basePath): string { @@ -112,7 +112,7 @@ public function base64() /** * Get data URL of asset. * - * @param string $mediatype MIME content type + * @param string $mediatype MIME content type */ public function dataUrl(?string $mediatype = null): string { @@ -130,7 +130,7 @@ public function dataUrl(?string $mediatype = null): string /** * Get data URL of asset. * - * @param string $mediatype MIME content type + * @param string $mediatype MIME content type */ public function dataUri(?string $mediatype = null): string { diff --git a/src/Roots/Acorn/Assets/Asset/TextAsset.php b/src/Roots/Acorn/Assets/Asset/TextAsset.php index fcf5abca..719b7bc9 100644 --- a/src/Roots/Acorn/Assets/Asset/TextAsset.php +++ b/src/Roots/Acorn/Assets/Asset/TextAsset.php @@ -14,7 +14,7 @@ class TextAsset extends Asset /** * Get character encoding. * - * @param string $fallback Fallback if charset cannot be determined + * @param string $fallback Fallback if charset cannot be determined */ public function charset($fallback = 'UTF-8'): string { @@ -36,9 +36,9 @@ public function charset($fallback = 'UTF-8'): string /** * Get data URL of asset. * - * @param string $mediatype MIME content type - * @param string $charset Character encoding - * @param string $urlencode List of characters to be percent-encoded + * @param string $mediatype MIME content type + * @param string $charset Character encoding + * @param string $urlencode List of characters to be percent-encoded */ public function dataUrl(?string $mediatype = null, ?string $charset = null, string $urlencode = '%\'"'): string { @@ -68,9 +68,9 @@ public function dataUrl(?string $mediatype = null, ?string $charset = null, stri /** * Get data URL of asset. * - * @param string $mediatype MIME content type - * @param string $charset Character encoding - * @param string $urlencode List of characters to be percent-encoded + * @param string $mediatype MIME content type + * @param string $charset Character encoding + * @param string $urlencode List of characters to be percent-encoded */ public function dataUri(?string $mediatype = null, ?string $charset = null, string $urlencode = '%\'"'): string { diff --git a/src/Roots/Acorn/Assets/AssetFactory.php b/src/Roots/Acorn/Assets/AssetFactory.php index 42824e5b..178eac1f 100644 --- a/src/Roots/Acorn/Assets/AssetFactory.php +++ b/src/Roots/Acorn/Assets/AssetFactory.php @@ -13,9 +13,9 @@ class AssetFactory /** * Create Asset instance. * - * @param string $path Local path - * @param string $uri Remote URI - * @param string $type Asset type + * @param string $path Local path + * @param string $uri Remote URI + * @param string $type Asset type */ public static function create(string $path, string $uri, ?string $type = null): AssetContract { diff --git a/src/Roots/Acorn/Assets/Concerns/Enqueuable.php b/src/Roots/Acorn/Assets/Concerns/Enqueuable.php index 653529ab..43652d81 100644 --- a/src/Roots/Acorn/Assets/Concerns/Enqueuable.php +++ b/src/Roots/Acorn/Assets/Concerns/Enqueuable.php @@ -186,8 +186,8 @@ public function localize($name, $object) /** * Add script translations to be used by the bundle * - * @param string $domain - * @param string $path + * @param string $domain + * @param string $path * @return $this */ public function translate($domain = null, $path = null) diff --git a/src/Roots/Acorn/Assets/Contracts/Asset.php b/src/Roots/Acorn/Assets/Contracts/Asset.php index dccf2741..c00b9d5f 100644 --- a/src/Roots/Acorn/Assets/Contracts/Asset.php +++ b/src/Roots/Acorn/Assets/Contracts/Asset.php @@ -33,7 +33,7 @@ public function contents(); /** * Get the relative path to the asset. * - * @param string $base_path Base path to use for relative path. + * @param string $base_path Base path to use for relative path. */ public function relativePath(string $base_path): string; diff --git a/src/Roots/Acorn/Assets/Manager.php b/src/Roots/Acorn/Assets/Manager.php index f80963a2..69d28952 100644 --- a/src/Roots/Acorn/Assets/Manager.php +++ b/src/Roots/Acorn/Assets/Manager.php @@ -114,7 +114,7 @@ protected function pipeline(array $config): array /** * Opens a JSON manifest file from the local file system * - * @param string $jsonManifest Path to .json file + * @param string $jsonManifest Path to .json file */ protected function getJsonManifest(string $jsonManifest): array { diff --git a/src/Roots/Acorn/Bootloader.php b/src/Roots/Acorn/Bootloader.php index 7512bafa..bc1cc3ba 100644 --- a/src/Roots/Acorn/Bootloader.php +++ b/src/Roots/Acorn/Bootloader.php @@ -359,8 +359,8 @@ protected function normalizeApplicationPath($path, $default = null) } return Str::startsWith($env, $this->absoluteApplicationPathPrefixes) - ? $env - : $this->basePath($env); + ? $env + : $this->basePath($env); } /** diff --git a/src/Roots/Acorn/View/FileViewFinder.php b/src/Roots/Acorn/View/FileViewFinder.php index 2e19d329..f2ecf52a 100644 --- a/src/Roots/Acorn/View/FileViewFinder.php +++ b/src/Roots/Acorn/View/FileViewFinder.php @@ -9,7 +9,7 @@ class FileViewFinder extends FileViewFinderBase /** * Get possible relative locations of view files * - * @param string $path Absolute or relative path to possible view file + * @param string $path Absolute or relative path to possible view file * @return string[] */ public function getPossibleViewFilesFromPath($path) @@ -22,7 +22,7 @@ public function getPossibleViewFilesFromPath($path) /** * Get possible view name based on path * - * @param string $path Absolute or relative path to possible view file + * @param string $path Absolute or relative path to possible view file * @return string */ public function getPossibleViewNameFromPath($file) @@ -60,7 +60,7 @@ public function getPossibleViewNameFromPath($file) /** * Remove recognized extensions from path * - * @param string $file relative path to view file + * @param string $file relative path to view file * @return string view name */ protected function stripExtensions($path) diff --git a/tests/Test/Concerns/SupportsGlobalStubs.php b/tests/Test/Concerns/SupportsGlobalStubs.php index ddf6193f..b0d17cb6 100644 --- a/tests/Test/Concerns/SupportsGlobalStubs.php +++ b/tests/Test/Concerns/SupportsGlobalStubs.php @@ -11,8 +11,8 @@ trait SupportsGlobalStubs /** * Create stubs and spies for global functions. * - * @param string $fn The name of the global function - * @param null|callable $callable The real function to monitor + * @param string $fn The name of the global function + * @param null|callable $callable The real function to monitor */ protected function stub(string $fn, ?callable $callable = null): MockeryCallableMock {