Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
mdpoulter committed Nov 1, 2019
1 parent aae6ff0 commit db1f221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AdvancedNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AdvancedNumber extends Number
/**
* The number of decimals to be displayed.
*
* @var integer
* @var int
*/
private $decimals = 2;

Expand Down Expand Up @@ -60,7 +60,7 @@ public function __construct($name, $attribute = null, $resolveCallback = null)
$this->decimals($this->decimals)
->textAlign('right')
->displayUsing(function ($value) {
return !is_null($value) ? $this->prefix . number_format($value, $this->decimals, $this->dec_point, $this->thousands_sep) . $this->suffix : null;
return ! is_null($value) ? $this->prefix.number_format($value, $this->decimals, $this->dec_point, $this->thousands_sep).$this->suffix : null;
});
}

Expand All @@ -81,7 +81,7 @@ public function decimalPoint($dec_point)
/**
* Sets the number of decimal points to be used as well as the step value.
*
* @param integer $decimals
* @param int $decimals
*
* @return $this
*/
Expand Down

0 comments on commit db1f221

Please sign in to comment.