Code Duplication    Length = 10-10 lines in 5 locations

application/modules/core/models/Base/Route.php 1 location

@@ 1131-1140 (lines=10) @@
1128
     *
1129
     * @return $this|\core\models\Route The current object, for fluid interface
1130
     */
1131
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1132
    {
1133
        if (!$parser instanceof AbstractParser) {
1134
            $parser = AbstractParser::getParser($parser);
1135
        }
1136
1137
        $this->fromArray($parser->toArray($data), $keyType);
1138
1139
        return $this;
1140
    }
1141
1142
    /**
1143
     * Build a Criteria object containing the values of all modified columns in this object.

application/modules/xbanners/models/Base/BannerImage.php 1 location

@@ 1398-1407 (lines=10) @@
1395
     *
1396
     * @return $this|\xbanners\models\BannerImage The current object, for fluid interface
1397
     */
1398
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1399
    {
1400
        if (!$parser instanceof AbstractParser) {
1401
            $parser = AbstractParser::getParser($parser);
1402
        }
1403
1404
        $this->fromArray($parser->toArray($data), $keyType);
1405
1406
        return $this;
1407
    }
1408
1409
    /**
1410
     * Build a Criteria object containing the values of all modified columns in this object.

application/modules/xbanners/models/Base/BannerImageI18n.php 1 location

@@ 1116-1125 (lines=10) @@
1113
     *
1114
     * @return $this|\xbanners\models\BannerImageI18n The current object, for fluid interface
1115
     */
1116
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1117
    {
1118
        if (!$parser instanceof AbstractParser) {
1119
            $parser = AbstractParser::getParser($parser);
1120
        }
1121
1122
        $this->fromArray($parser->toArray($data), $keyType);
1123
1124
        return $this;
1125
    }
1126
1127
    /**
1128
     * Build a Criteria object containing the values of all modified columns in this object.

application/modules/xbanners/models/Base/Banners.php 1 location

@@ 1181-1190 (lines=10) @@
1178
     *
1179
     * @return $this|\xbanners\models\Banners The current object, for fluid interface
1180
     */
1181
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
1182
    {
1183
        if (!$parser instanceof AbstractParser) {
1184
            $parser = AbstractParser::getParser($parser);
1185
        }
1186
1187
        $this->fromArray($parser->toArray($data), $keyType);
1188
1189
        return $this;
1190
    }
1191
1192
    /**
1193
     * Build a Criteria object containing the values of all modified columns in this object.

application/modules/xbanners/models/Base/BannersI18n.php 1 location

@@ 948-957 (lines=10) @@
945
     *
946
     * @return $this|\xbanners\models\BannersI18n The current object, for fluid interface
947
     */
948
    public function importFrom($parser, $data, $keyType = TableMap::TYPE_PHPNAME)
949
    {
950
        if (!$parser instanceof AbstractParser) {
951
            $parser = AbstractParser::getParser($parser);
952
        }
953
954
        $this->fromArray($parser->toArray($data), $keyType);
955
956
        return $this;
957
    }
958
959
    /**
960
     * Build a Criteria object containing the values of all modified columns in this object.