jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/360982 )
Change subject: Fix indent of if statement ...................................................................... Fix indent of if statement Change-Id: I3d29736b169136c88d97d643e479bddb6d3719a4 --- M lib/LifeWeb/Character.php M lib/LifeWeb/Collection.php M lib/LifeWeb/Component.php M lib/LifeWeb/Degree.php M lib/LifeWeb/Difficulty.php M lib/LifeWeb/Equipment.php M lib/LifeWeb/LWItem.php M lib/LifeWeb/Question.php M lib/LifeWeb/Topic.php 9 files changed, 29 insertions(+), 20 deletions(-) Approvals: Hashar: Looks good to me, approved jenkins-bot: Verified diff --git a/lib/LifeWeb/Character.php b/lib/LifeWeb/Character.php index 7179f31..d490f5f 100644 --- a/lib/LifeWeb/Character.php +++ b/lib/LifeWeb/Character.php @@ -30,8 +30,9 @@ $questions = $this->getItems( EntityIDs::pid( 'pParentQuestion' ), EntityIDs::pid( 'qQuestion' ) ); $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/Collection.php b/lib/LifeWeb/Collection.php index 110255c..a2cb8be 100644 --- a/lib/LifeWeb/Collection.php +++ b/lib/LifeWeb/Collection.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/Component.php b/lib/LifeWeb/Component.php index 0329b6c..63202e5 100644 --- a/lib/LifeWeb/Component.php +++ b/lib/LifeWeb/Component.php @@ -25,8 +25,9 @@ $name = $this->getEntity()->getLabel( $wgLang->getCode() ); $topics = $this->getItems( EntityIDs::pid( 'pTopic' ), EntityIDs::pid( 'qTopic' ) ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/Degree.php b/lib/LifeWeb/Degree.php index 03e8cfa..486ebf1 100644 --- a/lib/LifeWeb/Degree.php +++ b/lib/LifeWeb/Degree.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/Difficulty.php b/lib/LifeWeb/Difficulty.php index 170a1e8..142bcbf 100644 --- a/lib/LifeWeb/Difficulty.php +++ b/lib/LifeWeb/Difficulty.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/Equipment.php b/lib/LifeWeb/Equipment.php index 7c45227..8fc3f79 100644 --- a/lib/LifeWeb/Equipment.php +++ b/lib/LifeWeb/Equipment.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), diff --git a/lib/LifeWeb/LWItem.php b/lib/LifeWeb/LWItem.php index 3cbf33f..435fdbc 100644 --- a/lib/LifeWeb/LWItem.php +++ b/lib/LifeWeb/LWItem.php @@ -83,8 +83,9 @@ $updatedContent = \Wikibase\EntityContentFactory::singleton()->getFromId( $this->itemId ); // Check if the item has been deleted - if ( !$updatedContent ) { throw new ItemDeletedException(); - } + if ( !$updatedContent ) { + throw new ItemDeletedException(); + } $newRev = $updatedContent->getTitle()->getLatestRevID(); if ( $fromRev != $newRev ) { @@ -226,7 +227,7 @@ $items[] = new $this( 'prefixedId', [ 'prefixedId' => $row->page_title ] ); } catch ( \Exception $e ) { - } + } $maxpage = $row->page_id; } @@ -251,7 +252,7 @@ try { $items[] = new $this( 'prefixedId', [ 'prefixedId' => $row->page_title ] ); } catch ( \Exception $e ) { - } + } $maxpage = $row->page_id; } diff --git a/lib/LifeWeb/Question.php b/lib/LifeWeb/Question.php index 2a3aab5..d6a7c1a 100644 --- a/lib/LifeWeb/Question.php +++ b/lib/LifeWeb/Question.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $difficulties = $this->getItems( EntityIDs::pid( 'pDifficulty' ), EntityIDs::pid( 'qDifficulty' ) ); $parentCharacters = $this->getItems( EntityIDs::pid( 'pParentCharacter' ), EntityIDs::pid( 'qCharacter' ) ); diff --git a/lib/LifeWeb/Topic.php b/lib/LifeWeb/Topic.php index 53da55d..34cc5ee 100644 --- a/lib/LifeWeb/Topic.php +++ b/lib/LifeWeb/Topic.php @@ -23,8 +23,9 @@ if ( $this->updateContent( $oldRev ) || $clearCache ) { $name = $this->getEntity()->getLabel( $wgLang->getCode() ); - if ( !$name ) { $name = $this->getPrefixedId(); - } + if ( !$name ) { + $name = $this->getPrefixedId(); + } $this->data = [ 'id' => $this->getPrefixedId(), -- To view, visit https://gerrit.wikimedia.org/r/360982 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3d29736b169136c88d97d643e479bddb6d3719a4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/LifeWeb Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: Umherirrender <umherirrender_de...@web.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits