| @@ 1365-1371 (lines=7) @@ | ||
| 1362 | $media = []; |
|
| 1363 | foreach ($this->_media_types as $type) { |
|
| 1364 | $count = $this->totalMediaType($type); |
|
| 1365 | if ($count > 0) { |
|
| 1366 | $media[$type] = $count; |
|
| 1367 | if ($count > $max) { |
|
| 1368 | $max = $count; |
|
| 1369 | } |
|
| 1370 | $c += $count; |
|
| 1371 | } |
|
| 1372 | } |
|
| 1373 | $count = $this->totalMediaType('unknown'); |
|
| 1374 | if ($count > 0) { |
|
| @@ 1374-1379 (lines=6) @@ | ||
| 1371 | } |
|
| 1372 | } |
|
| 1373 | $count = $this->totalMediaType('unknown'); |
|
| 1374 | if ($count > 0) { |
|
| 1375 | $media['unknown'] = $tot - $c; |
|
| 1376 | if ($tot - $c > $max) { |
|
| 1377 | $max = $count; |
|
| 1378 | } |
|
| 1379 | } |
|
| 1380 | if (($max / $tot) > 0.6 && count($media) > 10) { |
|
| 1381 | arsort($media); |
|
| 1382 | $media = array_slice($media, 0, 10); |
|