for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Ublaboo\Anabelle\Markdown\Macros;
use Ublaboo\Anabelle\Generator\Exception\DocuGeneratorException;
use Ublaboo\Anabelle\Markdown\DocuScope;
abstract class AbstractMacroVariable
{
protected const MAX_EXECUTE_DEPTH = 3;
/**
* @var DocuScope
*/
protected $docuScope;
public function __construct(DocuScope $docuScope)
$this->docuScope = $docuScope;
}
* @throws DocuGeneratorException
public function runMacro(
string $inputDirectory,
$inputDirectory
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
string $outputDirectory,
$outputDirectory
string & $content // Intentionally &
): void
$this->runVariableMacro($content, 1);
abstract protected function runVariableMacro(
string & $content,
int $depth
): void; // Intentionally &
* @return AbstractMacroVariable[]
protected function getMacrosToRunOnBlockVariables(): array
return [
new MacroInlineVariable($this->docuScope),
new MacroInlineVariableOutput($this->docuScope),
new MacroBlockVariable($this->docuScope),
new MacroBlockVariableOutput($this->docuScope),
];
protected function getMacrosToRunOnInlineVariables(): array
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.