Detect type of block.
public static detectBlockType ( PhpCsFixer\Tokenizer\Token $token ) : null | array | ||
$token | PhpCsFixer\Tokenizer\Token | token |
return | null | array | array with 'type' and 'isStart' keys or null if not found |
public static detectBlockType ( PhpCsFixer\Tokenizer\Token $token ) : null | array | ||
$token | PhpCsFixer\Tokenizer\Token | token |
return | null | array | array with 'type' and 'isStart' keys or null if not found |