Code Duplication    Length = 17-17 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Integration/Base.php 1 location

@@ 46-62 (lines=17) @@
43
     *
44
     * @return \eZ\Publish\API\Repository\Values\User\User
45
     */
46
    protected function getStubbedUser($id)
47
    {
48
        return new User(
49
            array(
50
                'content' => new Content(
51
                    array(
52
                        'versionInfo' => new VersionInfo(
53
                            array(
54
                                'contentInfo' => new ContentInfo(array('id' => $id)),
55
                            )
56
                        ),
57
                        'internalFields' => array(),
58
                    )
59
                ),
60
            )
61
        );
62
    }
63
64
    /**
65
     * @return \eZ\Publish\Core\Repository\Values\User\User

eZ/Publish/Core/Repository/Tests/Service/Mock/Base.php 1 location

@@ 259-275 (lines=17) @@
256
     *
257
     * @return \eZ\Publish\API\Repository\Values\User\User
258
     */
259
    protected function getStubbedUser($id)
260
    {
261
        return new User(
262
            array(
263
                'content' => new Content(
264
                    array(
265
                        'versionInfo' => new VersionInfo(
266
                            array(
267
                                'contentInfo' => new ContentInfo(array('id' => $id)),
268
                            )
269
                        ),
270
                        'internalFields' => array(),
271
                    )
272
                ),
273
            )
274
        );
275
    }
276
}
277