Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 2 locations

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