Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

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