Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #2

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions src/Copper/Copper.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ class Copper
/**
* Create the instance of Copper.
*
* @param float|null $value Number to be used in the formatter.
* @param int|null $style Style of formatter to use.
* @param string|null $locale Locale to use for the formatter.
*
* @param float|null $value Number to be used in the formatter.
* @param int|null $style Style of formatter to use.
* @param string|null $locale Locale to use for the formatter.
* @return Copper Copper instance.
*/
public static function create(?float $value = null, ?int $style = null, ?string $locale = null): Copper
Expand All @@ -93,8 +92,7 @@ public static function create(?float $value = null, ?int $style = null, ?string
/**
* Format the number using DECIMAL.
*
* @param int|null $precision Precision to use for formatter.
*
* @param int|null $precision Precision to use for formatter.
* @return string Formatted number.
*/
public static function decimal(?int $precision = null): string
Expand All @@ -112,8 +110,7 @@ public static function decimal(?int $precision = null): string
/**
* Format the number using CURRENCY.
*
* @param string $iso The 3-letter ISO 4217 currency code indicating the currency to use.
*
* @param string $iso The 3-letter ISO 4217 currency code indicating the currency to use.
* @return string Formatted number.
*/
public static function currency(string $iso): string
Expand Down Expand Up @@ -156,8 +153,7 @@ public static function percentage(): string
/**
* Format the number using CURRENCY_ACCOUNTING.
*
* @param string $iso The 3-letter ISO 4217 currency code indicating the currency to use.
*
* @param string $iso The 3-letter ISO 4217 currency code indicating the currency to use.
* @return string Formatted number.
*/
public static function accounting(string $iso): string
Expand Down Expand Up @@ -186,8 +182,7 @@ public static function scientific(): string
/**
* Set the Locale.
*
* @param string $locale Locale in which the number would be formatted.
*
* @param string $locale Locale in which the number would be formatted.
* @return Copper Copper instance.
*/
public static function setLocale(string $locale): Copper
Expand All @@ -211,8 +206,7 @@ public static function getLocale(): string
/**
* Set the Style.
*
* @param int $style Style of the formatting.
*
* @param int $style Style of the formatting.
* @return Copper Copper instance.
*/
public static function setStyle(int $style): Copper
Expand Down
3 changes: 1 addition & 2 deletions src/Copper/Laravel/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ public function register()
/**
* Check function for Event Dispatcher.
*
* @param Illuminate\Contracts\Events\Dispatcher|Illuminate\Events\Dispatcher|Illuminate\Events\EventDispatcher $instance Event dispatcher
*
* @param Illuminate\Contracts\Events\Dispatcher|Illuminate\Events\Dispatcher|Illuminate\Events\EventDispatcher $instance Event dispatcher
* @return bool
*/
protected function isEventDispatcher($instance)
Expand Down
Loading