Code Duplication    Length = 9-9 lines in 2 locations

lib/Service/QueueService.php 2 locations

@@ 130-138 (lines=9) @@
127
	 *
128
	 * @return mixed
129
	 */
130
	public function countMessages() {
131
		try {
132
			$stats = msg_stat_queue ( $this->queue );
133
			$this->logger->debug ( 'Current message count: ' . json_encode ( $stats ['msg_qnum'] ), [ 
134
					'app' => 'ocr' 
135
			] );
136
			return $stats ['msg_qnum'];
137
		} catch ( Exception $e ) {
138
			$this->handleException ( $e );
139
		}
140
	}
141
	
@@ 148-156 (lines=9) @@
145
	 *
146
	 * @return mixed
147
	 */
148
	public function countActiveProcesses() {
149
		try {
150
			$stats = msg_stat_queue ( $this->statusqueue );
151
			$this->logger->debug ( 'Current active processing count: ' . json_encode ( $stats ['msg_qnum'] ), [ 
152
					'app' => 'ocr' 
153
			] );
154
			return $stats ['msg_qnum'];
155
		} catch ( Exception $e ) {
156
			$this->handleException ( $e );
157
		}
158
	}
159