- 
		Home
	
 
	- 
Comments – wpDiscuz
 
- 
7.1.0
 
- 
Code
 
- 
Classes
 
-  WpdiscuzHelperUpload 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											237 | 
										
																			
											| Dependencies | 
											1 | 
										
																			
											| Dependents | 
											1 | 
										
																	
							 
													
								
																			
											| Total lines | 
											784 | 
										
																			
											| Lines of code | 
											682 | 
										
																			
											| Logical lines of code | 
											461 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											6 | 
										
																			
											| Methods | 
											36 | 
										
																			
											| Properties | 
											9 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 36
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| uploadFiles() | 
									D  | 
																	27  | 
													41 | 
													119 | 
							
					
				| getAttachedImages() | 
									B  | 
																	34 | 
													18 | 
													84 | 
							
					
				| removeAttachmentPreview() | 
									B  | 
																	41 | 
													19 | 
													47 | 
							
					
				| deleteAttachment() | 
									A  | 
																	50 | 
													10 | 
													25 | 
							
					
				| addAttachments() | 
									A  | 
																	56 | 
													10 | 
													17 | 
							
					
				| imageFixOrientation() | 
									A  | 
																	53 | 
													9 | 
													21 | 
							
					
				| exportPersonalData() | 
									A  | 
																	53 | 
													9 | 
													21 | 
							
					
				| uploadSingleFile() | 
									A  | 
																	43 | 
													7 | 
													43 | 
							
					
				| isUploadingAllowed() | 
									A  | 
																	56 | 
													8 | 
													16 | 
							
					
				| getFileName() | 
									A  | 
																	56 | 
													8 | 
													16 | 
							
					
				| deleteLinkedAttachments() | 
									S  | 
																	59 | 
													8 | 
													14 | 
							
					
				| deleteAttachmentIdFromMeta() | 
									S  | 
																	53 | 
													7 | 
													23 | 
							
					
				| getAttachments() | 
									S  | 
																	53 | 
													7 | 
													20 | 
							
					
				| getMimeType() | 
									S  | 
																	55 | 
													7 | 
													18 | 
							
					
				| getMimeTypeFromContent() | 
									S  | 
																	57 | 
													6 | 
													15 | 
							
					
				| isAllowedFileType() | 
									S  | 
																	60 | 
													6 | 
													13 | 
							
					
				| hasAttachments() | 
									S  | 
																	62 | 
													6 | 
													12 | 
							
					
				| canUserUpload() | 
									S  | 
																	59 | 
													5 | 
													14 | 
							
					
				| getImageSizes() | 
									S  | 
																	57 | 
													4 | 
													16 | 
							
					
				| __construct() | 
									S  | 
																	48 | 
													3 | 
													30 | 
							
					
				| getImagesSizes() | 
									S  | 
																	64 | 
													5 | 
													10 | 
							
					
				| getDeleteHtml() | 
									S  | 
																	61 | 
													5 | 
													10 | 
							
					
				| uploadButtons() | 
									S  | 
																	57 | 
													3 | 
													15 | 
							
					
				| commentText() | 
									S  | 
																	69 | 
													4 | 
													6 | 
							
					
				| isAllowedPostType() | 
									S  | 
																	73 | 
													4 | 
													4 | 
							
					
				| canEditAttachments() | 
									S  | 
																	75 | 
													4 | 
													3 | 
							
					
				| combineArray() | 
									S  | 
																	66 | 
													3 | 
													9 | 
							
					
				| uploadPreview() | 
									S  | 
																	65 | 
													2 | 
													9 | 
							
					
				| commentListArgs() | 
									S  | 
																	67 | 
													2 | 
													8 | 
							
					
				| afterReadMore() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| postComment() | 
									S  | 
																	73 | 
													1 | 
													5 | 
							
					
				| wmuImageCallbacks() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| setCurrentUser() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| getDefaultPostTypes() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| getDefaultRoles() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| isImage() | 
									S  | 
																	79 | 
													1 | 
													3 |