Skip to content

Commit 917b150

Browse files
authored
Merge pull request #6392 from kenjis/fix-docs-link-to-func
docs: fix links to function/method
2 parents f4ce26a + 50df10d commit 917b150

File tree

19 files changed

+49
-22
lines changed

19 files changed

+49
-22
lines changed

contributing/documentation.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ To a URL
124124
To a Function
125125
=============
126126

127-
:php:func:`dot_array_search`
127+
:php:func:`dot_array_search()`
128128

129-
:php:func:`Response::setCookie() <setCookie>`
129+
To a Method
130+
=============
131+
132+
:php:meth:`CodeIgniter\\HTTP\\Response::setCookie()`

user_guide_src/source/changelogs/v4.2.0.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Behavior Changes
5454
- The color code output by :ref:`CLI::color() <cli-library-color>` has been changed to fix a bug.
5555
- To prevent unexpected access from the web browser, if a controller is added to a cli route (``$routes->cli()``), all methods of that controller are no longer accessible via auto-routing.
5656
- There is a possible backward compatibility break for those users extending the History Collector and they should probably update ``History::setFiles()`` method.
57-
- The :php:func:`dot_array_search`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
58-
- The ``CodeIgniter::storePreviousURL()`` has been changed to store only the URLs whose Content-Type was ``text/html``. It also affects the behavior of :php:func:`previous_url` and :php:func:`redirect()->back() <redirect>`.
57+
- The :php:func:`dot_array_search()`'s unexpected behavior has been fixed. Now ``dot_array_search('foo.bar.baz', ['foo' => ['bar' => 23]])`` returns ``null``. The previous versions returned ``23``.
58+
- The ``CodeIgniter::storePreviousURL()`` has been changed to store only the URLs whose Content-Type was ``text/html``. It also affects the behavior of :php:func:`previous_url()` and :php:func:`redirect()->back() <redirect>`.
5959

6060
Enhancements
6161
************
@@ -97,8 +97,8 @@ Database
9797
Helpers and Functions
9898
=====================
9999

100-
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag`.
101-
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames`.
100+
- HTML helper ``script_tag()`` now uses ``null`` values to write boolean attributes in minimized form: ``<script src="..." defer />``. See the sample code for :php:func:`script_tag()`.
101+
- Added 4th parameter ``$includeDir`` to ``get_filenames()``. See :php:func:`get_filenames()`.
102102
- Exception information logged through ``log_message()`` has now improved. It now includes the file and line where the exception originated. It also does not truncate the message anymore.
103103
- The log format has also changed. If users are depending on the log format in their apps, the new log format is "<1-based count> <cleaned filepath>(<line>): <class><function><args>"
104104

user_guide_src/source/changelogs/v4.2.2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ BREAKING
1616
- The method signature of ``CodeIgniter\Debug\Exceptions::__construct()`` has been changed. The ``IncomingRequest`` typehint on the ``$request`` parameter was removed. Extending classes should likewise remove the parameter so as not to break LSP.
1717
- The method signature of ``BaseBuilder.php::insert()`` and ``BaseBuilder.php::update()`` have been changed. The ``?array`` typehint on the ``$set`` parameter was removed.
1818
- A bug that caused pages to be cached before after filters were executed when using page caching has been fixed. Adding response headers or changing the response body in after filters now caches them correctly.
19-
- Due to a bug fix, now :php:func:`random_string` with the first parameter ``'crypto'`` throws ``InvalidArgumentException`` if the second parameter ``$len`` is an odd number.
19+
- Due to a bug fix, now :php:func:`random_string()` with the first parameter ``'crypto'`` throws ``InvalidArgumentException`` if the second parameter ``$len`` is an odd number.
2020

2121
Changes
2222
*******

user_guide_src/source/cli/cli_commands.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ The ``BaseCommand`` class that all commands must extend have a couple of helpful
9090
be familiar with when creating your own commands. It also has a :doc:`Logger </general/logging>` available at
9191
``$this->logger``.
9292

93-
.. php:class:: CodeIgniter\\CLI\\BaseCommand
93+
.. php:namespace:: CodeIgniter\CLI
94+
95+
.. php:class:: BaseCommand
9496
9597
.. php:method:: call(string $command[, array $params = []])
9698

user_guide_src/source/database/results.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ true on success or false on failure.
239239
Class Reference
240240
***************
241241

242-
.. php:class:: CodeIgniter\\Database\\BaseResult
242+
.. php:namespace:: CodeIgniter\Database
243+
244+
.. php:class:: BaseResult
243245
244246
.. php:method:: getResult([$type = 'object'])
245247

user_guide_src/source/dbmgmt/forge.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ change the name, you can add a "name" key into the field defining array.
289289
Class Reference
290290
***************
291291

292-
.. php:class:: CodeIgniter\\Database\\Forge
292+
.. php:namespace:: CodeIgniter\Database
293+
294+
.. php:class:: Forge
293295
294296
.. php:method:: addColumn($table[, $field = []])
295297

user_guide_src/source/dbmgmt/migration.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ Preference Default Options Des
216216
Class Reference
217217
***************
218218

219-
.. php:class:: CodeIgniter\\Database\\MigrationRunner
219+
.. php:namespace:: CodeIgniter\Database
220+
221+
.. php:class:: MigrationRunner
220222
221223
.. php:method:: findMigrations()
222224

user_guide_src/source/general/common_functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Miscellaneous Functions
348348

349349
.. note:: ``route_to()`` returns a route, not a full URI path for your site.
350350
If your **baseURL** contains sub folders, the return value is not the same
351-
as the URI to link. In that case, just use :php:func:`url_to` instead.
351+
as the URI to link. In that case, just use :php:func:`url_to()` instead.
352352

353353
.. php:function:: service($name[, ...$params])
354354

user_guide_src/source/helpers/cookie_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following functions are available:
3737
This helper function gives you friendlier syntax to set browser
3838
cookies. Refer to the :doc:`Response Library </outgoing/response>` for
3939
a description of its use, as this function is an alias for
40-
:php:func:`Response::setCookie() <setCookie>`.
40+
:php:meth:`CodeIgniter\\HTTP\\Response::setCookie()`.
4141

4242
.. php:function:: get_cookie($index[, $xssClean = false[, $prefix = '']])
4343

user_guide_src/source/incoming/message.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ This same negotiation can happen with four types of data:
3434
Class Reference
3535
***************
3636

37-
.. php:class:: CodeIgniter\\HTTP\\Message
37+
.. php:namespace:: CodeIgniter\HTTP
38+
39+
.. php:class:: Message
3840
3941
.. php:method:: getBody()
4042

0 commit comments

Comments
 (0)