Code Duplication    Length = 7-7 lines in 2 locations

app/Models/Task/Base/Task.php 1 location

@@ 745-751 (lines=7) @@
742
     *                     Defaults to TableMap::TYPE_PHPNAME.
743
     * @return mixed Value of field.
744
     */
745
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
746
    {
747
        $pos = TaskTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
748
        $field = $this->getByPosition($pos);
749
750
        return $field;
751
    }
752
753
    /**
754
     * Retrieves a field from the object by Position as specified in the xml schema.

app/Models/User/Base/User.php 1 location

@@ 925-931 (lines=7) @@
922
     *                     Defaults to TableMap::TYPE_PHPNAME.
923
     * @return mixed Value of field.
924
     */
925
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
926
    {
927
        $pos = UserTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
928
        $field = $this->getByPosition($pos);
929
930
        return $field;
931
    }
932
933
    /**
934
     * Retrieves a field from the object by Position as specified in the xml schema.