Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

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