10000 fix: linting · SRWieZ/fork-nativephp.com@260bcf9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 260bcf9

Browse files
committed
fix: linting
1 parent 519a5c3 commit 260bcf9

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

app/Http/Controllers/ShowDocumentationController.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,15 @@ protected function getPageProperties($version, $page = null): array
9898
if ($child['path'] === '/'.$pageProperties['pagePath']) {
9999
if (isset($section['children'][$key + 1])) {
100100
$pageProperties['nextPage'] = $section['children'][$key + 1];
101-
}
102-
elseif(isset($navigation[$i + 1])) {
101+
} elseif (isset($navigation[$i + 1])) {
103102
$navigation[$i + 1]['children'][0]['title'] = $navigation[$i + 1]['title'].': '.$navigation[$i + 1]['children'][0]['title'];
104103
$pageProperties['nextPage'] = $navigation[$i + 1]['children'][0];
105104
}
106105

107106
if (isset($section['children'][$key - 1])) {
108107
$pageProperties['previousPage'] = $section['children'][$key - 1];
109-
}
110-
elseif(isset($navigation[$i - 1])) {
111-
$lastChild = count($navigation[$i - 1]['children'])-1;
108+
} elseif (isset($navigation[$i - 1])) {
109+
$lastChild = count($navigation[$i - 1]['children']) - 1;
112110
$navigation[$i - 1]['children'][$lastChild]['title'] = $navigation[$i - 1]['title'].': '.$navigation[$i - 1]['children'][$lastChild]['title'];
113111
$pageProperties['previousPage'] = $navigation[$i - 1]['children'][$lastChild];
114112
}

config/seotools.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
* The default values to be used by the twitter cards generator.
5151
*/
5252
'defaults' => [
53-
//'card' => 'summary',
54-
//'site' => '@laravelphp',
53+
// 'card' => 'summary',
54+
// 'site' => '@laravelphp',
5555
],
5656
],
5757
'json-ld' => [

0 commit comments

Comments
 (0)
0