Completed
Push — master ( 592cc9...b664a6 )
by Angus
02:30
created
application/third_party/asset-helper/helpers/asset_helper.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 
3 3
 /**
4 4
  * Sekati CodeIgniter Asset Helper
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
  * @return  string
52 52
  */
53 53
 
54
-if (!function_exists('asset_url')) {
54
+if(!function_exists('asset_url')) {
55 55
 	function asset_url()
56 56
 	{
57 57
 		//get an instance of CI so we can access our configuration
58
-		$CI =& get_instance();
58
+		$CI = & get_instance();
59 59
 
60 60
 		//return the full asset path
61 61
 		return $CI->config->slash_item('static_url')/* . $CI->config->item('asset_path')*/;
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
  * @access  public
69 69
  * @return  string
70 70
  */
71
-if (!function_exists('css_url')) {
71
+if(!function_exists('css_url')) {
72 72
 	function css_url()
73 73
 	{
74
-		$CI =& get_instance();
74
+		$CI = & get_instance();
75 75
 
76
-		return $CI->config->slash_item('static_url') . $CI->config->item('css_path');
76
+		return $CI->config->slash_item('static_url').$CI->config->item('css_path');
77 77
 	}
78 78
 }
79 79
 
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
  * @access  public
84 84
  * @return  string
85 85
  */
86
-if (!function_exists('less_url')) {
86
+if(!function_exists('less_url')) {
87 87
 	function less_url()
88 88
 	{
89
-		$CI =& get_instance();
89
+		$CI = & get_instance();
90 90
 
91
-		return $CI->config->slash_item('static_url') . $CI->config->item('less_path');
91
+		return $CI->config->slash_item('static_url').$CI->config->item('less_path');
92 92
 	}
93 93
 }
94 94
 
@@ -98,12 +98,12 @@  discard block
 block discarded – undo
98 98
  * @access  public
99 99
  * @return  string
100 100
  */
101
-if (!function_exists('js_url')) {
101
+if(!function_exists('js_url')) {
102 102
 	function js_url()
103 103
 	{
104
-		$CI =& get_instance();
104
+		$CI = & get_instance();
105 105
 
106
-		return $CI->config->slash_item('static_url') . $CI->config->item('js_path');
106
+		return $CI->config->slash_item('static_url').$CI->config->item('js_path');
107 107
 	}
108 108
 }
109 109
 
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
  * @access  public
114 114
  * @return  string
115 115
  */
116
-if (!function_exists('img_url')) {
116
+if(!function_exists('img_url')) {
117 117
 	function img_url()
118 118
 	{
119
-		$CI =& get_instance();
119
+		$CI = & get_instance();
120 120
 
121
-		return $CI->config->slash_item('static_url') . $CI->config->item('img_path');
121
+		return $CI->config->slash_item('static_url').$CI->config->item('img_path');
122 122
 	}
123 123
 }
124 124
 
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
  * @access  public
129 129
  * @return  string
130 130
  */
131
-if (!function_exists('swf_url')) {
131
+if(!function_exists('swf_url')) {
132 132
 	function swf_url()
133 133
 	{
134
-		$CI =& get_instance();
134
+		$CI = & get_instance();
135 135
 
136
-		return $CI->config->slash_item('static_url') . $CI->config->item('swf_path');
136
+		return $CI->config->slash_item('static_url').$CI->config->item('swf_path');
137 137
 	}
138 138
 }
139 139
 
@@ -143,12 +143,12 @@  discard block
 block discarded – undo
143 143
  * @access  public
144 144
  * @return  string
145 145
  */
146
-if (!function_exists('upload_url')) {
146
+if(!function_exists('upload_url')) {
147 147
 	function upload_url()
148 148
 	{
149
-		$CI =& get_instance();
149
+		$CI = & get_instance();
150 150
 
151
-		return base_url() . $CI->config->item('upload_path');
151
+		return base_url().$CI->config->item('upload_path');
152 152
 	}
153 153
 }
154 154
 
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
  * @access  public
159 159
  * @return  string
160 160
  */
161
-if (!function_exists('download_url')) {
161
+if(!function_exists('download_url')) {
162 162
 	function download_url()
163 163
 	{
164
-		$CI =& get_instance();
164
+		$CI = & get_instance();
165 165
 
166
-		return base_url() . $CI->config->item('download_path');
166
+		return base_url().$CI->config->item('download_path');
167 167
 	}
168 168
 }
169 169
 
@@ -173,12 +173,12 @@  discard block
 block discarded – undo
173 173
  * @access  public
174 174
  * @return  string
175 175
  */
176
-if (!function_exists('xml_url')) {
176
+if(!function_exists('xml_url')) {
177 177
 	function xml_url()
178 178
 	{
179
-		$CI =& get_instance();
179
+		$CI = & get_instance();
180 180
 
181
-		return base_url() . $CI->config->item('xml_path');
181
+		return base_url().$CI->config->item('xml_path');
182 182
 	}
183 183
 }
184 184
 
@@ -192,13 +192,13 @@  discard block
 block discarded – undo
192 192
  * @access  public
193 193
  * @return  string
194 194
  */
195
-if (!function_exists('asset_path')) {
195
+if(!function_exists('asset_path')) {
196 196
 	function asset_path()
197 197
 	{
198 198
 		//get an instance of CI so we can access our configuration
199
-		$CI =& get_instance();
199
+		$CI = & get_instance();
200 200
 
201
-		return FCPATH . $CI->config->item('asset_path');
201
+		return FCPATH.$CI->config->item('asset_path');
202 202
 	}
203 203
 }
204 204
 
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
  * @access  public
209 209
  * @return  string
210 210
  */
211
-if (!function_exists('css_path')) {
211
+if(!function_exists('css_path')) {
212 212
 	function css_path()
213 213
 	{
214 214
 		//get an instance of CI so we can access our configuration
215
-		$CI =& get_instance();
215
+		$CI = & get_instance();
216 216
 
217
-		return FCPATH . $CI->config->item('css_path');
217
+		return FCPATH.$CI->config->item('css_path');
218 218
 	}
219 219
 }
220 220
 
@@ -224,13 +224,13 @@  discard block
 block discarded – undo
224 224
  * @access  public
225 225
  * @return  string
226 226
  */
227
-if (!function_exists('less_path')) {
227
+if(!function_exists('less_path')) {
228 228
 	function less_path()
229 229
 	{
230 230
 		//get an instance of CI so we can access our configuration
231
-		$CI =& get_instance();
231
+		$CI = & get_instance();
232 232
 
233
-		return FCPATH . $CI->config->item('less_path');
233
+		return FCPATH.$CI->config->item('less_path');
234 234
 	}
235 235
 }
236 236
 
@@ -240,13 +240,13 @@  discard block
 block discarded – undo
240 240
  * @access  public
241 241
  * @return  string
242 242
  */
243
-if (!function_exists('js_path')) {
243
+if(!function_exists('js_path')) {
244 244
 	function js_path()
245 245
 	{
246 246
 		//get an instance of CI so we can access our configuration
247
-		$CI =& get_instance();
247
+		$CI = & get_instance();
248 248
 
249
-		return FCPATH . $CI->config->item('js_path');
249
+		return FCPATH.$CI->config->item('js_path');
250 250
 	}
251 251
 }
252 252
 
@@ -256,13 +256,13 @@  discard block
 block discarded – undo
256 256
  * @access  public
257 257
  * @return  string
258 258
  */
259
-if (!function_exists('img_path')) {
259
+if(!function_exists('img_path')) {
260 260
 	function img_path()
261 261
 	{
262 262
 		//get an instance of CI so we can access our configuration
263
-		$CI =& get_instance();
263
+		$CI = & get_instance();
264 264
 
265
-		return FCPATH . $CI->config->item('img_path');
265
+		return FCPATH.$CI->config->item('img_path');
266 266
 	}
267 267
 }
268 268
 
@@ -272,12 +272,12 @@  discard block
 block discarded – undo
272 272
  * @access  public
273 273
  * @return  string
274 274
  */
275
-if (!function_exists('swf_path')) {
275
+if(!function_exists('swf_path')) {
276 276
 	function swf_path()
277 277
 	{
278
-		$CI =& get_instance();
278
+		$CI = & get_instance();
279 279
 
280
-		return FCPATH . $CI->config->item('swf_path');
280
+		return FCPATH.$CI->config->item('swf_path');
281 281
 	}
282 282
 }
283 283
 
@@ -287,12 +287,12 @@  discard block
 block discarded – undo
287 287
  * @access  public
288 288
  * @return  string
289 289
  */
290
-if (!function_exists('xml_path')) {
290
+if(!function_exists('xml_path')) {
291 291
 	function xml_path()
292 292
 	{
293
-		$CI =& get_instance();
293
+		$CI = & get_instance();
294 294
 
295
-		return FCPATH . $CI->config->item('xml_path');
295
+		return FCPATH.$CI->config->item('xml_path');
296 296
 	}
297 297
 }
298 298
 
@@ -302,12 +302,12 @@  discard block
 block discarded – undo
302 302
  * @access  public
303 303
  * @return  string
304 304
  */
305
-if (!function_exists('upload_path')) {
305
+if(!function_exists('upload_path')) {
306 306
 	function upload_path()
307 307
 	{
308
-		$CI =& get_instance();
308
+		$CI = & get_instance();
309 309
 
310
-		return FCPATH . $CI->config->item('upload_path');
310
+		return FCPATH.$CI->config->item('upload_path');
311 311
 	}
312 312
 }
313 313
 
@@ -317,12 +317,12 @@  discard block
 block discarded – undo
317 317
  * @access  public
318 318
  * @return  string
319 319
  */
320
-if (!function_exists('upload_path_relative')) {
320
+if(!function_exists('upload_path_relative')) {
321 321
 	function upload_path_relative()
322 322
 	{
323
-		$CI =& get_instance();
323
+		$CI = & get_instance();
324 324
 
325
-		return './' . $CI->config->item('upload_path');
325
+		return './'.$CI->config->item('upload_path');
326 326
 	}
327 327
 }
328 328
 
@@ -332,12 +332,12 @@  discard block
 block discarded – undo
332 332
  * @access  public
333 333
  * @return  string
334 334
  */
335
-if (!function_exists('download_path')) {
335
+if(!function_exists('download_path')) {
336 336
 	function download_path()
337 337
 	{
338
-		$CI =& get_instance();
338
+		$CI = & get_instance();
339 339
 
340
-		return FCPATH . $CI->config->item('download_path');
340
+		return FCPATH.$CI->config->item('download_path');
341 341
 	}
342 342
 }
343 343
 
@@ -347,12 +347,12 @@  discard block
 block discarded – undo
347 347
  * @access  public
348 348
  * @return  string
349 349
  */
350
-if (!function_exists('download_path_relative')) {
350
+if(!function_exists('download_path_relative')) {
351 351
 	function download_path_relative()
352 352
 	{
353
-		$CI =& get_instance();
353
+		$CI = & get_instance();
354 354
 
355
-		return './' . $CI->config->item('download_path');
355
+		return './'.$CI->config->item('download_path');
356 356
 	}
357 357
 }
358 358
 
@@ -369,10 +369,10 @@  discard block
 block discarded – undo
369 369
  *
370 370
  * @return  string
371 371
  */
372
-if (!function_exists('css')) {
372
+if(!function_exists('css')) {
373 373
 	function css($file, $media = 'all')
374 374
 	{
375
-		return '<link rel="stylesheet" type="text/css" href="' . css_url() . $file . '" media="' . $media . '">' . "\n";
375
+		return '<link rel="stylesheet" type="text/css" href="'.css_url().$file.'" media="'.$media.'">'."\n";
376 376
 	}
377 377
 }
378 378
 
@@ -385,10 +385,10 @@  discard block
 block discarded – undo
385 385
  *
386 386
  * @return  string
387 387
  */
388
-if (!function_exists('less')) {
388
+if(!function_exists('less')) {
389 389
 	function less($file)
390 390
 	{
391
-		return '<link rel="stylesheet/less" type="text/css" href="' . less_url() . $file . '">' . "\n";
391
+		return '<link rel="stylesheet/less" type="text/css" href="'.less_url().$file.'">'."\n";
392 392
 	}
393 393
 }
394 394
 
@@ -402,14 +402,14 @@  discard block
 block discarded – undo
402 402
  *
403 403
  * @return  string
404 404
  */
405
-if (!function_exists('js')) {
405
+if(!function_exists('js')) {
406 406
 	function js($file, $atts = array())
407 407
 	{
408
-		$element = '<script type="text/javascript" src="' . js_url() . $file . '"';
408
+		$element = '<script type="text/javascript" src="'.js_url().$file.'"';
409 409
 
410
-		foreach ($atts as $key => $val)
411
-			$element .= ' ' . $key . '="' . $val . '"';
412
-		$element .= '></script>' . "\n";
410
+		foreach($atts as $key => $val)
411
+			$element .= ' '.$key.'="'.$val.'"';
412
+		$element .= '></script>'."\n";
413 413
 
414 414
 		return $element;
415 415
 	}
@@ -425,12 +425,12 @@  discard block
 block discarded – undo
425 425
  *
426 426
  * @return  string
427 427
  */
428
-if (!function_exists('img')) {
428
+if(!function_exists('img')) {
429 429
 	function img($file, $atts = array())
430 430
 	{
431
-		$url = '<img src="' . img_url() . $file . '"';
432
-		foreach ($atts as $key => $val)
433
-			$url .= ' ' . $key . '="' . $val . '"';
431
+		$url = '<img src="'.img_url().$file.'"';
432
+		foreach($atts as $key => $val)
433
+			$url .= ' '.$key.'="'.$val.'"';
434 434
 		$url .= " />\n";
435 435
 
436 436
 		return $url;
@@ -446,12 +446,12 @@  discard block
 block discarded – undo
446 446
  *
447 447
  * @return  string
448 448
  */
449
-if (!function_exists('jquery')) {
449
+if(!function_exists('jquery')) {
450 450
 	function jquery($version = '')
451 451
 	{
452 452
 		// Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline
453
-		$out = '<script src="//ajax.googleapis.com/ajax/libs/jquery/' . $version . '/jquery.min.js"></script>' . "\n";
454
-		$out .= '<script>window.jQuery || document.write(\'<script src="' . js_url() . 'jquery-' . $version . '.min.js"><\/script>\')</script>' . "\n";
453
+		$out = '<script src="//ajax.googleapis.com/ajax/libs/jquery/'.$version.'/jquery.min.js"></script>'."\n";
454
+		$out .= '<script>window.jQuery || document.write(\'<script src="'.js_url().'jquery-'.$version.'.min.js"><\/script>\')</script>'."\n";
455 455
 
456 456
 		return $out;
457 457
 	}
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
  *
467 467
  * @return  string
468 468
  */
469
-if (!function_exists('google_analytics')) {
469
+if(!function_exists('google_analytics')) {
470 470
 	function google_analytics($ua = '')
471 471
 	{
472 472
 		// Change UA-XXXXX-X to be your site's ID
Please login to merge, or discard this patch.
application/third_party/Gravatar/config/gravatar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
 
12 12
 $config['gravatar_base_url']        = 'http://www.gravatar.com/';
13 13
 $config['gravatar_secure_base_url'] = 'https://secure.gravatar.com/';
14
-$config['gravatar_image_extension'] = '.png';   // '', '.png' or '.jpg'.
14
+$config['gravatar_image_extension'] = '.png'; // '', '.png' or '.jpg'.
15 15
 $config['gravatar_image_size']      = 44;
16 16
 
17 17
 $config['gravatar_default_image'] = 'identicon'; // '', '404', 'mm', 'identicon', 'monsterid', 'wavatar', 'retro', 'blank'.
18 18
 //$config['gravatar_default_image'] = BASE_URL.'assets/img/lib/default-person.png'; // Another possible option: a custon image.
19 19
 
20 20
 $config['gravatar_force_default_image'] = false;
21
-$config['gravatar_rating']              = '';  // '', 'g' (default), 'pg', 'r', 'x'.
21
+$config['gravatar_rating']              = ''; // '', 'g' (default), 'pg', 'r', 'x'.
22 22
 
23 23
 // Useragent string for server-made requests.
24 24
 // It is for not getting 403 forbidden response.
Please login to merge, or discard this patch.
application/third_party/Gravatar/libraries/Gravatar.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     protected $gravatar_image_size;
32 32
     protected $gravatar_default_image;
33 33
     protected $gravatar_force_default_image;
34
-    protected $gravatar_rating ;
34
+    protected $gravatar_rating;
35 35
     protected $gravatar_useragent;
36 36
 
37 37
     protected $last_error = GRAVATAR_NO_ERROR;
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $allow_url_fopen = $allow_url_fopen === false || in_array(strtolower($allow_url_fopen), array('on', 'true', '1'));
60 60
         $this->allow_url_fopen = $allow_url_fopen;
61 61
 
62
-        if (!is_array($config)) {
62
+        if(!is_array($config)) {
63 63
             $config = array();
64 64
         }
65 65
 
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 
70 70
     public function initialize($config = array()) {
71 71
 
72
-        if (!is_array($config)) {
72
+        if(!is_array($config)) {
73 73
             $config = array();
74 74
         }
75 75
 
76
-        foreach ($config as $key => $value) {
76
+        foreach($config as $key => $value) {
77 77
             $this->{$key} = $value;
78 78
         }
79 79
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->gravatar_image_size = (int) $this->gravatar_image_size;
85 85
 
86
-        if ($this->gravatar_image_size <= 0) {
86
+        if($this->gravatar_image_size <= 0) {
87 87
             $this->gravatar_image_size = 80;
88 88
         }
89 89
 
@@ -129,45 +129,45 @@  discard block
 block discarded – undo
129 129
 
130 130
         $size = (int) $size;
131 131
 
132
-        if ($size <= 0) {
132
+        if($size <= 0) {
133 133
             $size = $this->gravatar_image_size;
134 134
         }
135 135
 
136
-        if ($size > 0) {
136
+        if($size > 0) {
137 137
             $query['s'] = $size;
138 138
         }
139 139
 
140
-        if (isset($default_image)) {
140
+        if(isset($default_image)) {
141 141
             $default_image = (string) $default_image;
142 142
         } else {
143 143
             $default_image = $this->gravatar_default_image;
144 144
         }
145 145
 
146
-        if ($default_image != '') {
146
+        if($default_image != '') {
147 147
             $query['d'] = $default_image;
148 148
         }
149 149
 
150
-        if (isset($force_default_image)) {
150
+        if(isset($force_default_image)) {
151 151
             $force_default_image = !empty($force_default_image);
152 152
         } else {
153 153
             $force_default_image = $this->gravatar_force_default_image;
154 154
         }
155 155
 
156
-        if ($force_default_image) {
156
+        if($force_default_image) {
157 157
             $query['f'] = 'y';
158 158
         }
159 159
 
160
-        if (isset($rating)) {
160
+        if(isset($rating)) {
161 161
             $rating = (string) $rating;
162 162
         } else {
163 163
             $rating = $this->gravatar_rating;
164 164
         }
165 165
 
166
-        if ($rating != '') {
166
+        if($rating != '') {
167 167
             $query['r'] = $rating;
168 168
         }
169 169
 
170
-        if (!empty($query)) {
170
+        if(!empty($query)) {
171 171
             $url = $url.'?'.http_build_query($query);
172 172
         }
173 173
 
@@ -185,25 +185,25 @@  discard block
 block discarded – undo
185 185
 
186 186
         $result = $this->execute_profile_request($email, 'php');
187 187
 
188
-        if ($this->last_error != GRAVATAR_NO_ERROR) {
188
+        if($this->last_error != GRAVATAR_NO_ERROR) {
189 189
             return null;
190 190
         }
191 191
 
192 192
         $result = @ unserialize($result);
193 193
 
194
-        if ($result === false) {
194
+        if($result === false) {
195 195
 
196 196
             $this->last_error = GRAVATAR_INCORRECT_FORMAT;
197 197
             return null;
198 198
         }
199 199
 
200
-        if (!is_array($result)) {
200
+        if(!is_array($result)) {
201 201
 
202 202
             $this->last_error = GRAVATAR_PROFILE_DOES_NOT_EXIST;
203 203
             return null;
204 204
         }
205 205
 
206
-        if (!isset($result['entry']) || !isset($result['entry'][0])) {
206
+        if(!isset($result['entry']) || !isset($result['entry'][0])) {
207 207
 
208 208
             $this->last_error = GRAVATAR_INCORRECT_FORMAT;
209 209
             return null;
@@ -224,9 +224,9 @@  discard block
 block discarded – undo
224 224
 
225 225
         $this->last_error = GRAVATAR_NO_ERROR;
226 226
 
227
-        if (function_exists('valid_email')) {
227
+        if(function_exists('valid_email')) {
228 228
 
229
-            if (!valid_email($email)) {
229
+            if(!valid_email($email)) {
230 230
 
231 231
                 $this->last_error = GRAVATAR_INVALID_EMAIL;
232 232
                 return null;
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 
235 235
         } else {
236 236
 
237
-            if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
237
+            if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {
238 238
 
239 239
                 $this->last_error = GRAVATAR_INVALID_EMAIL;
240 240
                 return null;
@@ -243,13 +243,13 @@  discard block
 block discarded – undo
243 243
 
244 244
         $format = trim($format);
245 245
 
246
-        if ($format != '') {
246
+        if($format != '') {
247 247
             $format = '.'.ltrim($format, '.');
248 248
         }
249 249
 
250 250
         $result = null;
251 251
 
252
-        if ($this->curl_exists) {
252
+        if($this->curl_exists) {
253 253
 
254 254
             $url = $this->gravatar_secure_base_url.$this->create_hash($email).$format;
255 255
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
                 CURLOPT_TIMEOUT => 3,
265 265
             );
266 266
 
267
-            if (!ini_get('safe_mode') && !ini_get('open_basedir')) {
267
+            if(!ini_get('safe_mode') && !ini_get('open_basedir')) {
268 268
                 $options[CURLOPT_FOLLOWLOCATION] = true;
269 269
             }
270 270
 
@@ -276,13 +276,13 @@  discard block
 block discarded – undo
276 276
 
277 277
             @ curl_close($ch);
278 278
 
279
-            if ($code != 200) {
279
+            if($code != 200) {
280 280
 
281 281
                 $this->last_error = GRAVATAR_CANT_CONNECT;
282 282
                 return null;
283 283
             }
284 284
 
285
-        } elseif ($this->allow_url_fopen) {
285
+        } elseif($this->allow_url_fopen) {
286 286
 
287 287
             $url = $this->gravatar_base_url.$this->create_hash($email).$format;
288 288
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             return null;
304 304
         }
305 305
 
306
-        if ($result === false) {
306
+        if($result === false) {
307 307
 
308 308
             $this->last_error = GRAVATAR_CANT_CONNECT;
309 309
             return null;
@@ -337,15 +337,15 @@  discard block
 block discarded – undo
337 337
 
338 338
     protected function is_https() {
339 339
 
340
-        if (function_exists('is_https')) {
340
+        if(function_exists('is_https')) {
341 341
             return is_https();
342 342
         }
343 343
 
344
-        if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
344
+        if(!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
345 345
             return true;
346
-        } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
346
+        } elseif(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
347 347
             return true;
348
-        } elseif (!empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
348
+        } elseif(!empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
349 349
             return true;
350 350
         }
351 351
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
     {
372 372
         $email = trim(strtolower($email));
373 373
 
374
-        if ( ! filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE)
374
+        if(!filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE)
375 375
         {
376 376
             return md5($email);
377 377
         }
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     {
398 398
         $hash = $this->set_email($email);
399 399
 
400
-        if ($hash === NULL)
400
+        if($hash === NULL)
401 401
         {
402 402
             // $hash has to be set to a value so the gravatar site can return a default image
403 403
             $hash = 'invalid_email';
@@ -406,27 +406,27 @@  discard block
 block discarded – undo
406 406
         $query_string = NULL;
407 407
         $options = array();
408 408
 
409
-        if ($rating !== NULL)
409
+        if($rating !== NULL)
410 410
         {
411 411
             $options['r'] = $rating;
412 412
         }
413 413
 
414
-        if ($size !== NULL)
414
+        if($size !== NULL)
415 415
         {
416 416
             $options['s'] = $size;
417 417
         }
418 418
 
419
-        if ($default_image !== NULL)
419
+        if($default_image !== NULL)
420 420
         {
421 421
             $options['d'] = urlencode($default_image);
422 422
         }
423 423
 
424
-        if (count($options) > 0)
424
+        if(count($options) > 0)
425 425
         {
426
-            $query_string = '?'. http_build_query($options);
426
+            $query_string = '?'.http_build_query($options);
427 427
         }
428 428
 
429
-        if ($secure !== NULL)
429
+        if($secure !== NULL)
430 430
         {
431 431
             $base = $this->gravatar_secure_base_url;
432 432
         }
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
             $base = $this->gravatar_base_url;
436 436
         }
437 437
 
438
-        return $base .'avatar/'. $hash . $query_string;
438
+        return $base.'avatar/'.$hash.$query_string;
439 439
     }
440 440
 
441 441
     /**
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
     {
453 453
         $hash = $this->set_email($email);
454 454
 
455
-        if ($hash === NULL)
455
+        if($hash === NULL)
456 456
         {
457 457
             // A hash value of NULL will return no xml so the method returns NULL
458 458
             return NULL;
@@ -460,19 +460,19 @@  discard block
 block discarded – undo
460 460
 
461 461
         libxml_use_internal_errors(TRUE);
462 462
 
463
-        if ($fetch_method === 'file')
463
+        if($fetch_method === 'file')
464 464
         {
465
-            if (ini_get('allow_url_fopen') == FALSE)
465
+            if(ini_get('allow_url_fopen') == FALSE)
466 466
             {
467 467
                 return NULL;
468 468
             }
469 469
 
470
-            $str = file_get_contents($this->gravatar_base_url . $hash .'.xml');
470
+            $str = file_get_contents($this->gravatar_base_url.$hash.'.xml');
471 471
         }
472 472
 
473
-        if ($fetch_method === 'curl')
473
+        if($fetch_method === 'curl')
474 474
         {
475
-            if ( ! function_exists('curl_init'))
475
+            if(!function_exists('curl_init'))
476 476
             {
477 477
                 return NULL;
478 478
             }
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
             $options = array(
482 482
                 CURLOPT_RETURNTRANSFER => TRUE,
483 483
                 CURLOPT_POST => TRUE,
484
-                CURLOPT_URL => $this->gravatar_secure_base_url . $hash .'.xml',
484
+                CURLOPT_URL => $this->gravatar_secure_base_url.$hash.'.xml',
485 485
                 CURLOPT_TIMEOUT => 3
486 486
             );
487 487
             curl_setopt_array($ch, $options);
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
 
491 491
         $xml = simplexml_load_string($str);
492 492
 
493
-        if ($xml === FALSE)
493
+        if($xml === FALSE)
494 494
         {
495 495
             $errors = array();
496 496
             foreach(libxml_get_errors() as $error)
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
                 $errors[] = $error->message.'\n';
499 499
             }
500 500
             $error_string = implode('\n', $errors);
501
-            throw new Exception('Failed loading XML\n'. $error_string);
501
+            throw new Exception('Failed loading XML\n'.$error_string);
502 502
         }
503 503
         else
504 504
         {
Please login to merge, or discard this patch.
application/third_party/Gravatar/helpers/gravatar_helper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  * @license The MIT License, http://opensource.org/licenses/MIT
6 6
  */
7 7
 
8
-if (!function_exists('gravatar')) {
8
+if(!function_exists('gravatar')) {
9 9
 
10 10
     // This helper function has been added here for compatibility with PyroCMS.
11 11
     function gravatar($email = '', $size = 50, $rating = 'g', $url_only = false, $default = false) {
@@ -13,13 +13,13 @@  discard block
 block discarded – undo
13 13
         $ci = & get_instance();
14 14
         $ci->load->library('gravatar');
15 15
 
16
-        if (@ (string) $default == '') {
16
+        if(@ (string) $default == '') {
17 17
             $default = null;
18 18
         }
19 19
 
20 20
         $gravatar_url = $ci->gravatar->get($email, $size, $default, null, $rating);
21 21
 
22
-        if ($url_only) {
22
+        if($url_only) {
23 23
             return $gravatar_url;
24 24
         }
25 25
 
Please login to merge, or discard this patch.
application/controllers/AdminCLI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	public function testSite($type, $site, $extra = NULL) {
63 63
 		switch($type) {
64 64
 			case 'update':
65
-				if(!is_null($extra )) {
65
+				if(!is_null($extra)) {
66 66
 					print_r($this->Tracker->sites->{$site}->getTitleData($extra));
67 67
 				}
68 68
 				break;
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/pirate/auth_lang.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/estonian/auth_lang.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/czech/auth_lang.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.
application/third_party/Ion-Auth/language/finnish/auth_lang.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
1
+<?php  if(!defined('BASEPATH')) exit('No direct script access allowed');
2 2
 /**
3 3
 * Name:  Auth Lang - English
4 4
 *
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 $lang['forgot_password_username_identity_label'] = 'Username';
135 135
 $lang['forgot_password_email_identity_label']    = 'Email';
136 136
 $lang['forgot_password_email_not_found']         = 'No record of that email address.';
137
-$lang['forgot_password_identity_not_found']         = 'No record of that username address.';
137
+$lang['forgot_password_identity_not_found'] = 'No record of that username address.';
138 138
 
139 139
 // Reset Password
140 140
 $lang['reset_password_heading']                               = 'Change Password';
Please login to merge, or discard this patch.