Skip to content

Commit

Permalink
Upload unformated file to test fixer php on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedFathiM committed Apr 30, 2024
1 parent 16e4ec9 commit fd0202a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/UnitConversionsClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

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 @@ -16,8 +18,7 @@ public function __construct($grams)
self::$grams = $grams;
}

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

0 comments on commit fd0202a

Please sign in to comment.