Code Duplication    Length = 10-10 lines in 2 locations

src/Data/EntityRepository.php 2 locations

@@ 77-86 (lines=10) @@
74
     * @throws SlumberRuntimeException When the given subject cannot be stored in this repository
75
     * @throws DuplicateError          When the underlying database permits the insert, due to a duplicate key exception
76
     */
77
    public function insert($subject)
78
    {
79
        if ($subject === null || ! \is_object($subject)) {
80
            return null;
81
        }
82
83
        $this->checkObjectCompatibility($subject);
84
85
        return $this->driver->insert($subject);
86
    }
87
88
    /**
89
     * @param mixed $subject
@@ 96-105 (lines=10) @@
93
     * @throws SlumberRuntimeException When the given subject cannot be stored in this repository
94
     * @throws DuplicateError          When the underlying database permits the insert, due to a duplicate key exception
95
     */
96
    public function save($subject)
97
    {
98
        if ($subject === null || ! \is_object($subject)) {
99
            return null;
100
        }
101
102
        $this->checkObjectCompatibility($subject);
103
104
        return $this->driver->save($subject);
105
    }
106
107
    /**
108
     * @param $query