Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Oct 16, 2018
1 parent a0a02f9 commit c06df08
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions includes/SanctionsPager.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ function getQueryInfo () {
$query['fields']['voted_from'] = 'stv_id';
$query['join_conds'] = ['sub' => ['LEFT JOIN', 'st_topic = sub.stv_topic']];
} else {
// 제재 절차 μ°Έκ°€ κΆŒν•œμ΄ 없을 λ•ŒλŠ” 만료된 μ œμž¬μ•ˆμ€ 보지 μ•ŠμŠ΅λ‹ˆλ‹€.
// 제재 절차 μ°Έκ°€ κΆŒν•œμ΄ 없을 λ•ŒλŠ” 만료된 μ œμž¬μ•ˆμ€ 보지 μ•ŠμŠ΅λ‹ˆλ‹€.
$query['conds'][] = 'st_expiry > '.wfTimestamp(TS_MW);
}

return $query;
}

Expand All @@ -68,7 +68,7 @@ function formatRow( $row ) {

if ( $this->getUserHasVoteRight() )
$isVoted = $row->voted_from != null;

$author = $sanction->getAuthor();
$isMySanction = $author->equals( $this->getUser() );

Expand Down Expand Up @@ -98,20 +98,20 @@ function formatRow( $row ) {
if ( $isForInsultingName ) {
$originalName = $sanction->getTargetOriginalName();
$length = mb_strlen($originalName, 'utf-8');
$targetNameForDiplay =
$targetNameForDiplay =
mb_substr($originalName, 0, 1, 'utf-8')
.str_pad('', $length-2, '*');

if ( $length > 1 )
$targetNameForDiplay .= iconv_substr($originalName, $length-1, $length, 'utf-8');
} else
} else
$targetNameForDiplay = $targetName;

$topicTitle = $sanction->getTopic();

$userLinkTitle = Title::newFromText(
strtok( $this->getTitle(), '/' )
.'/'.$target->getName()
.'/'.$target->getName()
); // @todo λ‹€λ₯Έ 방법 μ°ΎκΈ°

$rowTitle = linker::link( $userLinkTitle, $targetNameForDiplay, ['class'=>'sanction-target']).' λ‹˜μ— λŒ€ν•œ ';
Expand Down Expand Up @@ -177,7 +177,7 @@ function getEmptyBody () {

if ( $this->targetName == null )
$text = 'ν˜„μž¬ 의결 쀑인 μ œμž¬μ•ˆμ΄ μ—†μŠ΅λ‹ˆλ‹€.';
else
else
$text = 'ν˜„μž¬ 의결 쀑인 '.$this->targetName.'λ‹˜μ— λŒ€ν•œ μ œμž¬μ•ˆμ΄ μ—†μŠ΅λ‹ˆλ‹€.';
return Html::rawelement(
'div',
Expand Down Expand Up @@ -245,7 +245,7 @@ protected function executeButton($sanctionId) {
'sanction-action',
'execute'
)
);
);

return $out;
}
Expand All @@ -255,4 +255,4 @@ protected function getUserHasVoteRight() {
$this->UserHasVoteRight = SanctionsUtils::hasVoteRight( $this->getUser() );
return $this->UserHasVoteRight;
}
}
}

0 comments on commit c06df08

Please sign in to comment.