Code Duplication    Length = 10-10 lines in 3 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.

packages/Price/Models/Selfprice/Base/Selfprice.php 1 location

@@ 958-967 (lines=10) @@
955
     *
956
     * @return $this|\Price\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.