Code Duplication    Length = 8-8 lines in 2 locations

Grid/GridBuilder.php 1 location

@@ 82-89 (lines=8) @@
79
     * @param string $name
80
     * @return ColumnInterface
81
     */
82
    public function get($name) : ColumnInterface
83
    {
84
        if (isset($this->children[$name])) {
85
            return $this->children[$name];
86
        }
87
88
        throw new InvalidArgumentException(sprintf('The child with the name "%s" does not exist.', $name));
89
    }
90
91
    /**
92
     * @param string $name

Grid/AbstractGrid.php 1 location

@@ 364-371 (lines=8) @@
361
     * @param string $name
362
     * @return ColumnInterface
363
     */
364
    public function get(string $name) : ColumnInterface
365
    {
366
        if (isset($this->children[$name])) {
367
            return $this->children[$name];
368
        }
369
370
        throw new InvalidArgumentException(sprintf('The child with the name "%s" does not exist.', $name));
371
    }
372
373
    /**
374
     * @param string $name