Code Duplication    Length = 4-4 lines in 2 locations

src/Views/Stats/StatsJsonView.php 2 locations

@@ 122-125 (lines=4) @@
119
						}
120
						else
121
						{
122
							if (!isset(${$source}[$item[$source]]))
123
							{
124
								${$source}[$item[$source]] = 0;
125
							}
126
127
							${$source}[$item[$source]]++;
128
						}
@@ 241-244 (lines=4) @@
238
						}
239
						else
240
						{
241
							if (!isset($data[$source][$item[$source]]))
242
							{
243
								$data[$source][$item[$source]] = 0;
244
							}
245
246
							$data[$source][$item[$source]]++;
247
						}