@@ -23,13 +23,13 @@ |
||
| 23 | 23 | GROUP BY "ClassNameLastEdited" |
| 24 | 24 | ORDER BY "ClassNameLastEdited" ASC |
| 25 | 25 | '); |
| 26 | - $array = []; |
|
| 26 | + $array = [ ]; |
|
| 27 | 27 | foreach ($query as $row) { |
| 28 | - $array[$row['ClassNameLastEdited']] = |
|
| 29 | - Injector::inst()->get($row['ClassNameLastEdited'])->i18n_singular_name() . |
|
| 30 | - ' (×' . $row['Count'] . ')'; |
|
| 31 | - if ($myClass && $myClass === $row['ClassNameLastEdited']) { |
|
| 32 | - return $row['Count']; |
|
| 28 | + $array[ $row[ 'ClassNameLastEdited' ] ] = |
|
| 29 | + Injector::inst()->get($row[ 'ClassNameLastEdited' ])->i18n_singular_name() . |
|
| 30 | + ' (×' . $row[ 'Count' ] . ')'; |
|
| 31 | + if ($myClass && $myClass === $row[ 'ClassNameLastEdited' ]) { |
|
| 32 | + return $row[ 'Count' ]; |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | return '<br />' . implode('<br> ', $array); |