Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1371-1378 (lines=8) @@
1368
     *
1369
     * @return Form\Tools
1370
     */
1371
    public function header(Closure $callback = null)
1372
    {
1373
        if (func_num_args() === 0) {
1374
            return $this->builder->getTools();
1375
        }
1376
1377
        $callback->call($this, $this->builder->getTools());
1378
    }
1379
1380
    /**
1381
     * Indicates if current form page is creating.
@@ 1481-1488 (lines=8) @@
1478
     *
1479
     * @return \Encore\Admin\Form\Footer
1480
     */
1481
    public function footer(Closure $callback = null)
1482
    {
1483
        if (func_num_args() === 0) {
1484
            return $this->builder()->getFooter();
1485
        }
1486
1487
        $callback($this->builder()->getFooter());
1488
    }
1489
1490
    /**
1491
     * Get current resource route url.