Code Duplication    Length = 7-7 lines in 2 locations

src/Darya/Database/Connection/MySql.php 1 location

@@ 253-259 (lines=7) @@
250
		
251
		$this->connect();
252
		
253
		if (!$this->connected()) {
254
			$this->lastResult = new Result($query, array(), array(), $this->error());
255
			
256
			$this->event('mysql.query', array($this->lastResult));
257
			
258
			return $this->lastResult;
259
		}
260
		
261
		$this->lastResult = null;
262
		

src/Darya/Database/Connection/SqlServer.php 1 location

@@ 123-129 (lines=7) @@
120
		
121
		$this->connect();
122
		
123
		if (!$this->connected()) {
124
			$this->lastResult = new Result($query, array(), array(), $this->error());
125
			
126
			$this->event('sqlserver.query', array($this->lastResult));
127
			
128
			return $this->lastResult;
129
		}
130
		
131
		$this->lastResult = null;
132