Use short assignment operator in PHP

Use
  $var .= $foo
instead of
  $var = $var . $foo

Change-Id: I5dcdd7278e618c14968e5ac1fb8ea43ac2200deb
This commit is contained in:
Fomafix 2017-05-01 19:18:38 +02:00
parent 8b26fc816f
commit f17c297624
14 changed files with 166 additions and 166 deletions

View file

@ -125,7 +125,7 @@ class CategoryViewer extends ContextSource {
// @todo FIXME: Cannot be completely suppressed because it
// is unknown if 'until' or 'from' makes this
// give 0 results.
$r = $r . $this->getCategoryTop();
$r = $this->getCategoryTop();
} else {
$r = $this->getCategoryTop() .
$r .

View file

@ -1670,7 +1670,7 @@ class EditPage {
if ( $query === '' ) {
$query = $extraQueryRedirect;
} else {
$query = $query . '&' . $extraQueryRedirect;
$query .= '&' . $extraQueryRedirect;
}
}
$anchor = $resultDetails['sectionanchor'] ?? '';
@ -1698,7 +1698,7 @@ class EditPage {
if ( $extraQuery === '' ) {
$extraQuery = $extraQueryRedirect;
} else {
$extraQuery = $extraQuery . '&' . $extraQueryRedirect;
$extraQuery .= '&' . $extraQueryRedirect;
}
}

View file

@ -492,7 +492,7 @@ $wgCanonicalNamespaceNames = [
/// @todo UGLY UGLY
if ( is_array( $wgExtraNamespaces ) ) {
$wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames + $wgExtraNamespaces;
$wgCanonicalNamespaceNames += $wgExtraNamespaces;
}
// Hard-deprecate setting $wgDummyLanguageCodes in LocalSettings.php

View file

@ -565,7 +565,7 @@ class DatabaseOracle extends Database {
// count-alias subselect fields to avoid abigious definition errors
$i = 0;
foreach ( $varMap as &$val ) {
$val = $val . ' field' . ( $i++ );
$val .= ' field' . ( $i++ );
}
$selectSql = $this->selectSQLText(

View file

@ -67,7 +67,7 @@ class ExternalStoreMwstore extends ExternalStoreMedium {
$blobs = [];
foreach ( $pathsByBackend as $backendName => $paths ) {
$be = FileBackendGroup::singleton()->get( $backendName );
$blobs = $blobs + $be->getFileContentsMulti( [ 'srcs' => $paths ] );
$blobs += $be->getFileContentsMulti( [ 'srcs' => $paths ] );
}
return $blobs;

View file

@ -321,7 +321,7 @@ class ForeignAPIFile extends File {
if ( $this->repo->canCacheThumbs() ) {
$path = $this->repo->getZonePath( 'thumb' ) . '/' . $this->getHashPath();
if ( $suffix ) {
$path = $path . $suffix . '/';
$path .= $suffix . '/';
}
return $path;

View file

@ -811,7 +811,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface {
$key = $keyspace;
foreach ( $args as $arg ) {
$arg = str_replace( ':', '%3A', $arg );
$key = $key . ':' . $arg;
$key .= ':' . $arg;
}
return strtr( $key, ' ', '_' );
}

View file

@ -285,8 +285,8 @@ class DjVuImage {
EOR;
$txt = preg_replace_callback( $reg, [ $this, 'pageTextCallback' ], $txt );
$txt = "<DjVuTxt>\n<HEAD></HEAD>\n<BODY>\n" . $txt . "</BODY>\n</DjVuTxt>\n";
$xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml, 1 );
$xml = $xml . $txt . '</mw-djvu>';
$xml = preg_replace( "/<DjVuXML>/", "<mw-djvu><DjVuXML>", $xml, 1 ) .
$txt . '</mw-djvu>';
}
}

View file

@ -3979,7 +3979,7 @@ class Parser {
$name = strtolower( $name );
$attributes = Sanitizer::decodeTagAttributes( $attrText );
if ( isset( $params['attributes'] ) ) {
$attributes = $attributes + $params['attributes'];
$attributes += $params['attributes'];
}
if ( isset( $this->mTagHooks[$name] ) ) {
@ -4522,7 +4522,7 @@ class Parser {
if ( $enoughToc && $isMain && !$this->mForceTocPosition ) {
// append the TOC at the beginning
// Top anchor now in skin
$sections[0] = $sections[0] . $toc . "\n";
$sections[0] .= $toc . "\n";
}
$full .= implode( '', $sections );
@ -5122,7 +5122,7 @@ class Parser {
'img_link' => 'gallery-internal-link',
];
if ( $handler ) {
$paramMap = $paramMap + $handler->getParamMap();
$paramMap += $handler->getParamMap();
// We don't want people to specify per-image widths.
// Additionally the width parameter would need special casing anyhow.
unset( $paramMap['img_width'] );

View file

@ -1345,7 +1345,7 @@ class ParserOutput extends CacheTime {
// TODO: we'll have to be smarter about this!
$this->mSections = array_merge( $this->mSections, $source->getSections() );
$this->mTOCHTML = $this->mTOCHTML . $source->mTOCHTML;
$this->mTOCHTML .= $source->mTOCHTML;
// XXX: we don't want to concatenate title text, so first write wins.
// We should use the first *modified* title text, but we don't have the original to check.

View file

@ -157,7 +157,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage {
if ( $request->wasPosted() ) {
// unique ID in case the same special page is open in multiple browser tabs
$uniqueId = MWCryptRand::generateHex( 6 );
$key = $key . ':' . $uniqueId;
$key .= ':' . $uniqueId;
$queryParams = [ 'authUniqueId' => $uniqueId ] + $queryParams;
$authData = array_diff_key( $request->getValues(),
@ -181,7 +181,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage {
$uniqueId = $request->getVal( 'authUniqueId' );
if ( $uniqueId ) {
$key = $key . ':' . $uniqueId;
$key .= ':' . $uniqueId;
$authData = $authManager->getAuthenticationSessionData( $key );
if ( $authData ) {
$authManager->removeAuthenticationSessionData( $key );

View file

@ -406,7 +406,7 @@ class SpecialPage implements MessageLocalizer {
if ( $securityStatus === AuthManager::SEC_OK ) {
$uniqueId = $request->getVal( 'postUniqueId' );
if ( $uniqueId ) {
$key = $key . ':' . $uniqueId;
$key .= ':' . $uniqueId;
$session = $request->getSession();
$data = $session->getSecret( $key );
if ( $data ) {
@ -424,7 +424,7 @@ class SpecialPage implements MessageLocalizer {
if ( $data ) {
// unique ID in case the same special page is open in multiple browser tabs
$uniqueId = MWCryptRand::generateHex( 6 );
$key = $key . ':' . $uniqueId;
$key .= ':' . $uniqueId;
$queryParams['postUniqueId'] = $uniqueId;
$session = $request->getSession();
$session->persist(); // Just in case

View file

@ -73,7 +73,7 @@ class LanguageFi extends Language {
break;
case 'illative':
# Double the last letter and add 'n'
$word = $word . mb_substr( $word, -1 ) . 'n';
$word .= mb_substr( $word, -1 ) . 'n';
break;
case 'inessive':
$word .= ( $aou ? 'ssa' : 'ssä' );

View file

@ -73,21 +73,21 @@ class LanguageKk_cyrl extends Language {
case "genitive": # ilik
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "тің";
$word .= "тің";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "тың";
$word .= "тың";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "нің";
$word .= "нің";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ның";
$word .= "ның";
}
} elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "дің";
$word .= "дің";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "дың";
$word .= "дың";
}
}
break;
@ -95,15 +95,15 @@ class LanguageKk_cyrl extends Language {
case "dative": # barıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ке";
$word .= "ке";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "қа";
$word .= "қа";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ге";
$word .= "ге";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ға";
$word .= "ға";
}
}
break;
@ -111,21 +111,21 @@ class LanguageKk_cyrl extends Language {
case "possessive dative": # täweldık + barıs
if ( in_array( $wordEnding, $firstPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "е";
$word .= "е";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "а";
$word .= "а";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ге";
$word .= "ге";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ға";
$word .= "ға";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "не";
$word .= "не";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "на";
$word .= "на";
}
}
break;
@ -133,21 +133,21 @@ class LanguageKk_cyrl extends Language {
case "accusative": # tabıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ті";
$word .= "ті";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ты";
$word .= "ты";
}
} elseif ( in_array( $wordEnding, $allVowels ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ні";
$word .= "ні";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ны";
$word .= "ны";
}
} elseif ( in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ді";
$word .= "ді";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ды";
$word .= "ды";
}
}
break;
@ -155,27 +155,27 @@ class LanguageKk_cyrl extends Language {
case "possessive accusative": # täweldık + tabıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ді";
$word .= "ді";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ды";
$word .= "ды";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
$word = $word . "н";
$word .= "н";
}
break;
case "dc4":
case "locative": # jatıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "те";
$word .= "те";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "та";
$word .= "та";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "де";
$word .= "де";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "да";
$word .= "да";
}
}
break;
@ -183,15 +183,15 @@ class LanguageKk_cyrl extends Language {
case "possessive locative": # täweldık + jatıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "де";
$word .= "де";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "да";
$word .= "да";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "нде";
$word .= "нде";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "нда";
$word .= "нда";
}
}
break;
@ -199,24 +199,24 @@ class LanguageKk_cyrl extends Language {
case "ablative": # şığıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "тен";
$word .= "тен";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "тан";
$word .= "тан";
}
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Sonants )
|| in_array( $wordEnding, $Sibilants )
) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ден";
$word .= "ден";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "дан";
$word .= "дан";
}
} elseif ( in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "нен";
$word .= "нен";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "нан";
$word .= "нан";
}
}
break;
@ -224,42 +224,42 @@ class LanguageKk_cyrl extends Language {
case "possessive ablative": # täweldık + şığıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "нен";
$word .= "нен";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "нан";
$word .= "нан";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ден";
$word .= "ден";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "дан";
$word .= "дан";
}
}
break;
case "dc6":
case "comitative": # kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "пен";
$word .= "пен";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "мен";
$word .= "мен";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "бен";
$word .= "бен";
}
break;
case "dc61":
case "possessive comitative": # täweldık + kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "пенен";
$word .= "пенен";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "менен";
$word .= "менен";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "бенен";
$word .= "бенен";
}
break;
default: # dc0 #nominative #ataw
@ -307,21 +307,21 @@ class LanguageKk_cyrl extends Language {
case "genitive": # ilik
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "tiñ";
$word .= "tiñ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "tıñ";
$word .= "tıñ";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "niñ";
$word .= "niñ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nıñ";
$word .= "nıñ";
}
} elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "diñ";
$word .= "diñ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "dıñ";
$word .= "dıñ";
}
}
break;
@ -329,15 +329,15 @@ class LanguageKk_cyrl extends Language {
case "dative": # barıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ke";
$word .= "ke";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "qa";
$word .= "qa";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ge";
$word .= "ge";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ğa";
$word .= "ğa";
}
}
break;
@ -345,21 +345,21 @@ class LanguageKk_cyrl extends Language {
case "possessive dative": # täweldık + barıs
if ( in_array( $wordEnding, $firstPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "e";
$word .= "e";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "a";
$word .= "a";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ge";
$word .= "ge";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ğa";
$word .= "ğa";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ne";
$word .= "ne";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "na";
$word .= "na";
}
}
break;
@ -367,21 +367,21 @@ class LanguageKk_cyrl extends Language {
case "accusative": # tabıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ti";
$word .= "ti";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "tı";
$word .= "tı";
}
} elseif ( in_array( $wordEnding, $allVowels ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ni";
$word .= "ni";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nı";
$word .= "nı";
}
} elseif ( in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "di";
$word .= "di";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "dı";
$word .= "dı";
}
}
break;
@ -389,27 +389,27 @@ class LanguageKk_cyrl extends Language {
case "possessive accusative": # täweldık + tabıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "di";
$word .= "di";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "dı";
$word .= "dı";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
$word = $word . "n";
$word .= "n";
}
break;
case "dc4":
case "locative": # jatıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "te";
$word .= "te";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ta";
$word .= "ta";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "de";
$word .= "de";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "da";
$word .= "da";
}
}
break;
@ -417,15 +417,15 @@ class LanguageKk_cyrl extends Language {
case "possessive locative": # täweldık + jatıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "de";
$word .= "de";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "da";
$word .= "da";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "nde";
$word .= "nde";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nda";
$word .= "nda";
}
}
break;
@ -433,24 +433,24 @@ class LanguageKk_cyrl extends Language {
case "ablative": # şığıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ten";
$word .= "ten";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "tan";
$word .= "tan";
}
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Sonants )
|| in_array( $wordEnding, $Sibilants )
) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "den";
$word .= "den";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "dan";
$word .= "dan";
}
} elseif ( in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "nen";
$word .= "nen";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nan";
$word .= "nan";
}
}
break;
@ -458,42 +458,42 @@ class LanguageKk_cyrl extends Language {
case "possessive ablative": # täweldık + şığıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "nen";
$word .= "nen";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "nan";
$word .= "nan";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "den";
$word .= "den";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "dan";
$word .= "dan";
}
}
break;
case "dc6":
case "comitative": # kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "pen";
$word .= "pen";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "men";
$word .= "men";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "ben";
$word .= "ben";
}
break;
case "dc61":
case "possessive comitative": # täweldık + kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "penen";
$word .= "penen";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "menen";
$word .= "menen";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "benen";
$word .= "benen";
}
break;
default: # dc0 #nominative #ataw
@ -541,21 +541,21 @@ class LanguageKk_cyrl extends Language {
case "genitive": # ilik
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "تٸڭ";
$word .= "تٸڭ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "تىڭ";
$word .= "تىڭ";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "نٸڭ";
$word .= "نٸڭ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "نىڭ";
$word .= "نىڭ";
}
} elseif ( in_array( $wordEnding, $Sonants ) || in_array( $wordEnding, $Sibilants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دٸڭ";
$word .= "دٸڭ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دىڭ";
$word .= "دىڭ";
}
}
break;
@ -563,15 +563,15 @@ class LanguageKk_cyrl extends Language {
case "dative": # barıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "كە";
$word .= "كە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "قا";
$word .= "قا";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "گە";
$word .= "گە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "عا";
$word .= "عا";
}
}
break;
@ -579,21 +579,21 @@ class LanguageKk_cyrl extends Language {
case "possessive dative": # täweldık + barıs
if ( in_array( $wordEnding, $firstPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ە";
$word .= "ە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ا";
$word .= "ا";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "گە";
$word .= "گە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "عا";
$word .= "عا";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "نە";
$word .= "نە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "نا";
$word .= "نا";
}
}
break;
@ -601,21 +601,21 @@ class LanguageKk_cyrl extends Language {
case "accusative": # tabıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "تٸ";
$word .= "تٸ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "تى";
$word .= "تى";
}
} elseif ( in_array( $wordEnding, $allVowels ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "نٸ";
$word .= "نٸ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "نى";
$word .= "نى";
}
} elseif ( in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دٸ";
$word .= "دٸ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دى";
$word .= "دى";
}
}
break;
@ -623,27 +623,27 @@ class LanguageKk_cyrl extends Language {
case "possessive accusative": # täweldık + tabıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دٸ";
$word .= "دٸ";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دى";
$word .= "دى";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
$word = $word . "ن";
$word .= "ن";
}
break;
case "dc4":
case "locative": # jatıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "تە";
$word .= "تە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "تا";
$word .= "تا";
}
} elseif ( in_array( $wordEnding, $allVowels ) || in_array( $wordEnding, $Sonorants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دە";
$word .= "دە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دا";
$word .= "دا";
}
}
break;
@ -651,15 +651,15 @@ class LanguageKk_cyrl extends Language {
case "possessive locative": # täweldık + jatıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دە";
$word .= "دە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دا";
$word .= "دا";
}
} elseif ( in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "ندە";
$word .= "ندە";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "ندا";
$word .= "ندا";
}
}
break;
@ -667,24 +667,24 @@ class LanguageKk_cyrl extends Language {
case "ablative": # şığıs
if ( in_array( $wordEnding, $Consonants ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "تەن";
$word .= "تەن";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "تان";
$word .= "تان";
}
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Sonants )
|| in_array( $wordEnding, $Sibilants )
) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دەن";
$word .= "دەن";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دان";
$word .= "دان";
}
} elseif ( in_array( $wordEnding, $Nasals ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "نەن";
$word .= "نەن";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "نان";
$word .= "نان";
}
}
break;
@ -692,42 +692,42 @@ class LanguageKk_cyrl extends Language {
case "possessive ablative": # täweldık + şığıs
if ( in_array( $wordEnding, $firstPerson ) || in_array( $wordEnding, $thirdPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "نەن";
$word .= "نەن";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "نان";
$word .= "نان";
}
} elseif ( in_array( $wordEnding, $secondPerson ) ) {
if ( in_array( $wordLastVowel, $frontVowels ) ) {
$word = $word . "دەن";
$word .= "دەن";
} elseif ( in_array( $wordLastVowel, $backVowels ) ) {
$word = $word . "دان";
$word .= "دان";
}
}
break;
case "dc6":
case "comitative": # kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "پەن";
$word .= "پەن";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "مەن";
$word .= "مەن";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "بەن";
$word .= "بەن";
}
break;
case "dc61":
case "possessive comitative": # täweldık + kömektes
if ( in_array( $wordEnding, $Consonants ) ) {
$word = $word . "پەنەن";
$word .= "پەنەن";
} elseif ( in_array( $wordEnding, $allVowels )
|| in_array( $wordEnding, $Nasals )
|| in_array( $wordEnding, $Sonants )
) {
$word = $word . "مەنەن";
$word .= "مەنەن";
} elseif ( in_array( $wordEnding, $Sibilants ) ) {
$word = $word . "بەنەن";
$word .= "بەنەن";
}
break;
default: # dc0 #nominative #ataw