Code Duplication    Length = 8-8 lines in 3 locations

core/services/container/CoffeeShop.php 3 locations

@@ 316-323 (lines=8) @@
313
     * @return boolean
314
     * @throws InvalidIdentifierException
315
     */
316
    public function removeClosure($identifier)
317
    {
318
        $identifier = $this->processIdentifier($identifier);
319
        if ($this->reservoir->has($identifier)) {
320
            return $this->reservoir->remove($this->reservoir->get($identifier));
321
        }
322
        return false;
323
    }
324
325
326
@@ 349-356 (lines=8) @@
346
     * @return boolean
347
     * @throws InvalidIdentifierException
348
     */
349
    public function removeService($identifier)
350
    {
351
        $identifier = $this->processIdentifier($identifier);
352
        if ($this->carafe->has($identifier)) {
353
            return $this->carafe->remove($this->carafe->get($identifier));
354
        }
355
        return false;
356
    }
357
358
359
@@ 381-388 (lines=8) @@
378
     * @return boolean
379
     * @throws InvalidIdentifierException
380
     */
381
    public function removeRecipe($identifier)
382
    {
383
        $identifier = $this->processIdentifier($identifier);
384
        if ($this->recipes->has($identifier)) {
385
            return $this->recipes->remove($this->recipes->get($identifier));
386
        }
387
        return false;
388
    }
389
390
391