Code Duplication    Length = 10-10 lines in 2 locations

src/Card.php 1 location

@@ 326-335 (lines=10) @@
323
     * @param string|null $icon2
324
     * @return $this
325
     */
326
    public function icon($icon, $icon2 = null)
327
    {
328
        $this->icon = trim($icon);
329
330
        if (! empty($icon2)) {
331
            $this->icon2 = trim($icon2);
332
        }
333
334
        return $this;
335
    }
336
337
    /**
338
     * Adds a CardAttribute to the card.

src/CardAttribute.php 1 location

@@ 94-103 (lines=10) @@
91
     * @param string|null $icon2
92
     * @return $this
93
     */
94
    public function icon($icon, $icon2 = null)
95
    {
96
        $this->icon = trim($icon);
97
98
        if (! empty($icon2)) {
99
            $this->icon2 = trim($icon2);
100
        }
101
102
        return $this;
103
    }
104
105
    /**
106
     * Create a new instance of the attribute.