Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Mar 2, 2021
1 parent b98be07 commit 459ce1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Pandoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,30 @@ public function columns($value)

return $this;
}

public function tocDepth($value)
{
$this->option('toc-depth', $value);

return $this;
}

public function standalone()
{
$this->option('standalone');

return $this;
}

public function execute(array $parameters = [])
{
$parameters = array_merge([
$this->config['command'],
], $parameters);

if (!empty($this->options)) {
foreach($this->options as $name => $value) {
if($value !== false) {
foreach ($this->options as $name => $value) {
if ($value !== false) {
array_push($parameters, "--{$name}", $value);
} else {
array_push($parameters, "--{$name}");
Expand All @@ -152,7 +152,7 @@ public function execute(array $parameters = [])
if ($this->cwd) {
$process->setWorkingDirectory($cwd);
}

if ($this->input) {
$process->setInput($this->input);
}
Expand Down

0 comments on commit 459ce1b

Please sign in to comment.