mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 03:04:36 +00:00
Upgraded PHP-CS-Fixer / applied optimized rules
This commit is contained in:
@@ -18,13 +18,9 @@ namespace Grocy\Helpers;
|
||||
class Grocycode
|
||||
{
|
||||
public const PRODUCT = 'p';
|
||||
|
||||
public const BATTERY = 'b';
|
||||
|
||||
public const CHORE = 'c';
|
||||
|
||||
public const RECIPE = 'r';
|
||||
|
||||
public const MAGIC = 'grcy';
|
||||
|
||||
public function __construct(...$args)
|
||||
@@ -49,11 +45,8 @@ class Grocycode
|
||||
}
|
||||
|
||||
public static $Items = [self::PRODUCT, self::BATTERY, self::CHORE, self::RECIPE];
|
||||
|
||||
private $type;
|
||||
|
||||
private $id;
|
||||
|
||||
private $extra_data = [];
|
||||
|
||||
public static function Validate(string $code)
|
||||
|
Reference in New Issue
Block a user