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
			}
@@ 221-229 (lines=9) @@
218
219
						$data[$source]['unknown']++;
220
					}
221
					else
222
					{
223
						if (!isset($data[$source][$item->$source]))
224
						{
225
							$data[$source][$item->$source] = 0;
226
						}
227
228
						$data[$source][$item->$source]++;
229
					}
230
				}
231
			}
232
		}