Skip to content

Commit 5862d46

Browse files
authored
Merge pull request #5395 from kenjis/fix-docs-incomingrequest.rst
docs: fix coding style in incomingrequest.rst
2 parents 0a55082 + ed0207d commit 5862d46

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,18 @@ data that you want or you can use "dot" notation to dig into the JSON to get dat
149149

150150
::
151151

152-
//With a request body of:
152+
// With a request body of:
153153
{
154154
"foo": "bar",
155155
"fizz": {
156156
"buzz": "baz"
157157
}
158158
}
159159
$data = $request->getVar('foo');
160-
//$data = "bar"
160+
// $data = "bar"
161161

162162
$data = $request->getVar('fizz.buzz');
163-
//$data = "baz"
163+
// $data = "baz"
164164

165165

166166
If you want the result to be an associative array instead of an object, you can use ``getJsonVar()`` instead and pass
@@ -169,12 +169,12 @@ correct ``CONTENT_TYPE`` header.
169169

170170
::
171171

172-
//With the same request as above
172+
// With the same request as above
173173
$data = $request->getJsonVar('fizz');
174-
//$data->buzz = "baz"
174+
// $data->buzz = "baz"
175175

176176
$data = $request->getJsonVar('fizz', true);
177-
//$data = ["buzz" => "baz"]
177+
// $data = ["buzz" => "baz"]
178178

179179
.. note:: See the documentation for ``dot_array_search()`` in the ``Array`` helper for more information on "dot" notation.
180180

0 commit comments

Comments
 (0)