| @@ 82-88 (lines=7) @@ | ||
| 79 | { |
|
| 80 | $description = null; |
|
| 81 | ||
| 82 | if (Str::contains($token, ' : ')) { |
|
| 83 | list($token, $description) = explode(' : ', $token, 2); |
|
| 84 | ||
| 85 | $token = trim($token); |
|
| 86 | ||
| 87 | $description = trim($description); |
|
| 88 | } |
|
| 89 | ||
| 90 | switch (true) { |
|
| 91 | case Str::endsWith($token, '?*'): |
|
| @@ 119-123 (lines=5) @@ | ||
| 116 | { |
|
| 117 | $description = null; |
|
| 118 | ||
| 119 | if (Str::contains($token, ' : ')) { |
|
| 120 | list($token, $description) = explode(' : ', $token); |
|
| 121 | $token = trim($token); |
|
| 122 | $description = trim($description); |
|
| 123 | } |
|
| 124 | ||
| 125 | $shortcut = null; |
|
| 126 | ||