Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1291-1298 (lines=8) @@
1288
     *
1289
     * @return Form\Tools
1290
     */
1291
    public function header(Closure $callback = null)
1292
    {
1293
        if (func_num_args() === 0) {
1294
            return $this->builder->getTools();
1295
        }
1296
1297
        $callback->call($this, $this->builder->getTools());
1298
    }
1299
1300
    /**
1301
     * Indicates if current form page is creating.
@@ 1401-1408 (lines=8) @@
1398
     *
1399
     * @return \Encore\Admin\Form\Footer
1400
     */
1401
    public function footer(Closure $callback = null)
1402
    {
1403
        if (func_num_args() === 0) {
1404
            return $this->builder()->getFooter();
1405
        }
1406
1407
        $callback($this->builder()->getFooter());
1408
    }
1409
1410
    /**
1411
     * Get current resource route url.