Code Duplication    Length = 7-7 lines in 2 locations

src/Oro/Bundle/IntegrationBundle/Entity/Repository/ChannelRepository.php 2 locations

@@ 145-151 (lines=7) @@
142
     *
143
     * @return QueryBuilder
144
     */
145
    protected function getQBSyncJobsCount($commandName, $arguments = null, $states = null)
146
    {
147
        $qb = $this->getQBSyncJobs($commandName, $arguments, $states);
148
        $qb->select('count(j.id)');
149
150
        return $qb;
151
    }
152
153
    /**
154
     * @param string               $commandName
@@ 160-166 (lines=7) @@
157
     *
158
     * @return int
159
     */
160
    public function getSyncJobsCount($commandName, $states = null, $arguments = null)
161
    {
162
        /** @var QueryBuilder $qb */
163
        $qb = $this->getQBSyncJobsCount($commandName, $arguments, $states);
164
165
        return (int)$qb->getQuery()->getSingleScalarResult();
166
    }
167
168
    /**
169
     * Returns latest status for integration's connector and code if it exists.