Passed
Push — master ( 7a5289...3d9538 )
by Kevin
09:32
created
html/inc/random_compat/cast_to_int.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@
 block discarded – undo
45 45
      *
46 46
      * @throws TypeError
47 47
      */
48
-    function RandomCompat_intval($number, $fail_open = false)
49
-    {
48
+    function RandomCompat_intval($number, $fail_open = false) {
50 49
         if (is_int($number) || is_float($number)) {
51 50
             $number += 0;
52 51
         } elseif (is_numeric($number)) {
Please login to merge, or discard this patch.
html/inc/random_compat/random.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,8 +207,7 @@
 block discarded – undo
207 207
          * @throws Exception
208 208
          * @return string
209 209
          */
210
-        function random_bytes($length)
211
-        {
210
+        function random_bytes($length) {
212 211
             unset($length); // Suppress "variable not used" warnings.
213 212
             throw new Exception(
214 213
                 'There is no suitable CSPRNG installed on your system'
Please login to merge, or discard this patch.
html/inc/random_compat/byte_safe_strings.inc 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
43 43
          *
44 44
          * @return int
45 45
          */
46
-        function RandomCompat_strlen($binary_string)
47
-        {
46
+        function RandomCompat_strlen($binary_string) {
48 47
             if (!is_string($binary_string)) {
49 48
                 throw new TypeError(
50 49
                     'RandomCompat_strlen() expects a string'
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
          *
67 66
          * @return int
68 67
          */
69
-        function RandomCompat_strlen($binary_string)
70
-        {
68
+        function RandomCompat_strlen($binary_string) {
71 69
             if (!is_string($binary_string)) {
72 70
                 throw new TypeError(
73 71
                     'RandomCompat_strlen() expects a string'
@@ -99,8 +97,7 @@  discard block
 block discarded – undo
99 97
          *
100 98
          * @return string
101 99
          */
102
-        function RandomCompat_substr($binary_string, $start, $length = null)
103
-        {
100
+        function RandomCompat_substr($binary_string, $start, $length = null) {
104 101
             if (!is_string($binary_string)) {
105 102
                 throw new TypeError(
106 103
                     'RandomCompat_substr(): First argument should be a string'
@@ -151,8 +148,7 @@  discard block
 block discarded – undo
151 148
          *
152 149
          * @return string
153 150
          */
154
-        function RandomCompat_substr($binary_string, $start, $length = null)
155
-        {
151
+        function RandomCompat_substr($binary_string, $start, $length = null) {
156 152
             if (!is_string($binary_string)) {
157 153
                 throw new TypeError(
158 154
                     'RandomCompat_substr(): First argument should be a string'
Please login to merge, or discard this patch.
html/inc/random_compat/random_bytes_libsodium.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
      *
39 39
      * @return string
40 40
      */
41
-    function random_bytes($bytes)
42
-    {
41
+    function random_bytes($bytes) {
43 42
         try {
44 43
             $bytes = RandomCompat_intval($bytes);
45 44
         } catch (TypeError $ex) {
Please login to merge, or discard this patch.
html/inc/random_compat/random_bytes_mcrypt.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
      *
39 39
      * @return string
40 40
      */
41
-    function random_bytes($bytes)
42
-    {
41
+    function random_bytes($bytes) {
43 42
         try {
44 43
             $bytes = RandomCompat_intval($bytes);
45 44
         } catch (TypeError $ex) {
Please login to merge, or discard this patch.
html/inc/random_compat/random_bytes_libsodium_legacy.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
      *
39 39
      * @return string
40 40
      */
41
-    function random_bytes($bytes)
42
-    {
41
+    function random_bytes($bytes) {
43 42
         try {
44 43
             $bytes = RandomCompat_intval($bytes);
45 44
         } catch (TypeError $ex) {
Please login to merge, or discard this patch.
html/inc/user.inc 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
         $x .= ' <a href="'.url_base().'view_profile.php?userid='.$user->id.'"><img title="View the profile of '.$user->name.'" src="'.$img_url.'" alt="Profile"></a>';
339 339
     }
340 340
     $x .= " <a href=\"".url_base()."show_user.php?userid=".$user->id."\">".$user->name."</a>";
341
-    if (function_exists("project_user_links")){
341
+    if (function_exists("project_user_links")) {
342 342
         $x .= project_user_links($user);
343 343
     }
344 344
     if ($badge_height) {
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 // Returns a cacheable community links data object
460 460
 // @param user The user to produce a community links object for
461 461
 
462
-function get_community_links_object($user){
462
+function get_community_links_object($user) {
463 463
     $cache_object = new StdClass;
464 464
     $cache_object->post_count = total_posts($user);
465 465
     $cache_object->user = $user;
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
     return $cache_object;
476 476
 }
477 477
 
478
-function community_links($clo, $logged_in_user){
478
+function community_links($clo, $logged_in_user) {
479 479
     $user = $clo->user;
480 480
     $team = $clo->team;
481 481
     $friends = $clo->friends;
Please login to merge, or discard this patch.
default/boinc/modules/boincuser/boincuser_delete/boincuser_delete.admin.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
99 99
     );
100 100
 
101 101
     $form['#redirect'] = 'account';
102
-  }
103
-  else {
102
+  } else {
104 103
     $form['noaccount'] = array(
105 104
       '#value' => t('No such user with UID: %uid', array('%uid' => $uid)),
106 105
     );
Please login to merge, or discard this patch.
default/boinc/modules/boincuser/boincuser_delete/boincuser_delete.module 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
           '#prefix' => '<li class="tab">',
95 95
           '#suffix' => '</li>',
96 96
         );
97
-      }
98
-      else if ( user_access('administer users') ) {
97
+      } else if ( user_access('administer users') ) {
99 98
         $form['delete'] = array(
100 99
           '#type' => 'submit',
101 100
           '#value' => bts('Delete Account', array(), null, 'boinc:delete-user-account'),
@@ -104,8 +103,7 @@  discard block
 block discarded – undo
104 103
           '#prefix' => '<li class="tab">',
105 104
           '#suffix' => '</li>',
106 105
         );
107
-      }
108
-      else {
106
+      } else {
109 107
         unset($form['delete']);
110 108
       }
111 109
       break;
@@ -295,8 +293,7 @@  discard block
 block discarded – undo
295 293
   // Redirect
296 294
   if (!empty($redirect)) {
297 295
     drupal_goto($redirect);
298
-  }
299
-  else {
296
+  } else {
300 297
     drupal_goto();
301 298
   }
302 299
 }
@@ -429,8 +426,7 @@  discard block
 block discarded – undo
429 426
   // Redirect
430 427
   if (!empty($redirect)) {
431 428
     drupal_goto($redirect);
432
-  }
433
-  else {
429
+  } else {
434 430
     drupal_goto();
435 431
   }
436 432
 
Please login to merge, or discard this patch.