Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

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