original_string: private function numberFormat($value, $decimals, $decimalPoint, $thousandSeperator)
      {
          if (is_null($decimals)){
              $decimals = is_null(config('cart.format.decimals')) ? 2 : config('cart.format.decimals');
          }
  
          if (is_null($decimalPoint)){
              $decimalPoint = is_null(config('cart.format.decimal_point')) ? '.' : config('cart.format.decimal_point');
          }
  
          if (is_null($thousandSeperator)){
              $thousandSeperator = is_null(config('cart.format.thousand_seperator')) ? ',' : config('cart.format.thousand_seperator');
          }
  
          return number_format($value, $decimals, $decimalPoint, $thousandSeperator);
      }
code: private function numberFormat($value, $decimals, $decimalPoint, $thousandSeperator)
      {
          if (is_null($decimals)){
              $decimals = is_null(config('cart.format.decimals')) ? 2 : config('cart.format.decimals');
          }
  
          if (is_null($decimalPoint)){
              $decimalPoint = is_null(config('cart.format.decimal_point')) ? '.' : config('cart.format.decimal_point');
          }
  
          if (is_null($thousandSeperator)){
              $thousandSeperator = is_null(config('cart.format.thousand_seperator')) ? ',' : config('cart.format.thousand_seperator');
          }
  
          return number_format($value, $decimals, $decimalPoint, $thousandSeperator);
      }
code_tokens: private function numberFormat ( $ value , $ decimals , $ decimalPoint , $ thousandSeperator ) { if ( is_null ( $ decimals ) ) { $ decimals = is_null ( config ( 'cart.format.decimals' ) ) ? 2 : config ( 'cart.format.decimals' ) ; } if ( is_null ( $ decimalPoint ) ) { $ decimalPoint = is_null ( config ( 'cart.format.decimal_point' ) ) ? '.' : config ( 'cart.format.decimal_point' ) ; } if ( is_null ( $ thousandSeperator ) ) { $ thousandSeperator = is_null ( config ( 'cart.format.thousand_seperator' ) ) ? ',' : config ( 'cart.format.thousand_seperator' ) ; } return number_format ( $ value , $ decimals , $ decimalPoint , $ thousandSeperator ) ; }
docstring: Get the formatted number.
  
  @param float  $value
  @param int    $decimals
  @param string $decimalPoint
  @param string $thousandSeperator
  @return string
docstring_tokens: Get the formatted number .