Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

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