Completed
Push — master ( 9b09f6...8fd86e )
by Adam
03:29
created
commands/Git.php 2 patches
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,6 @@  discard block
 block discarded – undo
62 62
 
63 63
 	/**
64 64
 	 * Sets path to working directory
65
-	 * @param string $workingTree
66 65
 	 */
67 66
 	public function setWorkingDirectory($workingDirectory)
68 67
 	{
@@ -100,7 +99,7 @@  discard block
 block discarded – undo
100 99
 
101 100
 	/**
102 101
 	 * Sets git command (to be executed later)
103
-	 * @param mixed $command
102
+	 * @param string $command
104 103
 	 */
105 104
 	public function setCommand($command)
106 105
 	{
@@ -139,6 +138,9 @@  discard block
 block discarded – undo
139 138
 	}
140 139
 
141 140
 
141
+	/**
142
+	 * @param string $command
143
+	 */
142 144
 	private function exec($command)
143 145
 	{
144 146
 		$exec = new Exec();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,12 +127,12 @@
 block discarded – undo
127 127
 	public function execute()
128 128
 	{
129 129
 		$command = '';
130
-		if($this->workingDirectory !== NULL){
130
+		if ($this->workingDirectory !== NULL) {
131 131
 			$command .= 'cd ' . escapeshellarg($this->workingDirectory) . ' && ';
132 132
 		}
133 133
 		$command .= escapeshellarg($this->gitExecutable);
134 134
 		$execCommand = $command . ' ' . $this->command;
135
-		if($this->redirectStderrToStdout){
135
+		if ($this->redirectStderrToStdout) {
136 136
 			$execCommand .= ' 2>&1';
137 137
 		}
138 138
 		return $this->exec($execCommand);
Please login to merge, or discard this patch.