Code Duplication    Length = 8-8 lines in 6 locations

lib/Doctrine/ODM/MongoDB/Id/AlnumGenerator.php 1 location

@@ 47-54 (lines=8) @@
44
    /** @var string */
45
    protected $awkwardSafeChars = '0123456789BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz';
46
47
    public function __construct()
48
    {
49
        if (self::class === static::class) {
50
            return;
51
        }
52
53
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
54
    }
55
56
    /**
57
     * Set padding on generated id

lib/Doctrine/ODM/MongoDB/Id/AutoGenerator.php 1 location

@@ 20-27 (lines=8) @@
17
 */
18
class AutoGenerator extends AbstractIdGenerator
19
{
20
    public function __construct()
21
    {
22
        if (self::class === static::class) {
23
            return;
24
        }
25
26
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
27
    }
28
29
    /** @inheritDoc */
30
    public function generate(DocumentManager $dm, object $document)

lib/Doctrine/ODM/MongoDB/Id/IncrementGenerator.php 1 location

@@ 38-45 (lines=8) @@
35
    /** @var int */
36
    protected $startingId = 1;
37
38
    public function __construct()
39
    {
40
        if (self::class === static::class) {
41
            return;
42
        }
43
44
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
45
    }
46
47
    /**
48
     * @param string $collection

lib/Doctrine/ODM/MongoDB/Id/UuidGenerator.php 1 location

@@ 36-43 (lines=8) @@
33
     */
34
    protected $salt = null;
35
36
    public function __construct()
37
    {
38
        if (self::class === static::class) {
39
            return;
40
        }
41
42
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
43
    }
44
45
    /**
46
     * Used to set the salt that will be applied to each id

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataFactory.php 1 location

@@ 59-66 (lines=8) @@
56
    /** @var EventManager The event manager instance */
57
    private $evm;
58
59
    public function __construct()
60
    {
61
        if (self::class === static::class) {
62
            return;
63
        }
64
65
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
66
    }
67
68
    public function setDocumentManager(DocumentManager $dm) : void
69
    {

lib/Doctrine/ODM/MongoDB/Query/CriteriaMerger.php 1 location

@@ 25-32 (lines=8) @@
22
 */
23
class CriteriaMerger
24
{
25
    public function __construct()
26
    {
27
        if (self::class === static::class) {
28
            return;
29
        }
30
31
        @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
32
    }
33
34
    /**
35
     * Combines any number of criteria arrays as clauses of an "$and" query.