Code Duplication    Length = 10-10 lines in 3 locations

packages/core/src/Models/Task/Base/Task.php 1 location

@@ 922-931 (lines=10) @@
919
     *
920
     * @return $this|\Core\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.

packages/core/src/Models/User/Base/User.php 1 location

@@ 1169-1178 (lines=10) @@
1166
     *
1167
     * @return $this|\Core\Models\User\User The current object, for fluid interface
1168
     */
1169
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1170
    {
1171
        if (!$parser instanceof AbstractParser) {
1172
            $parser = AbstractParser::getParser($parser);
1173
        }
1174
1175
        $this->fromArray($parser->toArray($data), $keyType);
1176
1177
        return $this;
1178
    }
1179
1180
    /**
1181
     * Build a Criteria object containing the values of all modified columns in this object.

packages/selfprice/src/Models/Selfprice/Base/Selfprice.php 1 location

@@ 958-967 (lines=10) @@
955
     *
956
     * @return $this|\Selfprice\Models\Selfprice\Selfprice The current object, for fluid interface
957
     */
958
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
959
    {
960
        if (!$parser instanceof AbstractParser) {
961
            $parser = AbstractParser::getParser($parser);
962
        }
963
964
        $this->fromArray($parser->toArray($data), $keyType);
965
966
        return $this;
967
    }
968
969
    /**
970
     * Build a Criteria object containing the values of all modified columns in this object.