Code Duplication    Length = 9-9 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 111-119 (lines=9) @@
108
109
						${$source}['unknown']++;
110
					}
111
					else
112
					{
113
						if (!isset(${$source}[$item[$source]]))
114
						{
115
							${$source}[$item[$source]] = 0;
116
						}
117
118
						${$source}[$item[$source]]++;
119
					}
120
				}
121
			}
122
		}
@@ 219-227 (lines=9) @@
216
217
						$data[$source]['unknown']++;
218
					}
219
					else
220
					{
221
						if (!isset($data[$source][$item[$source]]))
222
						{
223
							$data[$source][$item[$source]] = 0;
224
						}
225
226
						$data[$source][$item[$source]]++;
227
					}
228
				}
229
			}
230
		}