Code Duplication    Length = 9-9 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 106-114 (lines=9) @@
103
104
							${$source}['unknown']++;
105
						}
106
						else
107
						{
108
							if (!isset(${$source}[$item->$source]))
109
							{
110
								${$source}[$item->$source] = 0;
111
							}
112
113
							${$source}[$item->$source]++;
114
						}
115
					}
116
				}
117
			}
@@ 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
		}