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/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.

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

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