Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

@@ 1257-1264 (lines=8) @@
1254
     *
1255
     * @return Form\Tools
1256
     */
1257
    public function header(Closure $callback = null)
1258
    {
1259
        if (func_num_args() === 0) {
1260
            return $this->builder->getTools();
1261
        }
1262
1263
        $callback->call($this, $this->builder->getTools());
1264
    }
1265
1266
    /**
1267
     * Indicates if current form page is creating.
@@ 1367-1374 (lines=8) @@
1364
     *
1365
     * @return \Encore\Admin\Form\Footer
1366
     */
1367
    public function footer(Closure $callback = null)
1368
    {
1369
        if (func_num_args() === 0) {
1370
            return $this->builder()->getFooter();
1371
        }
1372
1373
        $callback($this->builder()->getFooter());
1374
    }
1375
1376
    /**
1377
     * Get current resource route url.