Code Duplication    Length = 11-13 lines in 2 locations

code/model/jobs/DNDeployment.php 1 location

@@ 334-344 (lines=11) @@
331
			$this->DeployerID = Member::currentUserID();
332
		}
333
334
		if($this->DeployerID) {
335
			$deployer = $this->Deployer();
336
			$message = sprintf(
337
				'Deploy to %s initiated by %s (%s), with IP address %s',
338
				$environment->getFullName(),
339
				$deployer->getName(),
340
				$deployer->Email,
341
				Controller::curr()->getRequest()->getIP()
342
			);
343
			$log->write($message);
344
		}
345
346
		return Resque::enqueue('deploy', 'DeployJob', $args, true);
347
	}

code/model/jobs/DNDataTransfer.php 1 location

@@ 162-174 (lines=13) @@
159
			$this->AuthorID = Member::currentUserID();
160
		}
161
162
		if($this->AuthorID) {
163
			$author = $this->Author();
164
			$message = sprintf(
165
				'Data transfer on %s (%s, %s) initiated by %s (%s), with IP address %s',
166
				$env->getFullName(),
167
				$this->Direction,
168
				$this->Mode,
169
				$author->getName(),
170
				$author->Email,
171
				Controller::curr()->getRequest()->getIP()
172
			);
173
			$log->write($message);
174
		}
175
176
		$token = Resque::enqueue('snapshot', 'DataTransferJob', $args, true);
177
		$this->ResqueToken = $token;