Skip to content

Commit 4952517

Browse files
committed
fix phpcs
1 parent b872683 commit 4952517

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

LibertyTemplate.php

+10-5
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ protected function parseNavbar() {
924924
foreach ( $split as $key => $value ) {
925925
$valueArr = explode( '=', trim( $value ) );
926926
if ( isset( $valueArr[1] ) ) {
927-
$newValue = implode( '=', array_slice($valueArr, 1));
927+
$newValue = implode( '=', array_slice( $valueArr, 1 ) );
928928
$data[$valueArr[0]] = $newValue;
929929
} else {
930930
$data[$types[$key]] = trim( $value );
@@ -947,7 +947,9 @@ protected function parseNavbar() {
947947
if ( isset( $data['display'] ) ) {
948948
$textObj = $skin->msg( $data['display'] );
949949
if ( $textObj->isDisabled() ) {
950-
if( array_key_exists( 'link', $data ) ) $href = $data['link'];
950+
if ( array_key_exists( 'link', $data ) ) {
951+
$href = $data['link'];
952+
}
951953
} else {
952954
$text = $textObj->text();
953955
}
@@ -969,7 +971,9 @@ protected function parseNavbar() {
969971
$title = $titleObj->text();
970972
}
971973
} else {
972-
if( isset( $text ) ) $title = $text;
974+
if ( isset( $text ) ) {
975+
$title = $text;
976+
}
973977
}
974978

975979
// Link href
@@ -1001,7 +1005,7 @@ protected function parseNavbar() {
10011005
} else {
10021006
$classes = [];
10031007
}
1004-
1008+
// @codingStandardsIgnoreStart
10051009
$item = [
10061010
'access' => $access,
10071011
'classes' => $classes,
@@ -1012,6 +1016,7 @@ protected function parseNavbar() {
10121016
'group' => $group,
10131017
'right' => $right
10141018
];
1019+
// @codingStandardsIgnoreEnd
10151020
$level2Children = &$item['children'];
10161021
$headings[] = $item;
10171022
continue;
@@ -1248,7 +1253,7 @@ protected function buildAd( $position ) {
12481253
* @param Content|null $content
12491254
* @return string|null Textual form of the content, if available.
12501255
*/
1251-
private function getContentText( Content $content = null ) {
1256+
private function getContentText( ?Content $content = null ) {
12521257
if ( $content === null ) {
12531258
return '';
12541259
}

0 commit comments

Comments
 (0)