Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedFathiM authored and github-actions[bot] committed Apr 30, 2024
1 parent fd0202a commit 666d3e3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/UnitConversionsClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

namespace WeightConversion\UnitConversions;

use PhpCsFixer\Fixer\PhpUnit\PhpUnitTargetVersion;

class UnitConversionsClass
{
public static
$grams;
public static $grams;

public static function convert($grams){
public static function convert($grams)
{
return (new static($grams))->toKilograms();
}

Expand All @@ -18,7 +16,8 @@ public function __construct($grams)
self::$grams = $grams;
}

public function toKilograms() {
public function toKilograms()
{
return self::$grams / 1000;
}
}

0 comments on commit 666d3e3

Please sign in to comment.