Code Duplication    Length = 11-13 lines in 2 locations

code/model/jobs/DNDataTransfer.php 1 location

@@ 176-188 (lines=13) @@
173
			$this->AuthorID = Member::currentUserID();
174
		}
175
176
		if($this->AuthorID) {
177
			$author = $this->Author();
178
			$message = sprintf(
179
				'Data transfer on %s (%s, %s) initiated by %s (%s), with IP address %s',
180
				$env->getFullName(),
181
				$this->Direction,
182
				$this->Mode,
183
				$author->getName(),
184
				$author->Email,
185
				Controller::curr()->getRequest()->getIP()
186
			);
187
			$log->write($message);
188
		}
189
190
		$token = Resque::enqueue('snapshot', 'DataTransferJob', $args, true);
191
		$this->ResqueToken = $token;

code/model/jobs/DNDeployment.php 1 location

@@ 385-395 (lines=11) @@
382
			$this->DeployerID = Member::currentUserID();
383
		}
384
385
		if($this->DeployerID) {
386
			$deployer = $this->Deployer();
387
			$message = sprintf(
388
				'Deploy to %s initiated by %s (%s), with IP address %s',
389
				$environment->getFullName(),
390
				$deployer->getName(),
391
				$deployer->Email,
392
				\Controller::curr()->getRequest()->getIP()
393
			);
394
			$log->write($message);
395
		}
396
397
		return Resque::enqueue('deploy', 'DeployJob', $args, true);
398
	}