Completed
Branch bootstrap-refactoring (37e127)
by Adam
03:53
created
src/Bootstrap.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -92,6 +92,9 @@  discard block
 block discarded – undo
92 92
 	}
93 93
 
94 94
 
95
+	/**
96
+	 * @param integer $code
97
+	 */
95 98
 	private function terminate($code)
96 99
 	{
97 100
 		throw new TerminateException(NULL, $code);
@@ -142,6 +145,7 @@  discard block
 block discarded – undo
142 145
 
143 146
 
144 147
 	/**
148
+	 * @param string $configFile
145 149
 	 * @return Container
146 150
 	 */
147 151
 	private function createContainer($configFile, Container $bootstrapContainer = NULL)
@@ -172,6 +176,10 @@  discard block
 block discarded – undo
172 176
 	}
173 177
 
174 178
 
179
+	/**
180
+	 * @param string $color
181
+	 * @param string $backgroundColor
182
+	 */
175 183
 	private function log($message, $color = NULL, $backgroundColor = NULL)
176 184
 	{
177 185
 		echo Cli::getColoredString($message . PHP_EOL, $color, $backgroundColor);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 		$container = require_once $bootstrapFile;
134 134
 		if ($container === 1 || $container === TRUE) { // 1 = success, TRUE = already required
135 135
 			return NULL;
136
-		}elseif ($container instanceof Container) {
136
+		} elseif ($container instanceof Container) {
137 137
 			return $container;
138 138
 		}
139 139
 		$this->log("Returned value from bootstrap.php must be instance of 'Genesis\\Container\\Container' or nothing (NULL).", 'red');
Please login to merge, or discard this patch.
src/commands/Git.php 1 patch
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.
src/commands/filesystem/Filesystem.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,10 +137,10 @@
 block discarded – undo
137 137
 				if(is_file($destination)){
138 138
 					if($options['onDuplicate'] == self::ERROR){
139 139
 						$this->error("File '$destination' already exists.");
140
-					}elseif($options['onDuplicate'] == self::SKIP){
140
+					} elseif($options['onDuplicate'] == self::SKIP){
141 141
 						$this->log("File '$destination' already exists, skipping ...");
142 142
 						continue;
143
-					}elseif($options['onDuplicate'] == self::REWRITE){
143
+					} elseif($options['onDuplicate'] == self::REWRITE){
144 144
 						@unlink($destination);
145 145
 					}
146 146
 				}
Please login to merge, or discard this patch.