Code Duplication    Length = 10-10 lines in 5 locations

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

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

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

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

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

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

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

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

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

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