Skip to content

Commit

Permalink
build: Remove unneeded newline from one line condition
Browse files Browse the repository at this point in the history
Improve readability

Change-Id: I7d85bea15e2ea7b8751feec7404ddcab7e0fbfd9
  • Loading branch information
umherirrender committed Aug 22, 2023
1 parent ebed904 commit 259e1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions repo/includes/Diff/EntityDiffVisualizerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public function newEntityDiffVisualizer( ?string $type = null, ?IContextSource $
);
$claimDiffView = new ClaimDifferenceVisualizer( $diffSnakView, $langCode );

if ( $type === null || !array_key_exists( $type, $this->entityDiffVisualizerInstantiators )
) {
if ( $type === null || !array_key_exists( $type, $this->entityDiffVisualizerInstantiators ) ) {
return new BasicEntityDiffVisualizer(
$context,
$this->claimDiffer,
Expand Down
3 changes: 1 addition & 2 deletions repo/includes/Specials/SpecialSetLabelDescriptionAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ protected function modifyEntity( EntityDocument $entity ) {
*/
private function assertNoPipeCharacterInAliases( Fingerprint $fingerprint ) {
if ( !empty( $this->aliases ) ) {
if ( $fingerprint->hasAliasGroup( $this->languageCode )
) {
if ( $fingerprint->hasAliasGroup( $this->languageCode ) ) {
$aliasesInLang = $fingerprint->getAliasGroup( $this->languageCode )->getAliases();
foreach ( $aliasesInLang as $alias ) {
if ( strpos( $alias, '|' ) !== false ) {
Expand Down

0 comments on commit 259e1d1

Please sign in to comment.