mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Fixed inspection issues.
This commit is contained in:
parent
16497b76c5
commit
96d7e4c9f4
45 changed files with 448 additions and 89 deletions
|
@ -52,8 +52,10 @@ class TreeController extends AbstractController
|
|||
|
||||
/**
|
||||
* @Route("/tools", name="tree_tools")
|
||||
* @param ToolsTreeBuilder $builder
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function tools(ToolsTreeBuilder $builder)
|
||||
public function tools(ToolsTreeBuilder $builder): JsonResponse
|
||||
{
|
||||
$tree = $builder->getTree();
|
||||
|
||||
|
@ -63,8 +65,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/category/{id}", name="tree_category")
|
||||
* @Route("/categories")
|
||||
* @param Category|null $category
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function categoryTree(?Category $category = null)
|
||||
public function categoryTree(?Category $category = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Category::class, $category);
|
||||
|
||||
|
@ -74,8 +78,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/footprint/{id}", name="tree_footprint")
|
||||
* @Route("/footprints")
|
||||
* @param Footprint|null $footprint
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function footprintTree(?Footprint $footprint = null)
|
||||
public function footprintTree(?Footprint $footprint = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Footprint::class, $footprint);
|
||||
|
||||
|
@ -85,8 +91,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/location/{id}", name="tree_location")
|
||||
* @Route("/locations")
|
||||
* @param Storelocation|null $location
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function locationTree(?Storelocation $location = null)
|
||||
public function locationTree(?Storelocation $location = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Storelocation::class, $location);
|
||||
|
||||
|
@ -96,8 +104,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/manufacturer/{id}", name="tree_manufacturer")
|
||||
* @Route("/manufacturers")
|
||||
* @param Manufacturer|null $manufacturer
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function manufacturerTree(?Manufacturer $manufacturer = null)
|
||||
public function manufacturerTree(?Manufacturer $manufacturer = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Manufacturer::class, $manufacturer);
|
||||
|
||||
|
@ -107,8 +117,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/supplier/{id}", name="tree_supplier")
|
||||
* @Route("/suppliers")
|
||||
* @param Supplier|null $supplier
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function supplierTree(?Supplier $supplier = null)
|
||||
public function supplierTree(?Supplier $supplier = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Supplier::class, $supplier);
|
||||
|
||||
|
@ -118,8 +130,10 @@ class TreeController extends AbstractController
|
|||
/**
|
||||
* @Route("/device/{id}", name="tree_device")
|
||||
* @Route("/devices")
|
||||
* @param Device|null $device
|
||||
* @return JsonResponse
|
||||
*/
|
||||
public function deviceTree(?Device $device = null)
|
||||
public function deviceTree(?Device $device = null): JsonResponse
|
||||
{
|
||||
$tree = $this->treeGenerator->getTreeView(Device::class, $device, '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue