Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 111-114 (lines=4) @@
108
						}
109
						else
110
						{
111
							if (!isset(${$source}[$item[$source]]))
112
							{
113
								${$source}[$item[$source]] = 0;
114
							}
115
116
							${$source}[$item[$source]]++;
117
						}
@@ 230-233 (lines=4) @@
227
						}
228
						else
229
						{
230
							if (!isset($data[$source][$item[$source]]))
231
							{
232
								$data[$source][$item[$source]] = 0;
233
							}
234
235
							$data[$source][$item[$source]]++;
236
						}