Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 922-931 (lines=10) @@
919
     *
920
     * @return $this|\Models\Task\Task The current object, for fluid interface
921
     */
922
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
923
    {
924
        if (!$parser instanceof AbstractParser) {
925
            $parser = AbstractParser::getParser($parser);
926
        }
927
928
        $this->fromArray($parser->toArray($data), $keyType);
929
930
        return $this;
931
    }
932
933
    /**
934
     * Build a Criteria object containing the values of all modified columns in this object.

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

@@ 1142-1151 (lines=10) @@
1139
     *
1140
     * @return $this|\Models\User\User The current object, for fluid interface
1141
     */
1142
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1143
    {
1144
        if (!$parser instanceof AbstractParser) {
1145
            $parser = AbstractParser::getParser($parser);
1146
        }
1147
1148
        $this->fromArray($parser->toArray($data), $keyType);
1149
1150
        return $this;
1151
    }
1152
1153
    /**
1154
     * Build a Criteria object containing the values of all modified columns in this object.