Code Duplication    Length = 6-10 lines in 2 locations

src/Controller/RequestController.php 2 locations

@@ 80-85 (lines=6) @@
77
   *
78
   * @return \Drupal\Core\Cache\CacheableJsonResponse
79
   */
80
  protected function handleSingle($schema, $operations, $debug = FALSE) {
81
    $result = $this->processor->processQuery($schema, $operations, NULL, $debug);
82
    $response = new CacheableJsonResponse($result);
83
    $response->addCacheableDependency($result);
84
    return $response;
85
  }
86
87
  /**
88
   * @param $schema
@@ 94-103 (lines=10) @@
91
   *
92
   * @return \Drupal\Core\Cache\CacheableJsonResponse
93
   */
94
  protected function handleBatch($schema, $operations, $debug = FALSE) {
95
    $result = $this->processor->processQuery($schema, $operations, NULL, $debug);
96
    $response = new CacheableJsonResponse($result);
97
98
    foreach ($result as $item) {
99
      $response->addCacheableDependency($result);
100
    }
101
102
    return $response;
103
  }
104
}
105