Completed
Pull Request — master (#16)
by Helpful
02:41
created
code/providers/HunSpellProvider.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,9 @@  discard block
 block discarded – undo
36 36
 		);
37 37
 		// Invoke command
38 38
 		$proc = proc_open($command, $descriptorSpecs, $pipes, null, $env);
39
-		if (!is_resource($proc)) return 255;
39
+		if (!is_resource($proc)) {
40
+			return 255;
41
+		}
40 42
 
41 43
 		// Send content as input
42 44
 		fwrite($pipes[0], $input);
@@ -88,6 +90,8 @@  discard block
 block discarded – undo
88 90
 
89 91
 	public function getSuggestions($locale, $word) {
90 92
 		$results = $this->getResults($locale, array($word));
91
-		if(isset($results[$word])) return $results[$word];
93
+		if(isset($results[$word])) {
94
+			return $results[$word];
95
+		}
92 96
 	}
93 97
 }
Please login to merge, or discard this patch.