Code Duplication    Length = 10-10 lines in 4 locations

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

@@ 206-215 (lines=10) @@
203
     *
204
     * @return ChildBannerImageI18n|array|mixed the result, formatted by the current formatter
205
     */
206
    protected function findPkComplex($key, ConnectionInterface $con)
207
    {
208
        // As the query uses a PK condition, no limit(1) is necessary.
209
        $criteria = $this->isKeepQuery() ? clone $this : $this;
210
        $dataFetcher = $criteria
211
            ->filterByPrimaryKey($key)
212
            ->doSelect($con);
213
214
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
215
    }
216
217
    /**
218
     * Find objects by primary key

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

@@ 237-246 (lines=10) @@
234
     *
235
     * @return ChildBannerImage|array|mixed the result, formatted by the current formatter
236
     */
237
    protected function findPkComplex($key, ConnectionInterface $con)
238
    {
239
        // As the query uses a PK condition, no limit(1) is necessary.
240
        $criteria = $this->isKeepQuery() ? clone $this : $this;
241
        $dataFetcher = $criteria
242
            ->filterByPrimaryKey($key)
243
            ->doSelect($con);
244
245
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
246
    }
247
248
    /**
249
     * Find objects by primary key

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

@@ 191-200 (lines=10) @@
188
     *
189
     * @return ChildBannersI18n|array|mixed the result, formatted by the current formatter
190
     */
191
    protected function findPkComplex($key, ConnectionInterface $con)
192
    {
193
        // As the query uses a PK condition, no limit(1) is necessary.
194
        $criteria = $this->isKeepQuery() ? clone $this : $this;
195
        $dataFetcher = $criteria
196
            ->filterByPrimaryKey($key)
197
            ->doSelect($con);
198
199
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
200
    }
201
202
    /**
203
     * Find objects by primary key

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

@@ 218-227 (lines=10) @@
215
     *
216
     * @return ChildBanners|array|mixed the result, formatted by the current formatter
217
     */
218
    protected function findPkComplex($key, ConnectionInterface $con)
219
    {
220
        // As the query uses a PK condition, no limit(1) is necessary.
221
        $criteria = $this->isKeepQuery() ? clone $this : $this;
222
        $dataFetcher = $criteria
223
            ->filterByPrimaryKey($key)
224
            ->doSelect($con);
225
226
        return $criteria->getFormatter()->init($criteria)->formatOne($dataFetcher);
227
    }
228
229
    /**
230
     * Find objects by primary key