Code Duplication    Length = 11-12 lines in 2 locations

src/Wrap/Wrapper.php 2 locations

@@ 46-57 (lines=12) @@
43
     *
44
     * @return string[]
45
     */
46
    public function wrap($input)
47
    {
48
        $input = (array) $input;
49
50
        $out = [];
51
        foreach ($input as $line) {
52
            foreach ($this->chunk($line) as $new) {
53
                $out[] = $new;
54
            }
55
        }
56
        return $out;
57
    }
58
59
    /**
60
     * @param string|string[] $input
@@ 64-74 (lines=11) @@
61
     *
62
     * @return string[]
63
     */
64
    public function trim($input)
65
    {
66
        $input = (array) $input;
67
68
        $out = [];
69
        foreach ($input as $line) {
70
            $chunk = $this->chunk($line);
71
            $out[] = reset($chunk);
72
        }
73
        return $out;
74
    }
75
76
    /**
77
     * @param string $line