Passed
Push — development ( e70928...dcc270 )
by Nils
04:37
created
sources/main.functions.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
         }
786 786
         // Get IDs of personal folders
787 787
         if (isset($SETTINGS['enable_pf_feature']) === true && $SETTINGS['enable_pf_feature'] === '1'
788
-            && isset($_SESSION['personal_folder']) === true &&  $_SESSION['personal_folder'] === '1'
788
+            && isset($_SESSION['personal_folder']) === true && $_SESSION['personal_folder'] === '1'
789 789
         ) {
790 790
             $persoFld = DB::queryfirstrow(
791 791
                 "SELECT id
@@ -1997,7 +1997,7 @@  discard block
 block discarded – undo
1997 1997
     $antiXss = new protect\AntiXSS\AntiXSS();
1998 1998
 
1999 1999
     // Protect against bad inputs
2000
-    if (is_array($source_file) ||is_array($target_file)) {
2000
+    if (is_array($source_file) || is_array($target_file)) {
2001 2001
         return 'error_cannot_be_array';
2002 2002
     }
2003 2003
 
@@ -2154,7 +2154,7 @@  discard block
 block discarded – undo
2154 2154
     $newArr = array();
2155 2155
 
2156 2156
     foreach ($arr as $key => $value) {
2157
-        $newArr[ $key ] = (is_array($value) ? array_map_r($func, $value) : ( is_array($func) ? call_user_func_array($func, $value) : $func( $value )));
2157
+        $newArr[$key] = (is_array($value) ? array_map_r($func, $value) : (is_array($func) ? call_user_func_array($func, $value) : $func($value)));
2158 2158
     }
2159 2159
 
2160 2160
     return $newArr;
@@ -2289,16 +2289,16 @@  discard block
 block discarded – undo
2289 2289
     $mailname = str_replace($domain, '', $email);
2290 2290
     $name_l = strlen($mailname);
2291 2291
     $domain_l = strlen($domain);
2292
-    for($i = 0; $i <= $name_l/$prop-1; $i++) {
2292
+    for ($i = 0; $i <= $name_l / $prop - 1; $i++) {
2293 2293
         $start .= 'x';
2294 2294
     }
2295 2295
 
2296
-    for($i = 0; $i <= $domain_l/$prop-1; $i++) {
2296
+    for ($i = 0; $i <= $domain_l / $prop - 1; $i++) {
2297 2297
         $end .= 'x';
2298 2298
     }
2299 2299
 
2300
-    return substr_replace($mailname, $start, 2, $name_l/$prop )
2301
-        .substr_replace($domain, $end, 2, $domain_l/$prop); 
2300
+    return substr_replace($mailname, $start, 2, $name_l / $prop)
2301
+        .substr_replace($domain, $end, 2, $domain_l / $prop); 
2302 2302
 }
2303 2303
 
2304 2304
 /**
@@ -2377,9 +2377,9 @@  discard block
 block discarded – undo
2377 2377
 
2378 2378
                             if ($entries['count'] > 0) {
2379 2379
                                 // Now check if group fits
2380
-                                for ($i=0; $i<$entries['count']; $i++) {
2381
-                                    $parsr=ldap_explode_dn($entries[$i]['dn'], 0);
2382
-                                    if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) {
2380
+                                for ($i = 0; $i < $entries['count']; $i++) {
2381
+                                    $parsr = ldap_explode_dn($entries[$i]['dn'], 0);
2382
+                                    if (str_replace(array('CN=', 'cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) {
2383 2383
                                     $GroupRestrictionEnabled = true;
2384 2384
                                     break;
2385 2385
                                     }
Please login to merge, or discard this patch.
includes/language/russian.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/bulgarian.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/hungarian.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/chinese.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/greek.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/italian.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/spanish.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.
includes/language/romanian.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'login_attempts' => 'Login attempts since last successful connection',
18 18
     'settings_secure_display_image' => 'Enable secure image display',
19 19
     'settings_secure_display_image_tip' => 'Secure image display permits to read the image through PHP when a user previews an image attached to an item. Pro: the attachment is stored outside the site folder and is not accessible by a hacker. Con: it is slightly slower than previewing directly from an url.',
Please login to merge, or discard this patch.