Code Duplication    Length = 15-15 lines in 3 locations

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerContentTest.php 1 location

@@ 240-254 (lines=15) @@
237
238
    protected $contentTypeHandler;
239
240
    protected function getContentTypeHandler()
241
    {
242
        if (!isset($this->contentTypeHandler)) {
243
            $this->contentTypeHandler = new ContentTypeHandler(
244
                new ContentTypeGateway(
245
                    $this->getDatabaseHandler(),
246
                    $this->getLanguageMaskGenerator()
247
                ),
248
                new ContentTypeMapper($this->getConverterRegistry()),
249
                $this->createMock(ContentTypeUpdateHandler::class)
250
            );
251
        }
252
253
        return $this->contentTypeHandler;
254
    }
255
256
    protected function getConverterRegistry()
257
    {

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationSortTest.php 1 location

@@ 144-158 (lines=15) @@
141
142
    protected $contentTypeHandler;
143
144
    protected function getContentTypeHandler()
145
    {
146
        if (!isset($this->contentTypeHandler)) {
147
            $this->contentTypeHandler = new ContentTypeHandler(
148
                new ContentTypeGateway(
149
                    $this->getDatabaseHandler(),
150
                    $this->getLanguageMaskGenerator()
151
                ),
152
                new ContentTypeMapper($this->getConverterRegistry()),
153
                $this->createMock(ContentTypeUpdateHandler::class)
154
            );
155
        }
156
157
        return $this->contentTypeHandler;
158
    }
159
160
    protected $fieldRegistry;
161

eZ/Publish/Core/Search/Legacy/Tests/Content/HandlerLocationTest.php 1 location

@@ 212-226 (lines=15) @@
209
210
    protected $contentTypeHandler;
211
212
    protected function getContentTypeHandler()
213
    {
214
        if (!isset($this->contentTypeHandler)) {
215
            $this->contentTypeHandler = new ContentTypeHandler(
216
                new ContentTypeGateway(
217
                    $this->getDatabaseHandler(),
218
                    $this->getLanguageMaskGenerator()
219
                ),
220
                new ContentTypeMapper($this->getConverterRegistry()),
221
                $this->createMock(ContentTypeUpdateHandler::class)
222
            );
223
        }
224
225
        return $this->contentTypeHandler;
226
    }
227
228
    protected $fieldRegistry;
229