@@ -85,8 +85,10 @@ discard block |
||
| 85 | 85 | $result = $this->controller->localReferer('controller'); |
| 86 | 86 | if (Configure::read('Saito.installed')) : |
| 87 | 87 | $expected = 'entries'; |
| 88 | - else: |
|
| 88 | + else { |
|
| 89 | + : |
|
| 89 | 90 | $expected = 'install'; |
| 91 | + } |
|
| 90 | 92 | endif; |
| 91 | 93 | $this->assertEquals($expected, $result); |
| 92 | 94 | |
@@ -95,8 +97,10 @@ discard block |
||
| 95 | 97 | $result = $this->controller->localReferer('controller'); |
| 96 | 98 | if (Configure::read('Saito.installed')) : |
| 97 | 99 | $expected = 'entries'; |
| 98 | - else: |
|
| 100 | + else { |
|
| 101 | + : |
|
| 99 | 102 | $expected = 'install'; |
| 103 | + } |
|
| 100 | 104 | endif; |
| 101 | 105 | $this->assertEquals($expected, $result); |
| 102 | 106 | |
@@ -38,9 +38,13 @@ |
||
| 38 | 38 | $this->click("css=.threadLeaf[data-id={$id}] .btn-answeringClose"); |
| 39 | 39 | // wait for answering form to be closed |
| 40 | 40 | for ($second = 0; ; $second++) { |
| 41 | - if ($second >= 60) $this->fail("timeout"); |
|
| 41 | + if ($second >= 60) { |
|
| 42 | + $this->fail("timeout"); |
|
| 43 | + } |
|
| 42 | 44 | try { |
| 43 | - if (!$this->isElementPresent("css=.threadLeaf[data-id={$id}] .entry.reply")) break; |
|
| 45 | + if (!$this->isElementPresent("css=.threadLeaf[data-id={$id}] .entry.reply")) { |
|
| 46 | + break; |
|
| 47 | + } |
|
| 44 | 48 | } catch (Exception $e) {} |
| 45 | 49 | sleep(1); |
| 46 | 50 | } |
@@ -174,8 +174,10 @@ |
||
| 174 | 174 | protected static function _maxAccessionForUserType($userType) { |
| 175 | 175 | if (isset(self::$__accessions[$userType])) : |
| 176 | 176 | return self::$__accessions[$userType]; |
| 177 | - else : |
|
| 177 | + else { |
|
| 178 | + : |
|
| 178 | 179 | return 0; |
| 180 | + } |
|
| 179 | 181 | endif; |
| 180 | 182 | } |
| 181 | 183 | |