Passed
Pull Request — master (#6441)
by
unknown
09:23
created
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.
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.
html/inc/account.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,8 +174,7 @@
 block discarded – undo
174 174
             array("agree_to_terms_of_use", "", false),
175 175
         );
176 176
         form_checkboxes(tra("Do you agree to the terms of use above?"), $myitems, 'tabindex="0"');
177
-    }
178
-    else {
177
+    } else {
179 178
         // error - no terms of use for user to agree to!
180 179
     }
181 180
 
Please login to merge, or discard this patch.
html/user/create_account.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
             // set to 1.
105 105
             if ($consent_flag==0) {
106 106
                 $rc = consent_to_a_policy($user, $ctid, 0, 1, $source);
107
-            } else  {
107
+            } else {
108 108
                 $rc = consent_to_a_policy($user, $ctid, 1, 0, $source);
109 109
             }
110 110
             if (!$rc) {
Please login to merge, or discard this patch.