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.

Code Duplication    Length = 60-61 lines in 2 locations

widgets/content/content.class.php 1 location

@@ 118-178 (lines=61) @@
115
		 * Method is separately made because content extraction, articles, comments, trackbacks, RSS and other elements exist
116
		 */
117
		// tab type
118
		if($args->tab_type == 'none' || $args->tab_type == '')
119
		{
120
			switch($args->content_type)
121
			{
122
				case 'comment':
123
					$content_items = $this->_getCommentItems($args);
124
					break;
125
				case 'image':
126
					$content_items = $this->_getImageItems($args);
127
					break;
128
				case 'rss':
129
					$content_items = $this->getRssItems($args);
130
					break;
131
				case 'trackback':
132
					$content_items = $this->_getTrackbackItems($args);
133
					break;
134
				default:
135
					$content_items = $this->_getDocumentItems($args);
136
					break;
137
			}
138
			// If not a tab type
139
		}
140
		else
141
		{
142
			$content_items = array();
143
144
			switch($args->content_type)
145
			{
146
				case 'comment':
147
					foreach($args->mid_lists as $module_srl => $mid)
148
					{
149
						$args->module_srl = $module_srl;
150
						$content_items[$module_srl] = $this->_getCommentItems($args);
151
					}
152
					break;
153
				case 'image':
154
					foreach($args->mid_lists as $module_srl => $mid)
155
					{
156
						$args->module_srl = $module_srl;
157
						$content_items[$module_srl] = $this->_getImageItems($args);
158
					}
159
					break;
160
				case 'rss':
161
					$content_items = $this->getRssItems($args);
162
					break;
163
				case 'trackback':
164
					foreach($args->mid_lists as $module_srl => $mid)
165
					{
166
						$args->module_srl = $module_srl;
167
						$content_items[$module_srl] = $this->_getTrackbackItems($args);
168
					}
169
					break;
170
				default:
171
					foreach($args->mid_lists as $module_srl => $mid)
172
					{
173
						$args->module_srl = $module_srl;
174
						$content_items[$module_srl] = $this->_getDocumentItems($args);
175
					}
176
					break;
177
			}
178
		}
179
180
		$output = $this->_compile($args,$content_items);
181
		return $output;

widgets/mcontent/mcontent.class.php 1 location

@@ 102-161 (lines=60) @@
99
		 * Method is separately made because content extraction, articles, comments, trackbacks, RSS and other elements exist
100
		 */
101
		// tab mode
102
		if($args->tab_type == 'none' || $args->tab_type == '')
103
		{
104
			switch($args->content_type)
105
			{
106
				case 'comment':
107
					$content_items = $this->_getCommentItems($args);
108
					break;
109
				case 'image':
110
					$content_items = $this->_getImageItems($args);
111
					break;
112
				case 'rss':
113
					$content_items = $this->getRssItems($args);
114
					break;
115
				case 'trackback':
116
					$content_items = $this->_getTrackbackItems($args);
117
					break;
118
				default:
119
					$content_items = $this->_getDocumentItems($args);
120
					break;
121
			}
122
			// If not a tab type
123
		}
124
		else
125
		{
126
			$content_items = array();
127
128
			switch($args->content_type)
129
			{
130
				case 'comment':
131
					foreach($args->mid_lists as $module_srl => $mid)
132
					{
133
						$args->module_srl = $module_srl;
134
						$content_items[$module_srl] = $this->_getCommentItems($args);
135
					}
136
					break;
137
				case 'image':
138
					foreach($args->mid_lists as $module_srl => $mid)
139
					{
140
						$args->module_srl = $module_srl;
141
						$content_items[$module_srl] = $this->_getImageItems($args);
142
					}
143
					break;
144
				case 'rss':
145
					$content_items = $this->getRssItems($args);
146
					break;
147
				case 'trackback':
148
					foreach($args->mid_lists as $module_srl => $mid){
149
						$args->module_srl = $module_srl;
150
						$content_items[$module_srl] = $this->_getTrackbackItems($args);
151
					}
152
					break;
153
				default:
154
					foreach($args->mid_lists as $module_srl => $mid)
155
					{
156
						$args->module_srl = $module_srl;
157
						$content_items[$module_srl] = $this->_getDocumentItems($args);
158
					}
159
					break;
160
			}
161
		}
162
163
		$output = $this->_compile($args,$content_items);
164
		return $output;