Code Duplication    Length = 11-11 lines in 6 locations

src/Plugin/SchemaBuilder.php 6 locations

@@ 246-256 (lines=11) @@
243
  /**
244
   * @return array
245
   */
246
  protected function getTypeMap() {
247
    if (!isset($this->cache['types'])) {
248
      if (!isset($this->cache) && ($result = $this->cacheGet('types')) !== NULL) {
249
        return $result;
250
      }
251
252
      $this->cacheSet('types', $this->buildTypeMap());
253
    }
254
255
    return $this->cache['types'];
256
  }
257
258
  /**
259
   * @return array
@@ 307-317 (lines=11) @@
304
  /**
305
   * @return array
306
   */
307
  protected function getTypeReferenceMap() {
308
    if (!isset($this->cache['types:references'])) {
309
      if (!isset($this->cache) && ($result = $this->cacheGet('types:references')) !== NULL) {
310
        return $result;
311
      }
312
313
      $this->cacheSet('types:references', $this->buildTypeReferenceMap());
314
    }
315
316
    return $this->cache['types:references'];
317
  }
318
319
  /**
320
   * @return array
@@ 346-356 (lines=11) @@
343
  /**
344
   * @return array
345
   */
346
  protected function getFieldAssociationMap() {
347
    if (!isset($this->cache['fields:associations'])) {
348
      if (!isset($this->cache) && ($result = $this->cacheGet('fields:associations')) !== NULL) {
349
        return $result;
350
      }
351
352
      $this->cacheSet('fields:associations', $this->buildFieldAssociationMap());
353
    }
354
355
    return $this->cache['fields:associations'];
356
  }
357
358
  /**
359
   * @return array
@@ 403-413 (lines=11) @@
400
  /**
401
   * @return array
402
   */
403
  protected function getTypeAssociationMap() {
404
    if (!isset($this->cache['types:associations'])) {
405
      if (!isset($this->cache) && ($result = $this->cacheGet('types:associations')) !== NULL) {
406
        return $result;
407
      }
408
409
      $this->cacheSet('types:associations', $this->buildTypeAssociationMap());
410
    }
411
412
    return $this->cache['types:associations'];
413
  }
414
415
  /**
416
   * @return array
@@ 493-503 (lines=11) @@
490
  /**
491
   * @return array
492
   */
493
  protected function getFieldMap() {
494
    if (!isset($this->cache['fields'])) {
495
      if (!isset($this->cache) && ($result = $this->cacheGet('fields')) !== NULL) {
496
        return $result;
497
      }
498
499
      $this->cacheSet('fields', $this->buildFieldMap());
500
    }
501
502
    return $this->cache['fields'];
503
  }
504
505
  /**
506
   * @return array
@@ 531-541 (lines=11) @@
528
  /**
529
   * @return array
530
   */
531
  protected function getMutationMap() {
532
    if (!isset($this->cache['mutations'])) {
533
      if (!isset($this->cache) && ($result = $this->cacheGet('mutations')) !== NULL) {
534
        return $result;
535
      }
536
537
      $this->cacheSet('mutations', $this->buildMutationMap());
538
    }
539
540
    return $this->cache['mutations'];
541
  }
542
543
  /**
544
   * @return array