Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 128-131 (lines=4) @@
125
						}
126
						else
127
						{
128
							if (!isset(${$source}[$item[$source]]))
129
							{
130
								${$source}[$item[$source]] = 0;
131
							}
132
133
							${$source}[$item[$source]]++;
134
						}
@@ 247-250 (lines=4) @@
244
						}
245
						else
246
						{
247
							if (!isset($data[$source][$item[$source]]))
248
							{
249
								$data[$source][$item[$source]] = 0;
250
							}
251
252
							$data[$source][$item[$source]]++;
253
						}