Total Complexity | 16 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class BlockString |
||
17 | { |
||
18 | /** |
||
19 | * Produces the value of a block string from its parsed raw value, similar to |
||
20 | * Coffeescript's block string, Python's docstring trim or Ruby's strip_heredoc. |
||
21 | * |
||
22 | * This implements the GraphQL spec's BlockStringValue() static algorithm. |
||
23 | */ |
||
24 | 24 | public static function value($rawString) |
|
66 | } |
||
67 | |||
68 | 21 | private static function leadingWhitespace($str) |
|
78 |