Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ORM/ORMException.php 2 locations

@@ 182-188 (lines=7) @@
179
     *
180
     * @return ORMException
181
     */
182
    public static function invalidFindByCall($entityName, $fieldName, $method)
183
    {
184
        return new self(
185
            "Entity '".$entityName."' has no field '".$fieldName."'. ".
186
            "You can therefore not call '".$method."' on the entities' repository"
187
        );
188
    }
189
190
    /**
191
     * @param string $entityName
@@ 197-203 (lines=7) @@
194
     *
195
     * @return ORMException
196
     */
197
    public static function invalidMagicCall($entityName, $fieldName, $method)
198
    {
199
        return new self(
200
            "Entity '".$entityName."' has no field '".$fieldName."'. ".
201
            "You can therefore not call '".$method."' on the entities' repository"
202
        );
203
    }
204
205
    /**
206
     * @param string $entityName