Skip to content

Commit

Permalink
Merge pull request #2 from pwweb/analysis-e0BQV4
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
rabrowne85 authored Aug 14, 2023
2 parents 4ef9285 + a0c4b67 commit 94b9b1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
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

0 comments on commit 94b9b1f

Please sign in to comment.