From f17c29762468ec194476d1399339c3ff59f2e786 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 1 May 2017 19:18:38 +0200 Subject: [PATCH] Use short assignment operator in PHP Use $var .= $foo instead of $var = $var . $foo Change-Id: I5dcdd7278e618c14968e5ac1fb8ea43ac2200deb --- includes/CategoryViewer.php | 2 +- includes/EditPage.php | 4 +- includes/Setup.php | 2 +- includes/db/DatabaseOracle.php | 2 +- .../externalstore/ExternalStoreMwstore.php | 2 +- includes/filerepo/file/ForeignAPIFile.php | 2 +- includes/libs/objectcache/BagOStuff.php | 2 +- includes/media/DjVuImage.php | 4 +- includes/parser/Parser.php | 6 +- includes/parser/ParserOutput.php | 2 +- .../specialpage/AuthManagerSpecialPage.php | 4 +- includes/specialpage/SpecialPage.php | 4 +- languages/classes/LanguageFi.php | 2 +- languages/classes/LanguageKk_cyrl.php | 294 +++++++++--------- 14 files changed, 166 insertions(+), 166 deletions(-) diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 689624f62a..f78597bb12 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -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 . diff --git a/includes/EditPage.php b/includes/EditPage.php index 300c5f3147..2048b87dd5 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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; } } diff --git a/includes/Setup.php b/includes/Setup.php index 3f6a5b49e0..bcdc1d57a2 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -492,7 +492,7 @@ $wgCanonicalNamespaceNames = [ /// @todo UGLY UGLY if ( is_array( $wgExtraNamespaces ) ) { - $wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames + $wgExtraNamespaces; + $wgCanonicalNamespaceNames += $wgExtraNamespaces; } // Hard-deprecate setting $wgDummyLanguageCodes in LocalSettings.php diff --git a/includes/db/DatabaseOracle.php b/includes/db/DatabaseOracle.php index aae44927e6..9cf924ff24 100644 --- a/includes/db/DatabaseOracle.php +++ b/includes/db/DatabaseOracle.php @@ -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( diff --git a/includes/externalstore/ExternalStoreMwstore.php b/includes/externalstore/ExternalStoreMwstore.php index 1bc2edcd28..30c742d10a 100644 --- a/includes/externalstore/ExternalStoreMwstore.php +++ b/includes/externalstore/ExternalStoreMwstore.php @@ -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; diff --git a/includes/filerepo/file/ForeignAPIFile.php b/includes/filerepo/file/ForeignAPIFile.php index aff0e3f1bd..8e0242d3cf 100644 --- a/includes/filerepo/file/ForeignAPIFile.php +++ b/includes/filerepo/file/ForeignAPIFile.php @@ -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; diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index a7ef3d5781..44c79f327e 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -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, ' ', '_' ); } diff --git a/includes/media/DjVuImage.php b/includes/media/DjVuImage.php index adcac2523a..04ddda2e10 100644 --- a/includes/media/DjVuImage.php +++ b/includes/media/DjVuImage.php @@ -285,8 +285,8 @@ class DjVuImage { EOR; $txt = preg_replace_callback( $reg, [ $this, 'pageTextCallback' ], $txt ); $txt = "\n\n\n" . $txt . "\n\n"; - $xml = preg_replace( "//", "", $xml, 1 ); - $xml = $xml . $txt . ''; + $xml = preg_replace( "//", "", $xml, 1 ) . + $txt . ''; } } diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index deeb8586c3..04d3c85265 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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'] ); diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index e0e5d75e92..f2aaeedc7c 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -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. diff --git a/includes/specialpage/AuthManagerSpecialPage.php b/includes/specialpage/AuthManagerSpecialPage.php index c56cc65db4..0e0a26af3a 100644 --- a/includes/specialpage/AuthManagerSpecialPage.php +++ b/includes/specialpage/AuthManagerSpecialPage.php @@ -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 ); diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index e18eacc093..a9bbb8a0d4 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -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 diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index b2bae18464..f8c3368292 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -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ä' ); diff --git a/languages/classes/LanguageKk_cyrl.php b/languages/classes/LanguageKk_cyrl.php index b9da24ae33..d695be1049 100644 --- a/languages/classes/LanguageKk_cyrl.php +++ b/languages/classes/LanguageKk_cyrl.php @@ -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 -- 2.20.1