Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1352-1359 (lines=8) @@
1349
     *
1350
     * @return Form\Tools
1351
     */
1352
    public function header(Closure $callback = null)
1353
    {
1354
        if (func_num_args() === 0) {
1355
            return $this->builder->getTools();
1356
        }
1357
1358
        $callback->call($this, $this->builder->getTools());
1359
    }
1360
1361
    /**
1362
     * Indicates if current form page is creating.
@@ 1462-1469 (lines=8) @@
1459
     *
1460
     * @return \Encore\Admin\Form\Footer
1461
     */
1462
    public function footer(Closure $callback = null)
1463
    {
1464
        if (func_num_args() === 0) {
1465
            return $this->builder()->getFooter();
1466
        }
1467
1468
        $callback($this->builder()->getFooter());
1469
    }
1470
1471
    /**
1472
     * Get current resource route url.