mirror of
https://github.com/grocy/grocy.git
synced 2025-09-16 09:51:30 +00:00
Upgraded PHP-CS-Fixer / applied optimized rules
This commit is contained in:
@@ -11,7 +11,6 @@ abstract class BaseBarcodeLookupPlugin
|
||||
}
|
||||
|
||||
protected $Locations;
|
||||
|
||||
protected $QuantityUnits;
|
||||
|
||||
final public function Lookup($barcode)
|
||||
|
@@ -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