Completed
Push — development ( 68d2c9...7e747e )
by Nils
12:04 queued 04:59
created
install/js/crypt/aes.class.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,9 @@
 block discarded – undo
50 50
      */
51 51
     private static function addRoundKey($state, $w, $rnd, $Nb) {  // xor Round Key into state S [é5.1.4]
52 52
     for ($r = 0; $r < 4; $r++) {
53
-        for ($c = 0; $c < $Nb; $c++) $state[$r][$c] ^= $w[$rnd * 4 + $c][$r];
53
+        for ($c = 0; $c < $Nb; $c++) {
54
+            $state[$r][$c] ^= $w[$rnd * 4 + $c][$r];
55
+        }
54 56
     }
55 57
 
56 58
     return $state;
Please login to merge, or discard this patch.
sources/items.queries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2686,7 +2686,7 @@  discard block
 block discarded – undo
2686 2686
                 // Delete file from server
2687 2687
                 try {
2688 2688
                     unlink($_SESSION['settings']['path_to_upload_folder']."/".$data['file']);
2689
-                } catch(Exception $e){
2689
+                } catch (Exception $e) {
2690 2690
                     print_r($e);
2691 2691
                 }
2692 2692
             }
@@ -3366,7 +3366,7 @@  discard block
 block discarded – undo
3366 3366
 
3367 3367
             try {
3368 3368
                 unlink($_SESSION['settings']['path_to_upload_folder'].'/'.$result['file'].$_POST['file_suffix']);
3369
-            } catch(Exception $e){
3369
+            } catch (Exception $e) {
3370 3370
                 print_r($e);
3371 3371
             }
3372 3372
 
Please login to merge, or discard this patch.
sources/main.queries.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1162,7 +1162,7 @@
 block discarded – undo
1162 1162
 
1163 1163
         try {
1164 1164
             unlink($_POST['filename']);
1165
-        } catch(Exception $e){
1165
+        } catch (Exception $e) {
1166 1166
             print_r($e);
1167 1167
         }
1168 1168
 
Please login to merge, or discard this patch.
sources/upload/upload.files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
             fclose($out);
233 233
             try {
234 234
                 unlink($_FILES['file']['tmp_name']);
235
-            } catch(Exception $e){
235
+            } catch (Exception $e) {
236 236
                 print_r($e);
237 237
             }
238 238
         } else {
Please login to merge, or discard this patch.
sources/main.functions.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1748,7 +1748,7 @@
 block discarded – undo
1748 1748
     if (is_file($file)) {
1749 1749
         try {
1750 1750
             close($file);
1751
-        } catch(Exception $e){
1751
+        } catch (Exception $e) {
1752 1752
             print_r($e);
1753 1753
         }
1754 1754
         // define if we under Windows
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -1349,6 +1349,7 @@
 block discarded – undo
1349 1349
 */
1350 1350
 /**
1351 1351
  * @param string $message
1352
+ * @param string $host
1352 1353
  */
1353 1354
 function send_syslog($message, $component = "teampass", $host, $port)
1354 1355
 {
Please login to merge, or discard this patch.
sources/upload/upload.attachments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 if (!file_exists($targetDir)) {
221 221
     try {
222 222
         mkdir($targetDir);
223
-    } catch(Exception $e){
223
+    } catch (Exception $e) {
224 224
         print_r($e);
225 225
     }
226 226
 }
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         ) {
238 238
             try {
239 239
                 unlink($tmpfilePath);
240
-            } catch(Exception $e){
240
+            } catch (Exception $e) {
241 241
                 print_r($e);
242 242
             }
243 243
         }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
             fclose($out);
305 305
             try {
306 306
                 unlink($_FILES['file']['tmp_name']);
307
-            } catch(Exception $e){
307
+            } catch (Exception $e) {
308 308
                 print_r($e);
309 309
             }
310 310
         } else {
Please login to merge, or discard this patch.