Code Duplication    Length = 16-16 lines in 2 locations

src/Form/Layout/Layout.php 1 location

@@ 59-74 (lines=16) @@
56
     * @param int      $width
57
     * @param \Closure $closure
58
     */
59
    public function column($width, \Closure $closure)
60
    {
61
        if ($this->columns->isEmpty()) {
62
            $column = $this->current;
63
64
            $column->setWidth($width);
65
        } else {
66
            $column = new Column($width);
67
68
            $this->current = $column;
69
        }
70
71
        $this->columns->push($column);
72
73
        $closure($this->parent);
74
    }
75
76
    /**
77
     * Get all columns in filter layout.

src/Grid/Filter/Layout/Layout.php 1 location

@@ 55-70 (lines=16) @@
52
     * @param int      $width
53
     * @param \Closure $closure
54
     */
55
    public function column($width, \Closure $closure)
56
    {
57
        if ($this->columns->isEmpty()) {
58
            $column = $this->current;
59
60
            $column->setWidth($width);
61
        } else {
62
            $column = new Column($width);
63
64
            $this->current = $column;
65
        }
66
67
        $this->columns->push($column);
68
69
        $closure($this->parent);
70
    }
71
72
    /**
73
     * Get all columns in filter layout.