<?php strlen(string $string): int
<?php } $error = \substr($error, 0, (\strlen($error) - 5)); if ($errorInfo['alternative'] !== '') { $error .= $this->getAlternativeOptionTemplate();
<?php $actualErrors = 0; while (empty($contents) === false && \substr($contents, 0, 2) === '#[') { $length = \strlen($contents); $nestedBrackets = 1; for ($i = 2; $i < $length; $i++) {
<?php } $error = \substr($error, 0, (\strlen($error) - 5)); $errorCode .= $codeSuffix . 'Required'; $this->addMessage($phpcsFile, $error, $stackPtr, $versionInfo['error'], $errorCode, $data);
<?php if ($startAt !== '') { $startPos = \strpos($content, $startAt); if ($startPos !== false) { $startPos += \strlen($startAt); } }
<?php } $snippet = \substr($content, $startPos, $length); if ((\strlen($content) - $startPos) > $length) { $snippet .= '...'; }
<?php $tokens = $phpcsFile->getTokens(); $content = TextStrings::getCompleteTextString($phpcsFile, $firstNonEmpty); $length = \strlen($content); if ($tokens[$firstNonEmpty]['code'] === \T_DOUBLE_QUOTED_STRING || $tokens[$firstNonEmpty]['code'] === \T_START_HEREDOC
<?php || $tokens[$firstNonEmpty]['code'] === \T_START_HEREDOC ) { $contentStripped = $this->stripVariables($content); $length = \strlen($contentStripped); if ($contentStripped !== $content) { $length += \substr_count($content, '$');
<?php $afterMarker = \substr($trimmed, \strlen($identifier)); $afterMarker = \ltrim($afterMarker, ';');