Completed
Branch 3.1 (d6060c)
by Gordon
04:27
created
code/ContactPage.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@  discard block
 block discarded – undo
110 110
 		Requirements::javascript( 'mysite/javascript/jQuery.js' );
111 111
 		if ( Director::is_ajax() ) {
112 112
 			$this->isAjax = true;
113
-		}
114
-		else {
113
+		} else {
115 114
 			$this->isAjax = false;
116 115
 		}
117 116
 		parent::init();
@@ -124,8 +123,7 @@  discard block
 block discarded – undo
124 123
 
125 124
 		if ( $this->isAjax ) {
126 125
 			return $this->renderWith( "ContactPageModal" );
127
-		}
128
-		else {
126
+		} else {
129 127
 			return array();
130 128
 		}
131 129
 
@@ -212,8 +210,7 @@  discard block
 block discarded – undo
212 210
 			$result['success'] = 1;
213 211
 			echo json_encode( $result );
214 212
 			die;
215
-		}
216
-		else {
213
+		} else {
217 214
 			Controller::redirect( Director::baseURL(). $this->URLSegment . "/?success=1" );
218 215
 		}
219 216
 	}
Please login to merge, or discard this patch.