Skip to content

Commit b14a436

Browse files
committed
[UG] Fix typo causing Sphinx warning "Literal block expected"
1 parent bfa124a commit b14a436

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ get a copy of it through the :doc:`Services class </concepts/services>`::
3838
It's preferable, though, to pass the request in as a dependency if the class is anything other than
3939
the controller, where you can save it as a class property::
4040

41-
<?php
41+
<?php
4242
use CodeIgniter\HTTP\RequestInterface;
4343

4444
class SomeClass
@@ -73,8 +73,6 @@ be checked with the ``isAJAX()`` and ``isCLI()`` methods::
7373

7474
.. note:: The ``isAJAX()`` method depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e. fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
7575

76-
::
77-
7876
You can check the HTTP method that this request represents with the ``method()`` method::
7977

8078
// Returns 'post'
@@ -261,7 +259,7 @@ You can retrieve a single file uploaded on its own, based on the filename given
261259

262260
$file = $request->getFile('uploadedfile');
263261

264-
You can retrieve an array of same-named files uploaded as part of a
262+
You can retrieve an array of same-named files uploaded as part of a
265263
multi-file upload, based on the filename given in the HTML file input::
266264

267265
$files = $request->getFileMultiple('uploadedfile');

0 commit comments

Comments
 (0)