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

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

@@ 1217-1226 (lines=10) @@
1214
     *
1215
     * @return $this|\Jalle19\StatusManager\Database\Input The current object, for fluid interface
1216
     */
1217
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1218
    {
1219
        if (!$parser instanceof AbstractParser) {
1220
            $parser = AbstractParser::getParser($parser);
1221
        }
1222
1223
        $this->fromArray($parser->toArray($data), $keyType);
1224
1225
        return $this;
1226
    }
1227
1228
    /**
1229
     * Build a Criteria object containing the values of all modified columns in this object.

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

@@ 1018-1027 (lines=10) @@
1015
     *
1016
     * @return $this|\Jalle19\StatusManager\Database\Instance The current object, for fluid interface
1017
     */
1018
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1019
    {
1020
        if (!$parser instanceof AbstractParser) {
1021
            $parser = AbstractParser::getParser($parser);
1022
        }
1023
1024
        $this->fromArray($parser->toArray($data), $keyType);
1025
1026
        return $this;
1027
    }
1028
1029
    /**
1030
     * Build a Criteria object containing the values of all modified columns in this object.

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

@@ 1469-1478 (lines=10) @@
1466
     *
1467
     * @return $this|\Jalle19\StatusManager\Database\Subscription The current object, for fluid interface
1468
     */
1469
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1470
    {
1471
        if (!$parser instanceof AbstractParser) {
1472
            $parser = AbstractParser::getParser($parser);
1473
        }
1474
1475
        $this->fromArray($parser->toArray($data), $keyType);
1476
1477
        return $this;
1478
    }
1479
1480
    /**
1481
     * Build a Criteria object containing the values of all modified columns in this object.