@@ -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 | } |
@@ -52,8 +52,11 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | public function tearDown() { |
55 | - if($this->securityWasEnabled) SecurityToken::enable(); |
|
56 | - else SecurityToken::disable(); |
|
55 | + if($this->securityWasEnabled) { |
|
56 | + SecurityToken::enable(); |
|
57 | + } else { |
|
58 | + SecurityToken::disable(); |
|
59 | + } |
|
57 | 60 | Injector::unnest(); |
58 | 61 | Config::unnest(); |
59 | 62 | parent::tearDown(); |