@@ -36,7 +36,9 @@ discard block |
||
| 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 |
||
| 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 | } |