Code Duplication    Length = 11-12 lines in 4 locations

src/MergeResult.php 4 locations

@@ 83-93 (lines=11) @@
80
        return count($this->content);
81
    }
82
83
    public function countBase()
84
    {
85
        $counter = 0;
86
        foreach ($this->content as $value) {
87
            if (isset($value['base'])) {
88
                $counter++;
89
            }
90
        }
91
92
        return $counter;
93
    }
94
95
    public function countCurrent()
96
    {
@@ 95-105 (lines=11) @@
92
        return $counter;
93
    }
94
95
    public function countCurrent()
96
    {
97
        $counter = 0;
98
        foreach ($this->content as $value) {
99
            if (isset($value['current'])) {
100
                $counter++;
101
            }
102
        }
103
104
        return $counter;
105
    }
106
107
    public function countNew()
108
    {
@@ 107-118 (lines=12) @@
104
        return $counter;
105
    }
106
107
    public function countNew()
108
    {
109
        $counter = 0;
110
        foreach ($this->content as $value) {
111
            if (isset($value['base'])) {
112
                continue;
113
            }
114
            $counter++;
115
        }
116
117
        return $counter;
118
    }
119
120
    public function countRemoved()
121
    {
@@ 120-131 (lines=12) @@
117
        return $counter;
118
    }
119
120
    public function countRemoved()
121
    {
122
        $counter = 0;
123
        foreach ($this->content as $value) {
124
            if (isset($value['current'])) {
125
                continue;
126
            }
127
            $counter++;
128
        }
129
130
        return $counter;
131
    }
132
133
    public function countChanged()
134
    {