mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -35,7 +35,7 @@ use FireflyIII\Models\Category;
|
||||
class CategoryDestroyService
|
||||
{
|
||||
/**
|
||||
* @param Category $category
|
||||
* @param Category $category
|
||||
*/
|
||||
public function destroy(Category $category): void
|
||||
{
|
||||
@@ -46,9 +46,9 @@ class CategoryDestroyService
|
||||
}
|
||||
|
||||
// also delete all relations between categories and transaction journals:
|
||||
DB::table('category_transaction_journal')->where('category_id', (int) $category->id)->delete();
|
||||
DB::table('category_transaction_journal')->where('category_id', (int)$category->id)->delete();
|
||||
|
||||
// also delete all relations between categories and transactions:
|
||||
DB::table('category_transaction')->where('category_id', (int) $category->id)->delete();
|
||||
DB::table('category_transaction')->where('category_id', (int)$category->id)->delete();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user