Code Duplication    Length = 3-3 lines in 2 locations

tests/_support/Page/Widget/Grid.php 2 locations

@@ 249-251 (lines=3) @@
246
         *  $whereNeedle += 2 && $i = 1 because xpath elements starting from 1.
247
         */
248
        $arrayForSort = [];
249
        for ($i = 1; $i <= $count; ++$i) {
250
            $arrayForSort[$i] = $this->tester->grabTextFrom("//tbody/tr[$i]/td[$whereNeedle]");
251
        }
252
        /**
253
         *  After sort() function arrayForSort start index = 0, but xpath elements starting from 1.
254
         */
@@ 256-258 (lines=3) @@
253
         *  After sort() function arrayForSort start index = 0, but xpath elements starting from 1.
254
         */
255
        sort($arrayForSort, SORT_NATURAL | SORT_FLAG_CASE);
256
        for ($i = 1; $i <= $count; ++$i) {
257
            $this->tester->see($arrayForSort[$i - 1], "//tbody/tr[$i]/td[$whereNeedle]");
258
        }
259
    }
260
}
261