Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanRL committed Jul 8, 2021
1 parent 0e3f852 commit d175b3f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Samsara/Roster/Roster.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

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

echo var_export($opts, true).PHP_EOL;
echo var_export(ConfigBag::getRosterConfig(), true).PHP_EOL;

$this->verbose = $opts['with-debug'];

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

$configBase->set('siteName', ConfigBag::getRosterConfig()->get('mkdocs.site-name'));
$configBase->set('siteUrl', ConfigBag::getRosterConfig()->get('mkdocs.site-url'));
$configBase->set('repoUrl', ConfigBag::getRosterConfig()->get('mkdocs.site-repo'));
$configBase->set('site_name', ConfigBag::getRosterConfig()->get('mkdocs.site-name'));
$configBase->set('site_url', ConfigBag::getRosterConfig()->get('mkdocs.site-url'));
$configBase->set('repo_url', ConfigBag::getRosterConfig()->get('mkdocs.site-repo'));
$configBase->set('nav', $formattedNav);
$configBase->set('extra_css', $extraCss);

Expand Down Expand Up @@ -866,7 +862,6 @@ protected function extractFileData(string $realPath): void
}
} elseif (preg_match('/^interface ([a-zA-Z0-9]*)/ism', $line, $interfaceName)) {
if (count($interfaceName) < 2) {
echo $line.PHP_EOL;
continue;
}
if (str_contains($interfaceName[1], " ")) {
Expand All @@ -877,7 +872,6 @@ protected function extractFileData(string $realPath): void
$this->classes[$ns]['interface'][] = $name;
} elseif (preg_match('/^(?:abstract|final|abstract final|final abstract)?[\s]?class ([a-zA-Z0-9]*)/ism', $line, $className)) {
if (count($className) < 2) {
echo $line.PHP_EOL;
continue;
}
if (str_contains($className[1], " ")) {
Expand All @@ -888,7 +882,6 @@ protected function extractFileData(string $realPath): void
$this->classes[$ns]['class'][] = $name;
} elseif (preg_match('/^trait ([a-zA-Z0-9]*)/ism', $line, $traitName)) {
if (count($traitName) < 2) {
echo $line.PHP_EOL;
continue;
}
if (str_contains($traitName[1], " ")) {
Expand Down

0 comments on commit d175b3f

Please sign in to comment.