for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Pluswerk\TypoScriptAutoFixer\Fixer\Indentation;
class LineFixer
{
/**
* @param $line
* @param $amountOfIndentChars
* @param $character
*
* @return string
*/
public function fixIndentation($line, $amountOfIndentChars, $character): string
$indent = str_repeat($character, $amountOfIndentChars);
$line = ltrim($line);
return $indent . $line;
}