File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ $d->getWindshearRunways(); //array('03')
154154
155155```
156156
157- == About parsing errors ==
157+ About parsing errors
158+ --------------------
158159
159160When an unexpected format is encountered for a part of the METAR, the parsing error is logged into the DecodedMetar object itself.
160161
@@ -169,17 +170,23 @@ The mode can be set globally for a MetarDecoder object, or just once as you can
169170
170171$decoder = new MetarDecoder\MetarDecoder();
171172
172- $decoder->setStrictParsing(true); // change global parsing mode to "strict"
173+ // change global parsing mode to "strict"
174+ $decoder->setStrictParsing(true);
173175
174- $decoder->parse("..."); // this parsing will be made with strict mode
176+ // this parsing will be made with strict mode
177+ $decoder->parse("...");
175178
176- $decoder->parseNotStrict("..."); // but this one will ignore global mode and will be made with not-strict mode anyway
179+ // but this one will ignore global mode and will be made with not-strict mode anyway
180+ $decoder->parseNotStrict("...");
177181
178- $decoder->setStrictParsing(false); // change global parsing mode to "not-strict"
182+ // change global parsing mode to "not-strict"
183+ $decoder->setStrictParsing(false);
179184
180- $decoder->parse("..."); // this parsing will be made with no-strict mode
185+ // this parsing will be made with no-strict mode
186+ $decoder->parse("...");
181187
182- $decoder->parseStrict("..."); // but this one will ignore global mode and will be made with strict mode anyway
188+ // but this one will ignore global mode and will be made with strict mode anyway
189+ $decoder->parseStrict("...");
183190
184191```
185192
You can’t perform that action at this time.
0 commit comments