Completed
Push — master ( 236763...d7eb82 )
by Patrick
03:15
created
Email/class.AmazonSES.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
             'version' => 'latest',
15 15
             'region'  => 'us-west-2',
16 16
             'credentials' => $credentials
17
-         ]);
17
+            ]);
18 18
     }
19 19
 
20 20
     public function canSend()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     public function sendEmail($email)
29 29
     {
30
-        if($email->hasAttachments())
30
+        if ($email->hasAttachments())
31 31
         {
32 32
             //Amazeon sendEmail doesn't support attachments. We need to use sendRawEmail
33 33
             $args = array();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
             $args['RawMessage'] = array();
35 35
             $args['RawMessage']['Data'] = base64_encode($email->getRawMessage());
36 36
             return $this->ses->sendRawEmail($args);
37
-        }
38
-        else
37
+        } else
39 38
         {
40 39
             $args = array();
41 40
             $args['Source'] = $email->getFromAddress();
Please login to merge, or discard this patch.
LDAP/class.LDAPObject.php 3 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@  discard block
 block discarded – undo
3 3
 
4 4
 class LDAPObject extends \SerializableObject
5 5
 {
6
-     public $server;
6
+        public $server;
7 7
 
8
-     function __construct($array=false, $server=false)
9
-     {
10
-         parent::__construct($array);
11
-         $this->server = $server;
12
-     }
8
+        function __construct($array=false, $server=false)
9
+        {
10
+            parent::__construct($array);
11
+            $this->server = $server;
12
+        }
13 13
 
14
-     public function jsonSerialize()
15
-     {
16
-         $ret = array();
17
-         foreach ($this as $key => $value)
18
-         {
14
+        public function jsonSerialize()
15
+        {
16
+            $ret = array();
17
+            foreach ($this as $key => $value)
18
+            {
19 19
             if($key === 'server' || $key === 'count') continue;
20 20
             if(is_numeric($key)) continue;
21 21
             if($key === 'jpegphoto')
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
             {
32 32
                 $ret[$key] = $value;
33 33
             }
34
-         }
35
-         return $ret;
36
-     }
34
+            }
35
+            return $ret;
36
+        }
37 37
 }
38 38
 
39 39
 ?>
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 {
6 6
      public $server;
7 7
 
8
-     function __construct($array=false, $server=false)
8
+     function __construct($array = false, $server = false)
9 9
      {
10 10
          parent::__construct($array);
11 11
          $this->server = $server;
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
          $ret = array();
17 17
          foreach ($this as $key => $value)
18 18
          {
19
-            if($key === 'server' || $key === 'count') continue;
20
-            if(is_numeric($key)) continue;
21
-            if($key === 'jpegphoto')
19
+            if ($key === 'server' || $key === 'count') continue;
20
+            if (is_numeric($key)) continue;
21
+            if ($key === 'jpegphoto')
22 22
             {
23 23
                 $ret[$key] = base64_encode($value[0]);
24 24
                 continue;
25 25
             }
26
-            if(is_array($value) && $value['count'] === 1)
26
+            if (is_array($value) && $value['count'] === 1)
27 27
             {
28 28
                 $ret[$key] = $value[0];
29 29
             }
Please login to merge, or discard this patch.
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,12 @@  discard block
 block discarded – undo
16 16
          $ret = array();
17 17
          foreach ($this as $key => $value)
18 18
          {
19
-            if($key === 'server' || $key === 'count') continue;
20
-            if(is_numeric($key)) continue;
19
+            if($key === 'server' || $key === 'count') {
20
+                continue;
21
+            }
22
+            if(is_numeric($key)) {
23
+                continue;
24
+            }
21 25
             if($key === 'jpegphoto')
22 26
             {
23 27
                 $ret[$key] = base64_encode($value[0]);
@@ -26,8 +30,7 @@  discard block
 block discarded – undo
26 30
             if(is_array($value) && $value['count'] === 1)
27 31
             {
28 32
                 $ret[$key] = $value[0];
29
-            }
30
-            else
33
+            } else
31 34
             {
32 35
                 $ret[$key] = $value;
33 36
             }
Please login to merge, or discard this patch.
class.DataSetFactory.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 /**
15 15
  * use the FlipsideSettings class
16 16
  */
17
-if(isset($GLOBALS['FLIPSIDE_SETTINGS_LOC']))
17
+if (isset($GLOBALS['FLIPSIDE_SETTINGS_LOC']))
18 18
 {
19 19
     require_once($GLOBALS['FLIPSIDE_SETTINGS_LOC'].'/class.FlipsideSettings.php');
20 20
 }
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
     static function getDataSetByName($setName)
60 60
     {
61 61
         static $instances = array();
62
-        if(isset($instances[$setName]))
62
+        if (isset($instances[$setName]))
63 63
         {
64 64
             return $instances[$setName];
65 65
         }
66
-        if(!isset(FlipsideSettings::$dataset) || !isset(FlipsideSettings::$dataset[$setName]))
66
+        if (!isset(FlipsideSettings::$dataset) || !isset(FlipsideSettings::$dataset[$setName]))
67 67
         {
68 68
             throw new Exception('Unknown dataset name '.$setName);
69 69
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
 if(isset($GLOBALS['FLIPSIDE_SETTINGS_LOC']))
18 18
 {
19 19
     require_once($GLOBALS['FLIPSIDE_SETTINGS_LOC'].'/class.FlipsideSettings.php');
20
-}
21
-else
20
+} else
22 21
 {
23 22
     require_once('/var/www/secure_settings/class.FlipsideSettings.php');
24 23
 }
Please login to merge, or discard this patch.
class.FlipsideMail.php 2 patches
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.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,16 +25,14 @@  discard block
 block discarded – undo
25 25
         if(isset($mail['from']))
26 26
         {
27 27
             $this->From = $mail['from'];
28
-        }
29
-        else
28
+        } else
30 29
         {
31 30
             $this->From = $this->Username;
32 31
         }
33 32
         if(isset($mail['from_name']))
34 33
         {
35 34
             $this->FromName = $mail['from_name'];
36
-        }
37
-        else
35
+        } else
38 36
         {
39 37
             $this->FromName = 'Burning Flipside';
40 38
         }
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
         if(is_array($mail['to']))
43 41
         {
44 42
             array_walk($mail['to'], 'FlipsideMail::addTo', $this);
45
-        }
46
-        else
43
+        } else
47 44
         {
48 45
             $this->addAddress($mail['to']);
49 46
         }
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.
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.
class.ODataParams.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,45 +12,45 @@  discard block
 block discarded – undo
12 12
 
13 13
     function __construct($params)
14 14
     {
15
-        if(isset($params['filter']))
15
+        if (isset($params['filter']))
16 16
         {
17 17
             $this->filter = new \Data\Filter($params['filter']);
18 18
         }
19
-        else if(isset($params['$filter']))
19
+        else if (isset($params['$filter']))
20 20
         {
21 21
             $this->filter = new \Data\Filter($params['$filter']);
22 22
         }
23 23
 
24
-        if(isset($params['$expand']))
24
+        if (isset($params['$expand']))
25 25
         {
26
-            $this->expand = explode(',',$params['$expand']);
26
+            $this->expand = explode(',', $params['$expand']);
27 27
         }
28 28
 
29
-        if(isset($params['select']))
29
+        if (isset($params['select']))
30 30
         {
31
-            $this->select = explode(',',$params['select']);
31
+            $this->select = explode(',', $params['select']);
32 32
         }
33
-        else if(isset($params['$select']))
33
+        else if (isset($params['$select']))
34 34
         {
35
-            $this->select = explode(',',$params['$select']);
35
+            $this->select = explode(',', $params['$select']);
36 36
         }
37 37
 
38
-        if(isset($params['$orderby']))
38
+        if (isset($params['$orderby']))
39 39
         {
40 40
             $this->orderby = array();
41
-            $orderby = explode(',',$params['$orderby']);
41
+            $orderby = explode(',', $params['$orderby']);
42 42
             $count = count($orderby);
43
-            for($i = 0; $i < $count; $i++)
43
+            for ($i = 0; $i < $count; $i++)
44 44
             {
45
-                $exp = explode(' ',$orderby[$i]);
46
-                if(count($exp) === 1)
45
+                $exp = explode(' ', $orderby[$i]);
46
+                if (count($exp) === 1)
47 47
                 {
48 48
                     //Default to assending
49 49
                     $this->orderby[$exp[0]] = 1;
50 50
                 }
51 51
                 else
52 52
                 {
53
-                    switch($exp[1])
53
+                    switch ($exp[1])
54 54
                     {
55 55
                         case 'asc':
56 56
                             $this->orderby[$exp[0]] = 1;
@@ -65,22 +65,22 @@  discard block
 block discarded – undo
65 65
             }
66 66
         }
67 67
 
68
-        if(isset($params['$top']))
68
+        if (isset($params['$top']))
69 69
         {
70 70
             $this->top = $params['$top'];
71 71
         }
72 72
 
73
-        if(isset($params['$skip']))
73
+        if (isset($params['$skip']))
74 74
         {
75 75
             $this->skip = $params['$skip'];
76 76
         }
77 77
 
78
-        if(isset($params['$count']) && $params['$count'] === 'true')
78
+        if (isset($params['$count']) && $params['$count'] === 'true')
79 79
         {
80 80
             $this->count = true;
81 81
         }
82 82
 
83
-        if(isset($params['$seach']))
83
+        if (isset($params['$seach']))
84 84
         {
85 85
             throw new Exception('Search not yet implemented');
86 86
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
         if(isset($params['filter']))
16 16
         {
17 17
             $this->filter = new \Data\Filter($params['filter']);
18
-        }
19
-        else if(isset($params['$filter']))
18
+        } else if(isset($params['$filter']))
20 19
         {
21 20
             $this->filter = new \Data\Filter($params['$filter']);
22 21
         }
@@ -29,8 +28,7 @@  discard block
 block discarded – undo
29 28
         if(isset($params['select']))
30 29
         {
31 30
             $this->select = explode(',',$params['select']);
32
-        }
33
-        else if(isset($params['$select']))
31
+        } else if(isset($params['$select']))
34 32
         {
35 33
             $this->select = explode(',',$params['$select']);
36 34
         }
@@ -47,8 +45,7 @@  discard block
 block discarded – undo
47 45
                 {
48 46
                     //Default to assending
49 47
                     $this->orderby[$exp[0]] = 1;
50
-                }
51
-                else
48
+                } else
52 49
                 {
53 50
                     switch($exp[1])
54 51
                     {
Please login to merge, or discard this patch.
Auth/OAuth2/class.LiveAuthenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function getUserFromToken($token)
32 32
     {
33
-        if($token === false)
33
+        if ($token === false)
34 34
         {
35 35
             $token = \FlipSession::getVar('OAuthToken');
36 36
         }
Please login to merge, or discard this patch.