Passed
Push — teampass_3.0 ( e9696d...a4fa10 )
by Nils
05:39
created
sources/items.queries.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
                 );
952 952
 
953 953
                 // Does the user has the sharekey
954
-				//db::debugmode(true);
954
+                //db::debugmode(true);
955 955
                 DB::query(
956 956
                     'SELECT *
957 957
                     FROM ' . prefixTable('sharekeys_items') . '
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
                     $postArrayTags = explode(' ', $post_tags);
1091 1091
                     foreach ($postArrayTags as $tag) {
1092 1092
                         if (empty($tag) === false) {
1093
-                           // save in DB
1093
+                            // save in DB
1094 1094
                             DB::insert(
1095 1095
                                 prefixTable('tags'),
1096 1096
                                 array(
@@ -2601,7 +2601,7 @@  discard block
 block discarded – undo
2601 2601
                         foreach ($rows_tmp as $row) {
2602 2602
                             // Uncrypt data
2603 2603
                             // Get the object key for the user
2604
-							//db::debugmode(true);
2604
+                            //db::debugmode(true);
2605 2605
                             $userKey = DB::queryFirstRow(
2606 2606
                                 'SELECT share_key
2607 2607
                                 FROM ' . prefixTable('sharekeys_fields') . '
@@ -4295,20 +4295,20 @@  discard block
 block discarded – undo
4295 4295
                 }
4296 4296
             }
4297 4297
 			
4298
-			// Get access level for this folder
4299
-			$accessLevel = 20;
4300
-			if ($folder_is_personal === 0) {
4301
-				$arrTmp = [];
4302
-				foreach ($_SESSION['user_roles'] as $role) {
4303
-					//db::debugmode(true);
4304
-					$access = DB::queryFirstRow(
4305
-						'SELECT type
4298
+            // Get access level for this folder
4299
+            $accessLevel = 20;
4300
+            if ($folder_is_personal === 0) {
4301
+                $arrTmp = [];
4302
+                foreach ($_SESSION['user_roles'] as $role) {
4303
+                    //db::debugmode(true);
4304
+                    $access = DB::queryFirstRow(
4305
+                        'SELECT type
4306 4306
 						FROM ' . prefixTable('roles_values') . '
4307 4307
 						WHERE role_id = %i AND folder_id = %i',
4308
-						$role,
4309
-						$post_groupe
4310
-					);
4311
-					//db::debugmode(false);
4308
+                        $role,
4309
+                        $post_groupe
4310
+                    );
4311
+                    //db::debugmode(false);
4312 4312
                     if (DB::count()>0) {
4313 4313
                         if ($access['type'] === 'R') {
4314 4314
                             array_push($arrTmp, 10);
@@ -4329,12 +4329,12 @@  discard block
 block discarded – undo
4329 4329
                             }
4330 4330
                         }
4331 4331
                     }
4332
-				}
4333
-				// 3.0.0.0 - changed  MIN to MAX
4334
-				$accessLevel = count($arrTmp) > 0 ? max($arrTmp) : $accessLevel;
4335
-			} elseif ($folder_is_personal === 1) {
4336
-				$accessLevel = 30;
4337
-			}
4332
+                }
4333
+                // 3.0.0.0 - changed  MIN to MAX
4334
+                $accessLevel = count($arrTmp) > 0 ? max($arrTmp) : $accessLevel;
4335
+            } elseif ($folder_is_personal === 1) {
4336
+                $accessLevel = 30;
4337
+            }
4338 4338
 
4339 4339
             $returnValues = array(
4340 4340
                 'folderId' => (int) $post_groupe,
Please login to merge, or discard this patch.
pages/special.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 if (
29
-  isset($_SESSION['CPM']) === false || $_SESSION['CPM'] !== 1
29
+    isset($_SESSION['CPM']) === false || $_SESSION['CPM'] !== 1
30 30
   || isset($_SESSION['user_id']) === false || empty($_SESSION['user_id']) === true
31 31
   || isset($_SESSION['key']) === false || empty($_SESSION['key']) === true
32 32
 ) {
Please login to merge, or discard this patch.
pages/utilities.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
  */
27 27
 
28 28
 if (
29
-  isset($_SESSION['CPM']) === false || $_SESSION['CPM'] !== 1
29
+    isset($_SESSION['CPM']) === false || $_SESSION['CPM'] !== 1
30 30
   || isset($_SESSION['user_id']) === false || empty($_SESSION['user_id']) === true
31 31
   || isset($_SESSION['key']) === false || empty($_SESSION['key']) === true
32 32
 ) {
Please login to merge, or discard this patch.
sources/main.functions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2226,7 +2226,7 @@
 block discarded – undo
2226 2226
  * <tt>exec("find ".$path." -type d -exec chmod 755 {} \;");</tt>
2227 2227
  *
2228 2228
  * @author Jeppe Toustrup (tenzer at tenzer dot dk)
2229
-  *
2229
+ *
2230 2230
  * @param string $path      An either relative or absolute path to a file or directory which should be processed.
2231 2231
  * @param int    $filePerm The permissions any found files should get.
2232 2232
  * @param int    $dirPerm  The permissions any found folder should get.
Please login to merge, or discard this patch.
pages/search.js.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -2,30 +2,30 @@
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
- /**
6
-  * Teampass - a collaborative passwords manager.
7
-  * ---
8
-  * This library is distributed in the hope that it will be useful,
9
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
-  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
-  * ---
12
-  *
13
-  * @project   Teampass
14
-  *
15
-  * @file      search.js.php
16
-  * ---
17
-  *
18
-  * @author    Nils Laumaillé ([email protected])
19
-  *
20
-  * @copyright 2009-2022 Teampass.net
21
-  *
22
-  * @license   https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0
23
-  * ---
24
-  *
25
-  * @see       https://www.teampass.net
26
-  */
27
-
28
- $var = [];
5
+    /**
6
+     * Teampass - a collaborative passwords manager.
7
+     * ---
8
+     * This library is distributed in the hope that it will be useful,
9
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
+     * ---
12
+     *
13
+     * @project   Teampass
14
+     *
15
+     * @file      search.js.php
16
+     * ---
17
+     *
18
+     * @author    Nils Laumaillé ([email protected])
19
+     *
20
+     * @copyright 2009-2022 Teampass.net
21
+     *
22
+     * @license   https://spdx.org/licenses/GPL-3.0-only.html#licenseText GPL-3.0
23
+     * ---
24
+     *
25
+     * @see       https://www.teampass.net
26
+     */
27
+
28
+    $var = [];
29 29
 $var['hidden_asterisk'] = '<i class="fas fa-asterisk mr-2"></i><i class="fas fa-asterisk mr-2"></i><i class="fas fa-asterisk mr-2"></i><i class="fas fa-asterisk mr-2"></i><i class="fas fa-asterisk"></i>';
30 30
 
31 31
 ?>
Please login to merge, or discard this patch.