Skip to content

Commit d175b3f

Browse files
committed
Test
1 parent 0e3f852 commit d175b3f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/Samsara/Roster/Roster.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
239239
}
240240

241241
if (isset($opts['mkdocs']) && !ConfigBag::getRosterConfig()->has('mkdocs')) {
242-
echo "Get's here".PHP_EOL;
243242
ConfigBag::getRosterConfig()->set('mkdocs', []);
244243
}
245244

246-
echo var_export($opts, true).PHP_EOL;
247-
echo var_export(ConfigBag::getRosterConfig(), true).PHP_EOL;
248-
249245
$this->verbose = $opts['with-debug'];
250246

251247
if (ConfigBag::getRosterConfig()->has('mkdocs')) {
@@ -587,9 +583,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
587583
$extraCss[] = 'css/'.$cssFileName.'.css';
588584
}
589585

590-
$configBase->set('siteName', ConfigBag::getRosterConfig()->get('mkdocs.site-name'));
591-
$configBase->set('siteUrl', ConfigBag::getRosterConfig()->get('mkdocs.site-url'));
592-
$configBase->set('repoUrl', ConfigBag::getRosterConfig()->get('mkdocs.site-repo'));
586+
$configBase->set('site_name', ConfigBag::getRosterConfig()->get('mkdocs.site-name'));
587+
$configBase->set('site_url', ConfigBag::getRosterConfig()->get('mkdocs.site-url'));
588+
$configBase->set('repo_url', ConfigBag::getRosterConfig()->get('mkdocs.site-repo'));
593589
$configBase->set('nav', $formattedNav);
594590
$configBase->set('extra_css', $extraCss);
595591

@@ -866,7 +862,6 @@ protected function extractFileData(string $realPath): void
866862
}
867863
} elseif (preg_match('/^interface ([a-zA-Z0-9]*)/ism', $line, $interfaceName)) {
868864
if (count($interfaceName) < 2) {
869-
echo $line.PHP_EOL;
870865
continue;
871866
}
872867
if (str_contains($interfaceName[1], " ")) {
@@ -877,7 +872,6 @@ protected function extractFileData(string $realPath): void
877872
$this->classes[$ns]['interface'][] = $name;
878873
} elseif (preg_match('/^(?:abstract|final|abstract final|final abstract)?[\s]?class ([a-zA-Z0-9]*)/ism', $line, $className)) {
879874
if (count($className) < 2) {
880-
echo $line.PHP_EOL;
881875
continue;
882876
}
883877
if (str_contains($className[1], " ")) {
@@ -888,7 +882,6 @@ protected function extractFileData(string $realPath): void
888882
$this->classes[$ns]['class'][] = $name;
889883
} elseif (preg_match('/^trait ([a-zA-Z0-9]*)/ism', $line, $traitName)) {
890884
if (count($traitName) < 2) {
891-
echo $line.PHP_EOL;
892885
continue;
893886
}
894887
if (str_contains($traitName[1], " ")) {

0 commit comments

Comments
 (0)