Code Duplication    Length = 7-7 lines in 2 locations

src/Asset/DiscoveryAssetManager.php 2 locations

@@ 221-227 (lines=7) @@
218
    /**
219
     * {@inheritdoc}
220
     */
221
    public function hasRootAssetMapping(Uuid $uuid)
222
    {
223
        $expr = Expr::method('getUuid', Expr::method('toString', Expr::same($uuid->toString())))
224
            ->andX($this->exprBuilder->buildExpression());
225
226
        return $this->discoveryManager->hasRootBindingDescriptors($expr);
227
    }
228
229
    /**
230
     * {@inheritdoc}
@@ 292-298 (lines=7) @@
289
    /**
290
     * {@inheritdoc}
291
     */
292
    public function hasAssetMapping(Uuid $uuid)
293
    {
294
        $expr = Expr::method('getUuid', Expr::method('toString', Expr::same($uuid->toString())))
295
            ->andX($this->exprBuilder->buildExpression());
296
297
        return $this->discoveryManager->hasBindingDescriptors($expr);
298
    }
299
300
    /**
301
     * {@inheritdoc}