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
Push — 2.8 ( 03bafd...757b80 )
by Thorsten
19:17
created
phpmyfaq/attachment.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,9 @@
 block discarded – undo
78 78
     // check user rights, set them TRUE
79 79
     $allUserRights = $user->perm->getAllUserRights($user->getUserId());
80 80
     foreach ($allRights as $right) {
81
-        if (in_array($right['right_id'], $allUserRights))
82
-            $permission[$right['name']] = true;
81
+        if (in_array($right['right_id'], $allUserRights)) {
82
+                    $permission[$right['name']] = true;
83
+        }
83 84
     }
84 85
 }
85 86
 
Please login to merge, or discard this patch.
phpmyfaq/index.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,9 @@
 block discarded – undo
153 153
     // check user rights, set them TRUE
154 154
     $allUserRights = $user->perm->getAllUserRights($user->getUserId());
155 155
     foreach ($allRights as $right) {
156
-        if (in_array($right['right_id'], $allUserRights))
157
-            $permission[$right['name']] = true;
156
+        if (in_array($right['right_id'], $allUserRights)) {
157
+                    $permission[$right['name']] = true;
158
+        }
158 159
     }
159 160
 }
160 161
 
Please login to merge, or discard this patch.
phpmyfaq/ajaxservice.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@
 block discarded – undo
630 630
 
631 631
             if (!$faq->getNumberOfVotings($recordId)) {
632 632
                 $faq->addVoting($votingData);
633
-            }  else {
633
+            } else {
634 634
                 $faq->updateVoting($votingData);
635 635
             }
636 636
             $faqRating = new PMF_Rating($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_image_thumbnail.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@
 block discarded – undo
16 16
 			if($image->resize(CONFIG_IMG_THUMBNAIL_MAX_X, CONFIG_IMG_THUMBNAIL_MAX_Y, true, true))
17 17
 			{
18 18
 				$image->showImage();
19
-			}else 
19
+			} else 
20 20
 			{
21 21
 				echo PREVIEW_NOT_PREVIEW . ".";	
22 22
 			}
23
-		}else 
23
+		} else 
24 24
 		{
25 25
 			echo PREVIEW_NOT_PREVIEW . "..";			
26 26
 		}
27 27
 
28 28
 			
29
-	}else 
29
+	} else 
30 30
 	{
31 31
 		echo PREVIEW_NOT_PREVIEW . "...";
32 32
 	}
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_image_undo.php 1 patch
Braces   +8 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,21 +16,19 @@  discard block
 block discarded – undo
16 16
 	if(CONFIG_SYS_VIEW_ONLY)
17 17
 	{
18 18
 		$error = SYS_DISABLED;
19
-	}
20
-	elseif(empty($_POST['file_path']))
19
+	} elseif(empty($_POST['file_path']))
21 20
 	{
22 21
 		$error  =  IMG_SAVE_EMPTY_PATH;
23
-	}elseif(!file_exists($_POST['file_path']))
22
+	} elseif(!file_exists($_POST['file_path']))
24 23
 	{
25 24
 		$error  =  IMG_SAVE_NOT_EXISTS;
26
-	}elseif(!isUnderRoot($_POST['file_path']))
25
+	} elseif(!isUnderRoot($_POST['file_path']))
27 26
 	{
28 27
 		$error = IMG_SAVE_PATH_DISALLOWED;
29
-	}else if(!sizeof($lastestSessionImageInfo))
28
+	} else if(!sizeof($lastestSessionImageInfo))
30 29
 	{
31 30
 		$error = IMG_UNDO_NO_HISTORY_AVAIALBE;
32
-	}
33
-	else
31
+	} else
34 32
 	{		
35 33
 			//get the original image which is the lastest session image if any when the system is in demo
36 34
 			$sessionImage = $session->getSessionDir() . $lastestSessionImageInfo['name'];
@@ -38,7 +36,7 @@  discard block
 block discarded – undo
38 36
 			if(CONFIG_SYS_DEMO_ENABLE && sizeof($originalSessionImageInfo))
39 37
 			{
40 38
 				$originalImage = $session->getSessionDir() . $originalSessionImageInfo['info']['name'];				
41
-			}else 
39
+			} else 
42 40
 			{
43 41
 				$originalImage = $_POST['file_path'];
44 42
 			}		
@@ -51,7 +49,7 @@  discard block
 block discarded – undo
51 49
 					if(!@copy($sessionImage, $originalImage))
52 50
 					{
53 51
 						$error = IMG_UNDO_COPY_FAILED;
54
-					}else 
52
+					} else 
55 53
 					{
56 54
 						
57 55
 						//remove the session image
@@ -69,7 +67,7 @@  discard block
 block discarded – undo
69 67
 					}
70 68
 					$imagePath = $originalImage;
71 69
 					
72
-				}else 
70
+				} else 
73 71
 				{
74 72
 					$error = IMG_SAVE_IMG_OPEN_FAILED;
75 73
 				}
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_delete_file.php 1 patch
Braces   +7 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,17 +11,15 @@  discard block
 block discarded – undo
11 11
 	if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_DELETE)
12 12
 	{
13 13
 		$error = SYS_DISABLED;
14
-	}
15
-	elseif(!empty($_GET['delete']))
14
+	} elseif(!empty($_GET['delete']))
16 15
 	{//delete the selected file from context menu
17 16
 		if(!file_exists($_GET['delete']))
18 17
 		{
19 18
 			$error = ERR_FILE_NOT_AVAILABLE;
20
-		}
21
-		elseif(!isUnderRoot($_GET['delete']))
19
+		} elseif(!isUnderRoot($_GET['delete']))
22 20
 		{
23 21
 			$error = ERR_FOLDER_PATH_NOT_ALLOWED;
24
-		}else
22
+		} else
25 23
 		{
26 24
 				include_once(CLASS_FILE);
27 25
 				$file = new file();
@@ -30,7 +28,7 @@  discard block
 block discarded – undo
30 28
 					 && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, getBaseName($_GET['delete'])))
31 29
 					{
32 30
 						$file->delete(addTrailingSlash(backslashToSlash($_GET['delete'])));
33
-					}elseif(is_file($_GET['delete']) 
31
+					} elseif(is_file($_GET['delete']) 
34 32
 					&& isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, getBaseName($_GET['delete']))
35 33
 					&& !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, getBaseName($_GET['delete']))
36 34
 					)
@@ -38,13 +36,12 @@  discard block
 block discarded – undo
38 36
 						$file->delete(($_GET['delete']));
39 37
 					}			
40 38
 		}
41
-	}else 
39
+	} else 
42 40
 	{
43 41
 		if(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)
44 42
 		{
45 43
 			$error = ERR_NOT_FILE_SELECTED;
46
-		}
47
-		else 
44
+		} else 
48 45
 		{
49 46
 
50 47
 			include_once(CLASS_FILE);
@@ -59,7 +56,7 @@  discard block
 block discarded – undo
59 56
 					 && !isInvalidPattern(CONFIG_SYS_EXC_DIR_PATTERN, $doc))
60 57
 					{
61 58
 						$file->delete(addTrailingSlash(backslashToSlash($doc)));
62
-					}elseif(is_file($doc) 
59
+					} elseif(is_file($doc) 
63 60
 					&& isValidPattern(CONFIG_SYS_INC_FILE_PATTERN, $doc)
64 61
 					&& !isInvalidPattern(CONFIG_SYS_EXC_FILE_PATTERN, $doc)
65 62
 					)
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_file_cut.php 1 patch
Braces   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,15 +12,13 @@
 block discarded – undo
12 12
 	if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_CUT)
13 13
 	{
14 14
 		$error = SYS_DISABLED;
15
-	}
16
-	elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)
15
+	} elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)
17 16
 	{
18 17
 		$error = ERR_NOT_DOC_SELECTED_FOR_CUT;
19
-	}
20
-	elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath']))
18
+	} elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath']))
21 19
 	{
22 20
 		$error = ERR_FOLDER_PATH_NOT_ALLOWED;
23
-	}else 
21
+	} else 
24 22
 	{		
25 23
 		require_once(CLASS_SESSION_ACTION);
26 24
 		$sessionAction = new SessionAction();
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_file_paste.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,17 +6,16 @@  discard block
 block discarded – undo
6 6
 	if(CONFIG_SYS_VIEW_ONLY || (!CONFIG_OPTIONS_CUT && !CONFIG_OPTIONS_COPY))
7 7
 	{
8 8
 		$error = SYS_DISABLED;
9
-	}
10
-	elseif(empty($_GET['current_folder_path']))
9
+	} elseif(empty($_GET['current_folder_path']))
11 10
 		{
12 11
 			$error = ERR_NOT_DEST_FOLDER_SPECIFIED;
13
-		}elseif(!file_exists($_GET['current_folder_path']) || !is_dir($_GET['current_folder_path']))
12
+		} elseif(!file_exists($_GET['current_folder_path']) || !is_dir($_GET['current_folder_path']))
14 13
 		{
15 14
 			$error = ERR_DEST_FOLDER_NOT_FOUND;
16
-		}elseif(!isUnderRoot($_GET['current_folder_path']))
15
+		} elseif(!isUnderRoot($_GET['current_folder_path']))
17 16
 		{
18 17
 			$error = ERR_DEST_FOLDER_NOT_ALLOWED;
19
-		}else 
18
+		} else 
20 19
 		{
21 20
 			
22 21
 			include_once(CLASS_MANAGER);
@@ -98,7 +97,7 @@  discard block
 block discarded – undo
98 97
 								$fileMoved[sizeof($fileMoved)] = $tem;
99 98
 								$tem = null;
100 99
 							}							
101
-						}else 
100
+						} else 
102 101
 						{
103 102
 							$unmovedDocDueToSamePath[] = $doc;
104 103
 						}
@@ -111,7 +110,7 @@  discard block
 block discarded – undo
111 110
 			if(sizeof($unmovedDocDueToSamePath) == sizeof($selectedDocuments))
112 111
 			{
113 112
 				$error = ERR_DEST_FOLDER_NOT_ALLOWED;
114
-			}elseif(sizeof($unmovedDocDueToSamePath)) 
113
+			} elseif(sizeof($unmovedDocDueToSamePath)) 
115 114
 			{
116 115
 				foreach($unmovedDocDueToSamePath as $v)
117 116
 				{
Please login to merge, or discard this patch.
phpmyfaq/admin/editor/plugins/ajaxfilemanager/ajax_file_copy.php 1 patch
Braces   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,15 +13,13 @@
 block discarded – undo
13 13
 	if(CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_COPY)
14 14
 	{
15 15
 		$error = SYS_DISABLED;
16
-	}
17
-	elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)
16
+	} elseif(!isset($_POST['selectedDoc']) || !is_array($_POST['selectedDoc']) || sizeof($_POST['selectedDoc']) < 1)
18 17
 	{
19 18
 		$error = ERR_NOT_DOC_SELECTED_FOR_COPY;
20
-	}
21
-	elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath']))
19
+	} elseif(empty($_POST['currentFolderPath']) || !isUnderRoot($_POST['currentFolderPath']))
22 20
 	{
23 21
 		$error = ERR_FOLDER_PATH_NOT_ALLOWED;
24
-	}else 
22
+	} else 
25 23
 	{		
26 24
 		require_once(CLASS_SESSION_ACTION);
27 25
 		$sessionAction = new SessionAction();
Please login to merge, or discard this patch.