Sets the indentation level

@param    int
@return   HTML_Common2
344150
public function setIndentLevel($level)
    {
        $level = intval($level);
        if (0 <= $level) {
            $this->_indentLevel = $level;
        }
        return $this;
    }
605798
protected function setLevel( int$level ):self
	{
		$level-= $this->level;

		if( $level<=0 ){
			$this->closeNodes(-$level);
		}elseif( $level==1 ){
			$this->level+= 1;
		}else{
			$this->throw('Indent error.');
		}

		return $this;
	}
97918
public function deIndent()
    {
        $ltrim = $this->getIndent();
        if( $ltrim > 0 ) {
            foreach( $this->lines as &$line ) {
                $line = substr( $line, $ltrim );
            }
        }
        return $this;
    }
740204
public void setIndent(final short indent) {

        if(cell.getCellStyle().getIndention() == indent) {
            // 既にインデントが同じ値
            return;
        }

        cloneStyle();
        cell.getCellStyle().setIndention(indent);

    }
937364
public function increaseSpecialIndent()
    {
        if ($this->increaseSpecialIndent) {
            ++$this->indentLvl;
            $this->increaseSpecialIndent = false;
            \array_unshift($this->indentTypes, 'special');
        }

        return $this;
    }
1057688
def indented(text, level, indent=2):
    """"""
    return "\n".join("%s%s" % (level * indent * " ", s) for s in text.splitlines())
746444
private function _checkIndentationLevel($token) {
		$whitespaceString = $token->text;

		// Number of spaces used
		$indentationNumber = $this->_config->getTestProperty('indentation', 'number');
		if (empty($indentationNumber)) {
			$indentationNumber = 4;
		}

		// doesn't work if we are not in a class
		if (!$this->_inClass) {
			return;
		}

		// don't check empty lines, when we are inside a control statement, when the next token is a object opérator, ...
		if ($this->_inControlStatement || $this->_inFuncCall || !isset($this->lineNumber) || $this->tokenizer->checkNextToken(T_NEW_LINE) || $this->tokenizer->checkNextValidToken(T_PARENTHESIS_CLOSE) || $this->tokenizer->checkNextValidToken(T_BOOLEAN_AND) || $this->tokenizer->checkNextValidToken(T_BOOLEAN_OR) || $this->tokenizer->checkNextValidToken(T_OBJECT_OPERATOR)) {
			return;
		}

		$previousToken = $this->tokenizer->peekPrvsToken();

		// only check a line once
		if (!isset($this->indentationLevel['previousLine']) || $this->lineNumber !== $this->indentationLevel['previousLine']) {
			// Nesting level is the number of items in the branching stack
			$nesting = $this->statementStack->count();

			// But we must anticipate if the current line change the level
			if ($this->tokenizer->checkNextValidToken(T_BRACES_CLOSE) || $this->tokenizer->checkNextValidToken(T_SQUARE_BRACKET_CLOSE)) {
				$nesting --;
			}

			$expectedIndentation = $nesting * $indentationNumber;
			$indentation = strlen($whitespaceString);
			if ($previousToken->id !== T_NEW_LINE) {
				$indentation = 0;
			}

			// don't check when the line is a comment
			if ($this->tokenizer->checkNextToken(T_COMMENT)) {
				return;
			}

			// Control switch statement indentation
			if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_SWITCH) {

				// Don't check brackets in a switch
				if ($this->tokenizer->checkNextValidToken(T_BRACES_OPEN) || $this->tokenizer->checkNextValidToken(T_BRACES_CLOSE)) {
					return;
				}
			} else if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_CASE || $this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_DEFAULT) {

				// If the current line contains a new case, we decrease the expected level
				if ($this->tokenizer->checkNextValidToken(T_CASE) || $this->tokenizer->checkNextValidToken(T_DEFAULT) || $this->tokenizer->checkNextValidToken(T_BRACES_CLOSE)) {
					$expectedIndentation -= $indentationNumber;
				}
			}

			if ($expectedIndentation !== $indentation) {
				$msg = $this->_getMessage('INDENTATION_LEVEL', $expectedIndentation, $indentation);
				$this->_writeError('indentationLevel', $msg, $token->line);
			}
		}
		$this->indentationLevel['previousLine'] = $this->lineNumber;
	}
363417
public function setIndentationCount($indentationCount)
    {
        if (!is_int($indentationCount)) {
            throw new \InvalidArgumentException('The attribute indentationCount on the class Template has to be integer (' . gettype($indentationCount) . ('object' === gettype($indentationCount) ? ' ' . get_class($indentationCount) : '') . ' given).');
        }

        $this->indentationCount = $indentationCount;

        return $this;
    }
212833
public function prettyPrint($indentLevel, $spacesPerIndent = 4)
    {
        $resultString = "";
        foreach ($this->printables as $printable) {
            $resultString .= $printable->prettyPrint($indentLevel + 1, $spacesPerIndent);
        }

        return $resultString;
    }
705053
protected void indent(Appendable app, int indentLevel) throws IOException {
        for (int i=0; i<indentLevel; i++) {
            app.append(' ');
        }
    }
164389
private JsCodeBuilder changeIndentHelper(int chg) {
    int newIndentDepth = indent.length() + chg * INDENT_SIZE;
    Preconditions.checkState(newIndentDepth >= 0);
    indent = Strings.repeat(" ", newIndentDepth);
    return this;
  }
925421
public void setIndent(Integer indent) {
		if (indent == null) {
			remove(OutputKeys.INDENT);
			remove(INDENT_AMT);
			return;
		}

		if (indent < 0) {
			throw Messages.INSTANCE.getIllegalArgumentException(11);
		}

		put(OutputKeys.INDENT, "yes");
		put(INDENT_AMT, indent.toString());
	}
279887
public function setIndent($pValue = 0) {
		if ($pValue > 0) {
			if ($this->getHorizontal() != self::HORIZONTAL_GENERAL &&
				$this->getHorizontal() != self::HORIZONTAL_LEFT &&
				$this->getHorizontal() != self::HORIZONTAL_RIGHT) {
				$pValue = 0; // indent not supported
			}
		}
		if ($this->_isSupervisor) {
			$styleArray = $this->getStyleArray(array('indent' => $pValue));
			$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
		} else {
			$this->_indent = $pValue;
		}
		return $this;
	}
552220
protected String indentText( int level, String text )
    {
        StringBuilder buffer = new StringBuilder();
        String[] lines = text.split( "\n" );
        String prefix = StringUtils.leftPad( "", level );
        for ( String line : lines )
        {
            buffer.append( prefix ).append( line ).append( EOL );
        }
        return buffer.toString();
    }
1223146
function indent(level) {
    var val = options.indent
    _indent = ''

    if (_lastch === null)
      _lastch = _to                 // as-is, this is the first file
    else if (_lastch !== _to) {
      _lastch = _to
      // istanbul ignore else
      if (output)
        output.emit('data', _to)    // force eol after insert file
    }

    if (level > 0 && val && !/^0+\D?/.test(val)) {
      // format is 2, 2t, 2s, etc. default is spaces
      var match = /^(\d+)\s*(t?)/.exec(val),
          count = level * (match[1] | 0)
      _indent = Array(count + 1).join(match[2] ? '\t' : ' ')
    }
  }
338933
private function addIndentation(string $line, int $indentLevel): string
  {
    return ($line==='') ? '' : str_repeat(' ', $this->indentation * $indentLevel).$line;
  }
1131134
public function increaseBlockIndent()
    {
        if ($this->increaseBlockIndent) {
            ++$this->indentLvl;
            $this->increaseBlockIndent = false;
            \array_unshift($this->indentTypes, 'block');
        }

        return $this;
    }