- 
		Home
	
 
	- 
LearnPress – WordPress LMS Plugin
 
- 
4.1.4
 
- 
Code
 
- 
Classes
 
-  LP_Jwt_Courses_V1_Controller 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											139 | 
										
																			
											| Dependencies | 
											12 | 
										
																			
											| Dependents | 
											0 | 
										
																	
							 
													
								
																			
											| Total lines | 
											1,101 | 
										
																			
											| Lines of code | 
											919 | 
										
																			
											| Logical lines of code | 
											328 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											35 | 
										
																			
											| Methods | 
											21 | 
										
																			
											| Properties | 
											4 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 21
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| get_course_data() | 
									C  | 
																	35 | 
													26 | 
													79 | 
							
					
				| prepare_objects_query() | 
									B  | 
																	38 | 
													21 | 
													65 | 
							
					
				| get_item_schema() | 
									B  | 
																	24  | 
													1 | 
													321 | 
							
					
				| get_all_items() | 
									A  | 
																	40 | 
													15 | 
													57 | 
							
					
				| check_read_permission() | 
									A  | 
																	51 | 
													11 | 
													26 | 
							
					
				| get_item_learned_ids() | 
									A  | 
																	48 | 
													9 | 
													31 | 
							
					
				| register_routes() | 
									S  | 
																	36 | 
													1 | 
													118 | 
							
					
				| create_item() | 
									S  | 
																	47 | 
													6 | 
													34 | 
							
					
				| get_course_data_for_current_user() | 
									S  | 
																	55 | 
													7 | 
													18 | 
							
					
				| get_object() | 
									S  | 
																	59 | 
													7 | 
													13 | 
							
					
				| finish_course() | 
									S  | 
																	51 | 
													6 | 
													25 | 
							
					
				| get_course_meta() | 
									S  | 
																	56 | 
													6 | 
													18 | 
							
					
				| check_can_finish() | 
									S  | 
																	63 | 
													4 | 
													11 | 
							
					
				| get_instructor_info() | 
									S  | 
																	57 | 
													3 | 
													17 | 
							
					
				| get_course_taxonomy() | 
									S  | 
																	60 | 
													3 | 
													14 | 
							
					
				| get_items_permissions_check() | 
									S  | 
																	62 | 
													3 | 
													11 | 
							
					
				| get_collection_params() | 
									S  | 
																	50 | 
													1 | 
													33 | 
							
					
				| get_course_rating() | 
									S  | 
																	67 | 
													3 | 
													7 | 
							
					
				| enroll_course() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| retake_course() | 
									S  | 
																	66 | 
													2 | 
													8 | 
							
					
				| prepare_object_for_response() | 
									S  | 
																	68 | 
													2 | 
													6 |