GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#1)
by Oliver
02:44
created
WebApp/attachments.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
 }
12 12
 
13 13
 if (isset($_FILES['UploadedAttachments']) && isset($_POST['Attachment_TrId'])) {
14
-    $TrNumber = (int) $_POST['Attachment_TrId'];
14
+    $TrNumber = (int)$_POST['Attachment_TrId'];
15 15
     $FileName = $_FILES['UploadedAttachments']['name'];
16
-    $FileExtension = substr($FileName, strpos($FileName, '.') + 1, strlen($FileName));
17
-    $NewFileName = 'Transaction_'.$TrNumber.'_Attach'.(attachments::get_number_of_attachments($TrNumber) + 1).'.'.$FileExtension;
16
+    $FileExtension = substr($FileName, strpos($FileName, '.')+1, strlen($FileName));
17
+    $NewFileName = 'Transaction_'.$TrNumber.'_Attach'.(attachments::get_number_of_attachments($TrNumber)+1).'.'.$FileExtension;
18 18
     move_uploaded_file($_FILES['UploadedAttachments']['tmp_name'], 'attachments/'.$NewFileName);
19 19
     echo $NewFileName;
20 20
 }
Please login to merge, or discard this patch.
WebApp/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             if (!empty($TransactionsArr)) {
61 61
                 for ($i = 0; $i < count($TransactionsArr); $i++) {
62 62
                     $TransactionsArr[$i]['Attachments'] =
63
-                            implode(';', attachments::get_attachments_filename_array((int) $TransactionsArr[$i]['ID']));
63
+                            implode(';', attachments::get_attachments_filename_array((int)$TransactionsArr[$i]['ID']));
64 64
                 }
65 65
                 echo json_encode($TransactionsArr, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_FORCE_OBJECT);
66 66
             }
Please login to merge, or discard this patch.
WebApp/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
         if (function_exists('com_create_guid')) {
808 808
             return com_create_guid();
809 809
         } else {
810
-            mt_srand((float) microtime() * 10000);
810
+            mt_srand((float)microtime() * 10000);
811 811
             $charid = strtoupper(md5(uniqid(rand(), true)));
812 812
             $hyphen = chr(45); // "-"
813 813
                     $uuid = chr(123)// "{"
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
         if ($handle = opendir(costant::attachments_folder())) {
1044 1044
             while (false !== ($entry = readdir($handle))) {
1045 1045
                 if (strpos($entry, 'Transaction_'.$TrID) == 0 && strpos($entry, 'Transaction_'.$TrID) !== false) {
1046
-                    $AttachNumb = substr($entry, strpos($entry, 'Attach') + 6, strpos($entry, '.') - (strpos($entry, 'Attach') + 6));
1046
+                    $AttachNumb = substr($entry, strpos($entry, 'Attach')+6, strpos($entry, '.')-(strpos($entry, 'Attach')+6));
1047 1047
                     if ($AttachNumb > $LastAttachNum) {
1048 1048
                         $LastAttachNum = $AttachNumb;
1049 1049
                     }
Please login to merge, or discard this patch.