mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 01:37:13 +00:00
Applied PHP-CS-Fixer rules
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Grocy\Services;
|
||||
|
||||
#use \Grocy\Services\StockService;
|
||||
|
||||
use LessQL\Result;
|
||||
|
||||
class RecipesService extends BaseService
|
||||
@@ -42,11 +40,8 @@ class RecipesService extends BaseService
|
||||
]);
|
||||
$shoppinglistRow->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function ConsumeRecipe($recipeId)
|
||||
@@ -65,7 +60,6 @@ class RecipesService extends BaseService
|
||||
{
|
||||
$this->getStockService()->ConsumeProduct($recipePosition->product_id, $recipePosition->recipe_amount, false, StockService::TRANSACTION_TYPE_CONSUME, 'default', $recipeId, null, $transactionId, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$recipeRow = $this->getDatabase()->recipes()->where('id = :1', $recipeId)->fetch();
|
||||
@@ -75,7 +69,6 @@ class RecipesService extends BaseService
|
||||
$recipeResolvedRow = $this->getDatabase()->recipes_resolved()->where('recipe_id = :1', $recipeId)->fetch();
|
||||
$this->getStockService()->AddProduct($recipeRow->product_id, floatval($recipeRow->desired_servings), null, StockService::TRANSACTION_TYPE_SELF_PRODUCTION, date('Y-m-d'), floatval($recipeResolvedRow->costs));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function GetRecipesPosResolved()
|
||||
@@ -99,5 +92,4 @@ class RecipesService extends BaseService
|
||||
$recipeRow = $this->getDataBase()->recipes()->where('id = :1', $recipeId)->fetch();
|
||||
return $recipeRow !== null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user