Code Duplication    Length = 9-9 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 109-117 (lines=9) @@
106
107
							${$source}['unknown']++;
108
						}
109
						else
110
						{
111
							if (!isset(${$source}[$item[$source]]))
112
							{
113
								${$source}[$item[$source]] = 0;
114
							}
115
116
							${$source}[$item[$source]]++;
117
						}
118
					}
119
				}
120
			}
@@ 228-236 (lines=9) @@
225
226
							$data[$source]['unknown']++;
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
						}
237
					}
238
				}
239
			}