Completed
Branch master (9c4346)
by Patrick
10:57
created
class.AuthProvider.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     protected function __construct()
37 37
     {
38 38
         $this->methods = array();
39
-        if(isset(FlipsideSettings::$authProviders))
39
+        if (isset(FlipsideSettings::$authProviders))
40 40
         {
41 41
             $keys = array_keys(FlipsideSettings::$authProviders);
42 42
             $count = count($keys);
43
-            for($i = 0; $i < $count; $i++)
43
+            for ($i = 0; $i < $count; $i++)
44 44
             {
45 45
                 $class = $keys[$i];
46 46
                 array_push($this->methods, new $class(FlipsideSettings::$authProviders[$keys[$i]]));
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
     public function getAuthenticator($methodName)
59 59
     {
60 60
         $count = count($this->methods);
61
-        for($i = 0; $i < $count; $i++)
61
+        for ($i = 0; $i < $count; $i++)
62 62
         {
63
-            if(strcasecmp(get_class($this->methods[$i]), $methodName) === 0)
63
+            if (strcasecmp(get_class($this->methods[$i]), $methodName) === 0)
64 64
             {
65 65
                 return $this->methods[$i];
66 66
             }
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $res = false;
84 84
         $count = count($this->methods);
85
-        for($i = 0; $i < $count; $i++)
85
+        for ($i = 0; $i < $count; $i++)
86 86
         {
87 87
             $res = $this->methods[$i]->login($username, $password);
88
-            if($res !== false)
88
+            if ($res !== false)
89 89
             {
90 90
                 return $this->methods[$i]->getUser($res);
91 91
             }
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $res = false;
107 107
         $count = count($this->methods);
108
-        for($i = 0; $i < $count; $i++)
108
+        for ($i = 0; $i < $count; $i++)
109 109
         {
110 110
             $res = $this->methods[$i]->login($username, $password);
111
-            if($res !== false)
111
+            if ($res !== false)
112 112
             {
113 113
                 FlipSession::setVar('AuthMethod', get_class($this->methods[$i]));
114 114
                 FlipSession::setVar('AuthData', $res);
@@ -156,11 +156,11 @@  discard block
 block discarded – undo
156 156
      */
157 157
     private function mergeResult(&$returnValue, $res)
158 158
     {
159
-        if($res === false)
159
+        if ($res === false)
160 160
         {
161 161
             return;
162 162
         }
163
-        if($returnValue === false)
163
+        if ($returnValue === false)
164 164
         {
165 165
             $returnValue = $res;
166 166
             return;
@@ -182,11 +182,11 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $ret = false;
184 184
         $count = count($this->methods);
185
-        for($i = 0; $i < $count; $i++)
185
+        for ($i = 0; $i < $count; $i++)
186 186
         {
187
-            if($checkField)
187
+            if ($checkField)
188 188
             {
189
-                if($this->methods[$i]->{$checkField} === $checkValue)
189
+                if ($this->methods[$i]->{$checkField} === $checkValue)
190 190
                 {
191 191
                     continue;
192 192
                 }
@@ -210,11 +210,11 @@  discard block
 block discarded – undo
210 210
     {
211 211
         $retCount = 0;
212 212
         $count = count($this->methods);
213
-        for($i = 0; $i < $count; $i++)
213
+        for ($i = 0; $i < $count; $i++)
214 214
         {
215
-            if($checkField)
215
+            if ($checkField)
216 216
             {
217
-                if($this->methods[$i]->{$checkField} === $checkValue)
217
+                if ($this->methods[$i]->{$checkField} === $checkValue)
218 218
                 {
219 219
                     continue;
220 220
                 }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function getGroupByName($name, $methodName = false)
237 237
     {
238
-        if($methodName === false)
238
+        if ($methodName === false)
239 239
         {
240 240
             return $this->callOnEach('getGroupByName', array($name));
241 241
         }
@@ -255,9 +255,9 @@  discard block
 block discarded – undo
255 255
      *
256 256
      * @return array|false An array of Auth\User objects or false if no users were found
257 257
      */
258
-    public function getUsersByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
258
+    public function getUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
259 259
     {
260
-        if($methodName === false)
260
+        if ($methodName === false)
261 261
         {
262 262
             return $this->callOnEach('getUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
263 263
         }
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
      *
278 278
      * @return array|false An array of Auth\PendingUser objects or false if no pending users were found
279 279
      */
280
-    public function getPendingUsersByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
280
+    public function getPendingUsersByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
281 281
     {
282
-        if($methodName === false)
282
+        if ($methodName === false)
283 283
         {
284 284
             return $this->callOnEach('getPendingUsersByFilter', array($filter, $select, $top, $skip, $orderby), 'pending');
285 285
         }
@@ -299,9 +299,9 @@  discard block
 block discarded – undo
299 299
      *
300 300
      * @return array|false An array of Auth\Group objects or false if no pending users were found
301 301
      */
302
-    public function getGroupsByFilter($filter, $select=false, $top=false, $skip=false, $orderby=false, $methodName = false)
302
+    public function getGroupsByFilter($filter, $select = false, $top = false, $skip = false, $orderby = false, $methodName = false)
303 303
     {
304
-        if($methodName === false)
304
+        if ($methodName === false)
305 305
         {
306 306
             return $this->callOnEach('getGroupsByFilter', array($filter, $select, $top, $skip, $orderby), 'current');
307 307
         }
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     public function getActiveUserCount($methodName = false)
320 320
     {
321
-        if($methodName === false)
321
+        if ($methodName === false)
322 322
         {
323 323
             return $this->addFromEach('getActiveUserCount', 'current');
324 324
         }
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
      */
336 336
     public function getPendingUserCount($methodName = false)
337 337
     {
338
-        if($methodName === false)
338
+        if ($methodName === false)
339 339
         {
340 340
             return $this->addFromEach('getPendingUserCount', 'pending');
341 341
         }
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      */
353 353
     public function getGroupCount($methodName = false)
354 354
     {
355
-        if($methodName === false)
355
+        if ($methodName === false)
356 356
         {
357 357
             return $this->addFromEach('getGroupCount', 'current');
358 358
         }
@@ -372,9 +372,9 @@  discard block
 block discarded – undo
372 372
     {
373 373
         $ret = array();
374 374
         $count = count($this->methods);
375
-        for($i = 0; $i < $count; $i++)
375
+        for ($i = 0; $i < $count; $i++)
376 376
         {
377
-            if($this->methods[$i]->supplement === false) continue;
377
+            if ($this->methods[$i]->supplement === false) continue;
378 378
 
379 379
             array_push($ret, $this->methods[$i]->getSupplementLink());
380 380
         }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
      */
392 392
     public function impersonateUser($userArray)
393 393
     {
394
-        if(!is_object($userArray))
394
+        if (!is_object($userArray))
395 395
         {
396 396
             $user = new $userArray['class']($userArray);
397 397
         }
@@ -408,15 +408,15 @@  discard block
 block discarded – undo
408 408
      */
409 409
     public function getTempUserByHash($hash, $methodName = false)
410 410
     {
411
-        if($methodName === false)
411
+        if ($methodName === false)
412 412
         {
413 413
             $count = count($this->methods);
414
-            for($i = 0; $i < $count; $i++)
414
+            for ($i = 0; $i < $count; $i++)
415 415
             {
416
-                if($this->methods[$i]->pending === false) continue;
416
+                if ($this->methods[$i]->pending === false) continue;
417 417
 
418 418
                 $ret = $this->methods[$i]->getTempUserByHash($hash);
419
-                if($ret !== false)
419
+                if ($ret !== false)
420 420
                 {
421 421
                     return $ret;
422 422
                 }
@@ -437,15 +437,15 @@  discard block
 block discarded – undo
437 437
      */
438 438
     public function createPendingUser($user, $methodName = false)
439 439
     {
440
-        if($methodName === false)
440
+        if ($methodName === false)
441 441
         {
442 442
             $count = count($this->methods);
443
-            for($i = 0; $i < $count; $i++)
443
+            for ($i = 0; $i < $count; $i++)
444 444
             {
445
-                if($this->methods[$i]->pending === false) continue;
445
+                if ($this->methods[$i]->pending === false) continue;
446 446
 
447 447
                 $ret = $this->methods[$i]->createPendingUser($user);
448
-                if($ret !== false)
448
+                if ($ret !== false)
449 449
                 {
450 450
                     return true;
451 451
                 }
@@ -469,15 +469,15 @@  discard block
 block discarded – undo
469 469
      */
470 470
     public function activatePendingUser($user, $methodName = false)
471 471
     {
472
-        if($methodName === false)
472
+        if ($methodName === false)
473 473
         {
474 474
             $count = count($this->methods);
475
-            for($i = 0; $i < $count; $i++)
475
+            for ($i = 0; $i < $count; $i++)
476 476
             {
477
-                if($this->methods[$i]->current === false) continue;
477
+                if ($this->methods[$i]->current === false) continue;
478 478
 
479 479
                 $ret = $this->methods[$i]->activatePendingUser($user);
480
-                if($ret !== false)
480
+                if ($ret !== false)
481 481
                 {
482 482
                     $this->impersonateUser($ret);
483 483
                     return true;
@@ -499,15 +499,15 @@  discard block
 block discarded – undo
499 499
      */
500 500
     public function getUserByResetHash($hash, $methodName = false)
501 501
     {
502
-        if($methodName === false)
502
+        if ($methodName === false)
503 503
         {
504 504
             $count = count($this->methods);
505
-            for($i = 0; $i < $count; $i++)
505
+            for ($i = 0; $i < $count; $i++)
506 506
             {
507
-                if($this->methods[$i]->current === false) continue;
507
+                if ($this->methods[$i]->current === false) continue;
508 508
 
509 509
                 $ret = $this->methods[$i]->getUserByResetHash($hash);
510
-                if($ret !== false)
510
+                if ($ret !== false)
511 511
                 {
512 512
                     return $ret;
513 513
                 }
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
             return false;
516 516
         }
517 517
         $auth = $this->getAuthenticator($methodName);
518
-        if($auth === false)
518
+        if ($auth === false)
519 519
         {
520 520
             return $this->getUserByResetHash($hash, false);
521 521
         }
@@ -532,11 +532,11 @@  discard block
 block discarded – undo
532 532
     public function getSuplementalProviderByHost($host)
533 533
     {
534 534
         $count = count($this->methods);
535
-        for($i = 0; $i < $count; $i++)
535
+        for ($i = 0; $i < $count; $i++)
536 536
         {
537
-            if($this->methods[$i]->supplement === false) continue;
537
+            if ($this->methods[$i]->supplement === false) continue;
538 538
 
539
-            if($this->methods[$i]->getHostName() === $host)
539
+            if ($this->methods[$i]->getHostName() === $host)
540 540
             {
541 541
                 return $this->methods[$i];
542 542
             }
@@ -544,15 +544,15 @@  discard block
 block discarded – undo
544 544
         return false;
545 545
     }
546 546
 
547
-    public function deletePendingUsersByFilter($filter, $methodName=false)
547
+    public function deletePendingUsersByFilter($filter, $methodName = false)
548 548
     {
549 549
         $users = $this->getPendingUsersByFilter($filter, false, false, false, false, $methodName);
550
-        if($users === false)
550
+        if ($users === false)
551 551
         {
552 552
             return false;
553 553
         }
554 554
         $count = count($users);
555
-        for($i = 0; $i < $count; $i++)
555
+        for ($i = 0; $i < $count; $i++)
556 556
         {
557 557
             $users[$i]->delete();
558 558
         }
Please login to merge, or discard this patch.
class.FlipsideMail.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function send_HTML($mail)
24 24
     {
25
-        if(isset($mail['from']))
25
+        if (isset($mail['from']))
26 26
         {
27 27
             $this->From = $mail['from'];
28 28
         }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         {
31 31
             $this->From = $this->Username;
32 32
         }
33
-        if(isset($mail['from_name']))
33
+        if (isset($mail['from_name']))
34 34
         {
35 35
             $this->FromName = $mail['from_name'];
36 36
         }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $this->FromName = 'Burning Flipside';
40 40
         }
41 41
         $this->clearAllRecipients();
42
-        if(is_array($mail['to']))
42
+        if (is_array($mail['to']))
43 43
         {
44 44
             array_walk($mail['to'], 'FlipsideMail::addTo', $this);
45 45
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         {
48 48
             $this->addAddress($mail['to']);
49 49
         }
50
-        if(isset($mail['reply_to']))
50
+        if (isset($mail['reply_to']))
51 51
         {
52 52
             $this->addReplyTo($mail['reply_to']);
53 53
         }
Please login to merge, or discard this patch.
class.FlipsideCAPTCHA.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         $datatable = $dataset['captcha'];
12 12
         $data = $datatable->read(false, array('id'));
13 13
         $count = count($data);
14
-        for($i = 0; $i < $count; $i++)
14
+        for ($i = 0; $i < $count; $i++)
15 15
         {
16 16
             $data[$i] = $data[$i]['id'];
17 17
         }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         $res = array();
24 24
         $ids = FlipsideCAPTCHA::get_valid_captcha_ids();
25
-        for($i = 0; $i < count($ids); $i++)
25
+        for ($i = 0; $i < count($ids); $i++)
26 26
         {
27 27
             $captcha = new FlipsideCAPTCHA();
28 28
             $captcha->random_id = $ids[$i]; 
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $dataset = DataSetFactory::get_data_set('profiles');
37 37
         $datatable = $dataset['captcha'];
38
-        return $datatable->create(array('question'=>$question,'hint'=>$hint,'answer'=>$answer));
38
+        return $datatable->create(array('question'=>$question, 'hint'=>$hint, 'answer'=>$answer));
39 39
     }
40 40
 
41 41
     public function __construct()
42 42
     {
43 43
         $this->validIDs = FlipsideCAPTCHA::get_valid_captcha_ids();
44
-        $this->random_id = mt_rand(0, count($this->validIDs)-1);
44
+        $this->random_id = mt_rand(0, count($this->validIDs) - 1);
45 45
         $this->random_id = $this->validIDs[$this->random_id];
46 46
     }
47 47
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $dataset = DataSetFactory::get_data_set('profiles');
51 51
         $datatable = $dataset['captcha'];
52 52
         $data = $datatable->read(new \Data\Filter('id eq '.$this->random_id), array('question'));
53
-        if($data === false)
53
+        if ($data === false)
54 54
         {
55 55
             return false;
56 56
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $dataset = DataSetFactory::get_data_set('profiles');
63 63
         $datatable = $dataset['captcha'];
64 64
         $data = $datatable->read(new \Data\Filter('id eq '.$this->random_id), array('hint'));
65
-        if($data === false)
65
+        if ($data === false)
66 66
         {
67 67
             return false;
68 68
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $dataset = DataSetFactory::get_data_set('profiles');
75 75
         $datatable = $dataset['captcha'];
76 76
         $data = $datatable->read(new \Data\Filter('id eq '.$this->random_id), array('answer'));
77
-        if($data === false)
77
+        if ($data === false)
78 78
         {
79 79
             return false;
80 80
         }
@@ -83,29 +83,29 @@  discard block
 block discarded – undo
83 83
 
84 84
     public function is_answer_right($answer)
85 85
     {
86
-        return strcasecmp($this->get_answer(),$answer) == 0;
86
+        return strcasecmp($this->get_answer(), $answer) == 0;
87 87
     }
88 88
 
89
-    public function draw_captcha($explination=true, $return=false, $ownForm=false)
89
+    public function draw_captcha($explination = true, $return = false, $ownForm = false)
90 90
     {
91 91
         $string = '';
92 92
 
93
-        if($ownForm)
93
+        if ($ownForm)
94 94
         {
95
-            $string.= '<form id="flipcaptcha" name="flipcaptcha">';
95
+            $string .= '<form id="flipcaptcha" name="flipcaptcha">';
96 96
         }
97 97
 
98 98
         $string .= '<label for="captcha" class="col-sm-2 control-label">'.$this->get_question().'</label><div class="col-sm-10"><input class="form-control" type="text" id="captcha" name="captcha" placeholder="'.$this->get_hint().'" required/></div>';
99
-        if($ownForm)
99
+        if ($ownForm)
100 100
         {
101
-            $string.='</form>';
101
+            $string .= '</form>';
102 102
         }
103
-        if($explination)
103
+        if ($explination)
104 104
         {
105 105
             $string .= '<div class="col-sm-10">The answer to this question may be found in the Burning Flipside Survival Guide. It may be found <a href="http://www.burningflipside.com/sg">here</a>.</div>';
106 106
         }
107 107
         
108
-        if(!$return)
108
+        if (!$return)
109 109
         {
110 110
             echo $string;
111 111
         }
Please login to merge, or discard this patch.
class.Singleton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         static $instances = array();
30 30
         $class = get_called_class();
31
-        if(!isset($instances[$class]))
31
+        if (!isset($instances[$class]))
32 32
         {
33 33
             $instances[$class] = new static();
34 34
         }
Please login to merge, or discard this patch.
class.SerializableObject.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -16,18 +16,18 @@  discard block
 block discarded – undo
16 16
  *
17 17
  * This class can be serialized to various formats
18 18
  */
19
-class SerializableObject implements ArrayAccess,JsonSerializable
19
+class SerializableObject implements ArrayAccess, JsonSerializable
20 20
 {
21 21
     /**
22 22
      * Create the object from an array
23 23
      *
24 24
      * @param array $array The array of object properties
25 25
      */
26
-    public function __construct($array=false)
26
+    public function __construct($array = false)
27 27
     {
28
-        if($array !== false && is_array($array))
28
+        if ($array !== false && is_array($array))
29 29
         {
30
-            foreach($array as $key => $value)
30
+            foreach ($array as $key => $value)
31 31
             {
32 32
                 $this->{$key} = $value;
33 33
             }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $xml = new XmlWriter();
55 55
         $xml->openMemory();
56 56
         $xml->startDocument('1.0');
57
-        if(isset($this[0]))
57
+        if (isset($this[0]))
58 58
         {
59 59
             $xml->startElement('Array');
60 60
             $this->array2XML($xml, 'Entity', (array)$this);
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
      */
77 77
     private function object2XML(XMLWriter $xml, $data)
78 78
     {
79
-        foreach($data as $key => $value)
79
+        foreach ($data as $key => $value)
80 80
         {
81
-            if(is_array($value) || is_numeric($key))
81
+            if (is_array($value) || is_numeric($key))
82 82
             {
83 83
                 $this->array2XML($xml, $key, (array)$value);
84 84
             }
85
-            else if(is_object($value))
85
+            else if (is_object($value))
86 86
             {
87 87
                 $xml->startElement($key);
88 88
                 $this->object2XML($xml, $value);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             }
91 91
             else
92 92
             {
93
-                if($key[0] === '$')
93
+                if ($key[0] === '$')
94 94
                 {
95 95
                     $xml->writeElement(substr($key, 1), $value);
96 96
                 }
@@ -112,29 +112,29 @@  discard block
 block discarded – undo
112 112
      */
113 113
     private function array2XML(XMLWriter $xml, $keyParent, $data)
114 114
     {
115
-        foreach($data as $key => $value)
115
+        foreach ($data as $key => $value)
116 116
         {
117
-	    if(is_string($value))
117
+	    if (is_string($value))
118 118
             {
119 119
                 $xml->writeElement($keyParent, $value);
120 120
                 continue;
121 121
             }
122
-            if(is_numeric($key))
122
+            if (is_numeric($key))
123 123
             {
124 124
                 $xml->startElement($keyParent);
125 125
             }
126 126
  
127
-            if(is_object($value))
127
+            if (is_object($value))
128 128
             {
129 129
                 $this->object2XML($xml, $value);
130 130
             }
131
-            else if(is_array($value))
131
+            else if (is_array($value))
132 132
             {
133 133
                 $this->array2XML($xml, $key, $value);
134 134
                 continue;
135 135
             }
136 136
  
137
-            if(is_numeric($key))
137
+            if (is_numeric($key))
138 138
             {
139 139
                 $xml->endElement();
140 140
             }
@@ -165,16 +165,16 @@  discard block
 block discarded – undo
165 165
     public function serializeObject($fmt = 'json', $select = false)
166 166
     {
167 167
         $copy = $this;
168
-        if($select !== false)
168
+        if ($select !== false)
169 169
         {
170 170
             $copy = new self();
171 171
             $count = count($select);
172
-            for($i = 0; $i < $count; $i++)
172
+            for ($i = 0; $i < $count; $i++)
173 173
             {
174 174
                 $copy->{$select[$i]} = $this->offsetGet($select[$i]);
175 175
             }
176 176
         }
177
-        switch($fmt)
177
+        switch ($fmt)
178 178
         {
179 179
             case 'json':
180 180
                 return json_encode($copy);
Please login to merge, or discard this patch.
js/js-webshim/dev/shims/FlashCanvas/proxy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     } else {
59 59
         $host = FCgetHostName();
60 60
     }
61
-    $pattern = '#^https?://' . str_replace('.', '\.', $host) . '(:\d*)?/#';
61
+    $pattern = '#^https?://'.str_replace('.', '\.', $host).'(:\d*)?/#';
62 62
     if (!preg_match($pattern, $_SERVER['HTTP_REFERER'])) {
63 63
         exit;
64 64
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 }
74 74
 
75 75
 // Percent-encode special characters in the URL
76
-$search  = array(  '%',   '#',   ' ');
76
+$search  = array('%', '#', ' ');
77 77
 $replace = array('%25', '%23', '%20');
78 78
 $url     = str_replace($search, $replace, $_GET['url']);
79 79
 
Please login to merge, or discard this patch.
js/js-webshim/dev/shims/FlashCanvas/save.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     // Force download
43 43
     header('Content-Type: application/octet-stream');
44
-    header('Content-Disposition: attachment; filename="' . $filename . '"');
44
+    header('Content-Disposition: attachment; filename="'.$filename.'"');
45 45
 
46 46
     if (isset($_POST['dataurl'])) {
47 47
         // Decode the base64-encoded data
Please login to merge, or discard this patch.
js/js-webshim/dev/shims/FlashCanvasPro/proxy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     } else {
59 59
         $host = FCgetHostName();
60 60
     }
61
-    $pattern = '#^https?://' . str_replace('.', '\.', $host) . '(:\d*)?/#';
61
+    $pattern = '#^https?://'.str_replace('.', '\.', $host).'(:\d*)?/#';
62 62
     if (!preg_match($pattern, $_SERVER['HTTP_REFERER'])) {
63 63
         exit;
64 64
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 }
74 74
 
75 75
 // Percent-encode special characters in the URL
76
-$search  = array(  '%',   '#',   ' ');
76
+$search  = array('%', '#', ' ');
77 77
 $replace = array('%25', '%23', '%20');
78 78
 $url     = str_replace($search, $replace, $_GET['url']);
79 79
 
Please login to merge, or discard this patch.
js/js-webshim/dev/shims/FlashCanvasPro/save.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     // Force download
43 43
     header('Content-Type: application/octet-stream');
44
-    header('Content-Disposition: attachment; filename="' . $filename . '"');
44
+    header('Content-Disposition: attachment; filename="'.$filename.'"');
45 45
 
46 46
     if (isset($_POST['dataurl'])) {
47 47
         // Decode the base64-encoded data
Please login to merge, or discard this patch.