Completed
Push — master ( 9a8b6d...8a48d1 )
by Matt
02:41
created
google/recaptcha.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 			$opts = array(
94 94
 					CURLOPT_HEADER => false,
95 95
 					CURLOPT_RETURNTRANSFER => true,
96
-					CURLOPT_USERAGENT => 'ReCaptcha ' . self::VERSION,
96
+					CURLOPT_USERAGENT => 'ReCaptcha '.self::VERSION,
97 97
 					CURLOPT_AUTOREFERER => true,
98 98
 					CURLOPT_CONNECTTIMEOUT => 60,
99 99
 					CURLOPT_TIMEOUT => 60,
@@ -105,21 +105,21 @@  discard block
 block discarded – undo
105 105
 			{
106 106
 				$opts = array_merge($opts, $this->curl_opts);
107 107
 			}
108
-			$conn = curl_init($path . $req);
108
+			$conn = curl_init($path.$req);
109 109
 			curl_setopt_array($conn, $opts);
110 110
 			$response = curl_exec($conn);
111 111
 			// handle a connection error
112 112
 			$errno = curl_errno($conn);
113 113
 			if ($errno !== 0)
114 114
 			{
115
-				throw new Exception('Fatal error while contacting reCAPTCHA. ' . $errno . ': ' . curl_error($conn) . '.');
115
+				throw new Exception('Fatal error while contacting reCAPTCHA. '.$errno.': '.curl_error($conn).'.');
116 116
 			}
117 117
 			curl_close($conn);
118 118
 		}
119 119
 		else
120 120
 		{
121 121
 			// fallback
122
-			$response = file_get_contents($path . $req);
122
+			$response = file_get_contents($path.$req);
123 123
 		}
124 124
 		return $response;
125 125
 	}
Please login to merge, or discard this patch.
captcha/recaptcha2.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
 			}
159 159
 
160 160
 			$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_CONFIG_VISUAL');
161
-			trigger_error($this->user->lang['CONFIG_UPDATED'] . adm_back_link($module->u_action));
161
+			trigger_error($this->user->lang['CONFIG_UPDATED'].adm_back_link($module->u_action));
162 162
 		}
163 163
 		else if ($this->request->is_set_post('submit'))
164 164
 		{
165
-			trigger_error($this->user->lang['FORM_INVALID'] . adm_back_link($module->u_action));
165
+			trigger_error($this->user->lang['FORM_INVALID'].adm_back_link($module->u_action));
166 166
 		}
167 167
 
168 168
 		foreach ($captcha_vars as $captcha_var => $template_var)
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 		else
198 198
 		{
199 199
 			$contact_link = phpbb_get_board_contact_link($this->config, $this->phpbb_root_path, $this->phpEx);
200
-			$explain = $this->user->lang(($this->type != CONFIRM_POST) ? 'GOTHICK_RECAPTCHA2_CONFIRM_EXPLAIN' : 'GOTHICK_RECAPTCHA2_POST_CONFIRM_EXPLAIN', '<a href="' . $contact_link . '">', '</a>');
200
+			$explain = $this->user->lang(($this->type != CONFIRM_POST) ? 'GOTHICK_RECAPTCHA2_CONFIRM_EXPLAIN' : 'GOTHICK_RECAPTCHA2_POST_CONFIRM_EXPLAIN', '<a href="'.$contact_link.'">', '</a>');
201 201
 
202 202
 			// Language code for reCAPTCHA to use
203 203
 			$recaptcha2_lang = $this->user->lang('GOTHICK_RECAPTCHA2_LANG');
Please login to merge, or discard this patch.