Skip to content

Commit

Permalink
🚨 code styles
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Jan 25, 2024
1 parent 868f5af commit 25408e2
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '')
Expand Down
10 changes: 5 additions & 5 deletions src/Roots/Acorn/Assets/Asset/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down
14 changes: 7 additions & 7 deletions src/Roots/Acorn/Assets/Asset/TextAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions src/Roots/Acorn/Assets/AssetFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Roots/Acorn/Assets/Concerns/Enqueuable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Assets/Contracts/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Assets/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Roots/Acorn/Bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ protected function normalizeApplicationPath($path, $default = null)
}

return Str::startsWith($env, $this->absoluteApplicationPathPrefixes)
? $env
: $this->basePath($env);
? $env
: $this->basePath($env);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Roots/Acorn/View/FileViewFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions tests/Test/Concerns/SupportsGlobalStubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 25408e2

Please sign in to comment.