Code Duplication    Length = 10-10 lines in 5 locations

src/cli/Database/Base/Channel.php 1 location

@@ 987-996 (lines=10) @@
984
     *
985
     * @return $this|\Jalle19\StatusManager\Database\Channel The current object, for fluid interface
986
     */
987
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
988
    {
989
        if (!$parser instanceof AbstractParser) {
990
            $parser = AbstractParser::getParser($parser);
991
        }
992
993
        $this->fromArray($parser->toArray($data), $keyType);
994
995
        return $this;
996
    }
997
998
    /**
999
     * Build a Criteria object containing the values of all modified columns in this object.

src/cli/Database/Base/Connection.php 1 location

@@ 1157-1166 (lines=10) @@
1154
     *
1155
     * @return $this|\Jalle19\StatusManager\Database\Connection The current object, for fluid interface
1156
     */
1157
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1158
    {
1159
        if (!$parser instanceof AbstractParser) {
1160
            $parser = AbstractParser::getParser($parser);
1161
        }
1162
1163
        $this->fromArray($parser->toArray($data), $keyType);
1164
1165
        return $this;
1166
    }
1167
1168
    /**
1169
     * Build a Criteria object containing the values of all modified columns in this object.

src/cli/Database/Base/Instance.php 1 location

@@ 969-978 (lines=10) @@
966
     *
967
     * @return $this|\Jalle19\StatusManager\Database\Instance The current object, for fluid interface
968
     */
969
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
970
    {
971
        if (!$parser instanceof AbstractParser) {
972
            $parser = AbstractParser::getParser($parser);
973
        }
974
975
        $this->fromArray($parser->toArray($data), $keyType);
976
977
        return $this;
978
    }
979
980
    /**
981
     * Build a Criteria object containing the values of all modified columns in this object.

src/cli/Database/Base/Subscription.php 1 location

@@ 1376-1385 (lines=10) @@
1373
     *
1374
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object, for fluid interface
1375
     */
1376
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1377
    {
1378
        if (!$parser instanceof AbstractParser) {
1379
            $parser = AbstractParser::getParser($parser);
1380
        }
1381
1382
        $this->fromArray($parser->toArray($data), $keyType);
1383
1384
        return $this;
1385
    }
1386
1387
    /**
1388
     * Build a Criteria object containing the values of all modified columns in this object.

src/cli/Database/Base/User.php 1 location

@@ 1038-1047 (lines=10) @@
1035
     *
1036
     * @return $this|\Jalle19\StatusManager\Database\User The current object, for fluid interface
1037
     */
1038
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1039
    {
1040
        if (!$parser instanceof AbstractParser) {
1041
            $parser = AbstractParser::getParser($parser);
1042
        }
1043
1044
        $this->fromArray($parser->toArray($data), $keyType);
1045
1046
        return $this;
1047
    }
1048
1049
    /**
1050
     * Build a Criteria object containing the values of all modified columns in this object.