Code Duplication    Length = 8-8 lines in 2 locations

includes/AjaxDispatcher.php 2 locations

@@ 72-79 (lines=8) @@
69
		}
70
71
		switch ( $this->mode ) {
72
			case 'get':
73
				$this->func_name = isset( $_GET["rs"] ) ? $_GET["rs"] : '';
74
				if ( !empty( $_GET["rsargs"] ) ) {
75
					$this->args = $_GET["rsargs"];
76
				} else {
77
					$this->args = [];
78
				}
79
				break;
80
			case 'post':
81
				$this->func_name = isset( $_POST["rs"] ) ? $_POST["rs"] : '';
82
				if ( !empty( $_POST["rsargs"] ) ) {
@@ 80-87 (lines=8) @@
77
					$this->args = [];
78
				}
79
				break;
80
			case 'post':
81
				$this->func_name = isset( $_POST["rs"] ) ? $_POST["rs"] : '';
82
				if ( !empty( $_POST["rsargs"] ) ) {
83
					$this->args = $_POST["rsargs"];
84
				} else {
85
					$this->args = [];
86
				}
87
				break;
88
			default:
89
				return;
90
				# Or we could throw an exception: