Completed
Push — master ( e5db64...945d9a )
by Schlaefer
05:09 queued 28s
created
app/Test/Case/Controller/AppControllerTest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Test/Selenium/InlineAnswerTest.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,9 +38,13 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
app/Lib/Saito/User/SaitoUserTrait.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,8 +174,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.