Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1376-1383 (lines=8) @@
1373
     *
1374
     * @return Form\Tools
1375
     */
1376
    public function header(Closure $callback = null)
1377
    {
1378
        if (func_num_args() === 0) {
1379
            return $this->builder->getTools();
1380
        }
1381
1382
        $callback->call($this, $this->builder->getTools());
1383
    }
1384
1385
    /**
1386
     * Indicates if current form page is creating.
@@ 1486-1493 (lines=8) @@
1483
     *
1484
     * @return \Encore\Admin\Form\Footer
1485
     */
1486
    public function footer(Closure $callback = null)
1487
    {
1488
        if (func_num_args() === 0) {
1489
            return $this->builder()->getFooter();
1490
        }
1491
1492
        $callback($this->builder()->getFooter());
1493
    }
1494
1495
    /**
1496
     * Get current resource route url.