Code Duplication    Length = 9-9 lines in 2 locations

src/AppBundle/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/AppBundle/Controller/Stocks/InventoryController.php 1 location

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