* Returns an array of localised namespaces indexed by their numbers. If the namespace is not
* available in localised form, it will be included in English.
*
- * @return array
+ * @return string[] List of localized namespace names, indexed by numeric namespace ID.
*/
public function getNamespaces() {
if ( is_null( $this->namespaceNames ) ) {
case 'g':
$usedHour = true;
$h = substr( $ts, 8, 2 );
- $num = $h % 12 ? $h % 12 : 12;
+ $num = $h % 12 ?: 12;
break;
case 'G':
$usedHour = true;
case 'h':
$usedHour = true;
$h = substr( $ts, 8, 2 );
- $num = sprintf( '%02d', $h % 12 ? $h % 12 : 12 );
+ $num = sprintf( '%02d', $h % 12 ?: 12 );
break;
case 'H':
$usedHour = true;
/**
* @param string $talk
- * @return mixed
+ * @return string
*/
function fixVariableInNamespace( $talk ) {
if ( strpos( $talk, '$1' ) === false ) {