Code Duplication    Length = 8-8 lines in 2 locations

src/Form.php 1 location

@@ 1620-1627 (lines=8) @@
1617
     *
1618
     * @return $this
1619
     */
1620
    public function column($width, \Closure $closure)
1621
    {
1622
        $width = $width < 1 ? round(12 * $width) : $width;
1623
1624
        $this->layout->column($width, $closure);
1625
1626
        return $this;
1627
    }
1628
1629
    /**
1630
     * Initialize filter layout.

src/Grid/Filter.php 1 location

@@ 472-479 (lines=8) @@
469
     *
470
     * @return $this
471
     */
472
    public function column($width, \Closure $closure)
473
    {
474
        $width = $width < 1 ? round(12 * $width) : $width;
475
476
        $this->layout->column($width, $closure);
477
478
        return $this;
479
    }
480
481
    /**
482
     * Expand filter container.