Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1248-1255 (lines=8) @@
1245
     *
1246
     * @return Form\Tools
1247
     */
1248
    public function header(Closure $callback = null)
1249
    {
1250
        if (func_num_args() === 0) {
1251
            return $this->builder->getTools();
1252
        }
1253
1254
        $callback->call($this, $this->builder->getTools());
1255
    }
1256
1257
    /**
1258
     * Indicates if current form page is creating.
@@ 1358-1365 (lines=8) @@
1355
     *
1356
     * @return \Encore\Admin\Form\Footer
1357
     */
1358
    public function footer(Closure $callback = null)
1359
    {
1360
        if (func_num_args() === 0) {
1361
            return $this->builder()->getFooter();
1362
        }
1363
1364
        $callback($this->builder()->getFooter());
1365
    }
1366
1367
    /**
1368
     * Get current resource route url.