Code Duplication    Length = 25-25 lines in 2 locations

src/Graviton/AnalyticsBundle/Tests/Controller/DefaultControllerTest.php 1 location

@@ 196-220 (lines=25) @@
193
     *
194
     * @return array data
195
     */
196
    public function paramHandlingWithIntDataProvider()
197
    {
198
        return [
199
            [
200
                1999,
201
                9999,
202
                4
203
            ],
204
            [
205
                2014,
206
                2014,
207
                1
208
            ],
209
            [
210
                2014,
211
                2015,
212
                2
213
            ],
214
            [
215
                2014,
216
                2016,
217
                3
218
            ]
219
        ];
220
    }
221
222
    /**
223
     * test to see application of param with int on string field, if the correct records are returned

src/Graviton/RestBundle/Tests/Service/JsonPatchValidatorTest.php 1 location

@@ 35-59 (lines=25) @@
32
    /**
33
     * @return array
34
     */
35
    public static function invalidJsonPatchesProvider()
36
    {
37
        return [
38
            [
39
                '{"nestedApps":[{"name":"one"},{"name":"two"}]}',
40
                '[{"op":"add","path":"/nestedApps/7","value":{"name":"seven"}}]'
41
            ],
42
            [
43
                '{"nestedApps":[{"name":"one"},{"name":"two"}]}',
44
                '[{"op":"add","path":"/nestedApps/3","value":{"name":"seven"}}]'
45
            ],
46
            [
47
                '{"nestedApps":[{"name":"one"},{"name":"two"}]}',
48
                '[{"op":"add","path":"nestedApps/1","value":{"name":"seven"}}]'
49
            ],
50
            [
51
                '{"nestedApps":[{"name":"one"},{"name":"two"}]}',
52
                '[{"op":"add","path":0,"value":{"name":"pointer is not string"}}]'
53
            ],
54
            [
55
                '{"nestedApps":[{"name":"one"},{"name":"two"}]}',
56
                '[{"op":"add","path":"someBadPath","value":"test"}]'
57
            ]
58
        ];
59
    }
60
61
    /**
62
     * @return array