Code Duplication    Length = 13-13 lines in 2 locations

src/SudokuSolverCara1.php 2 locations

@@ 131-143 (lines=13) @@
128
        return $possibilitiesValue;
129
    }
130
131
    protected function getAllHorisontalValue($location, $data)
132
    {
133
        $horisontalValue = [];
134
        $x = $location['x'];
135
        for ($i=$x; $i<=$x; $i++) {
136
            for ($j=0; $j<9; $j++) {
137
                if (!empty($data[$i][$j])) {
138
                    $horisontalValue[] = $data[$i][$j];
139
                }
140
            }
141
        }
142
        return $horisontalValue;
143
    }
144
145
    protected function getAllVerticalValue($location, $data)
146
    {
@@ 145-157 (lines=13) @@
142
        return $horisontalValue;
143
    }
144
145
    protected function getAllVerticalValue($location, $data)
146
    {
147
        $verticalValue = [];
148
        $y = $location['y'];
149
        for ($i=0; $i<9; $i++) {
150
            for ($j=$y; $j<=$y; $j++) {
151
                if (!empty($data[$i][$j])) {
152
                    $verticalValue[] = $data[$i][$j];
153
                }
154
            }
155
        }
156
        return $verticalValue;
157
    }
158
159
    protected function getAllSquereValue($location, $data)
160
    {