Code Duplication    Length = 9-9 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 110-118 (lines=9) @@
107
108
							${$source}['unknown']++;
109
						}
110
						else
111
						{
112
							if (!isset(${$source}[$item->$source]))
113
							{
114
								${$source}[$item->$source] = 0;
115
							}
116
117
							${$source}[$item->$source]++;
118
						}
119
					}
120
				}
121
@@ 227-235 (lines=9) @@
224
225
						$data[$source]['unknown']++;
226
					}
227
					else
228
					{
229
						if (!isset($data[$source][$item->$source]))
230
						{
231
							$data[$source][$item->$source] = 0;
232
						}
233
234
						$data[$source][$item->$source]++;
235
					}
236
				}
237
			}
238
		}