Code Duplication    Length = 9-9 lines in 2 locations

src/Controller/Orders/OrdersController.php 1 location

@@ 43-51 (lines=9) @@
40
     * @Method("GET")
41
     * @Template()
42
     */
43
    public function indexAction(Request $request)
44
    {
45
        $return = $this->abstractIndexAction('Orders\Orders', 'orders', $request);
46
47
        $createForm = $this->createCreateForm('orders_create');
48
        $return['create_form'] = $createForm->createView();
49
50
        return $return;
51
    }
52
53
    /**
54
     * Finds and displays a Orders entity.

src/Controller/Stocks/InventoryController.php 1 location

@@ 48-56 (lines=9) @@
45
     *
46
     * @return array
47
     */
48
    public function indexAction(Request $request)
49
    {
50
        $return = $this->abstractIndexAction('Stocks\Inventory', 'inventory', $request);
51
52
        $createForm = $this->createCreateForm('inventory_create');
53
        $return['create_form'] = $createForm->createView();
54
55
        return $return;
56
    }
57
58
    /**
59
     * Displays a Inventory entity.