Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed several grammar errors and typos #6738

Merged
merged 3 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion user_guide_src/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Installation

Now we need to install Sphinx and it's dependencies. Choose ``pip`` or ``pip3``
depending on operative system. After this step you need to restart your Terminal
window as Python won't find all applications we just installed othervise.
window as Python won't find all applications we just installed otherwise.

.. code-block:: bash

Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/_static/js/citheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ window.onload = function() {
var chapter = sanitizeClass(index[1]);
var subject = sanitizeClass(index[2]);

// Documentation are generated into an html-folder for developers.
// This aren't a valid chapter. We are on documentation index.
// Documentation is generated into an html-folder for developers.
// This isn't a valid chapter. We are on documentation index.
if (chapter === 'html')
{
index = null;
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/changelogs/v4.0.0-beta.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ PRs merged
- #1943 Model, Entity, Exception & Migration test cases
- #1939 Remove section that prevents hotlinking
- #1938 Database typos changes
- #1936 Docs: improce app testing writeup
- #1936 Docs: improve app testing writeup
- #1935 Update phpunit.xml scripts. Fixes #1932
- #1933 having (Is NULL deletion)
- #1931 Toolbar IE11 fix
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/dbmgmt/db_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Database Commands
#################

CodeIgniter provides some simple commands for databse management.
CodeIgniter provides some simple commands for database management.

.. contents::
:local:
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/general/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ prefix followed by a dot (.), and then the variable name itself.
Namespace Separator
-------------------

Some environments, e.g., Docker, CloudFormation, do not permit variable name with dots (``.``). In such case, since v4.1.5, you could also use underscores (``_``) as a seperator.
Some environments, e.g., Docker, CloudFormation, do not permit variable name with dots (``.``). In such case, since v4.1.5, you could also use underscores (``_``) as a separator.

::

Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/helpers/html_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ The following functions are available:
<li>shapes
<ul>
<li>round</li>
<li>suare</li>
<li>square</li>
<li>circles
<ul>
<li>elipse</li>
<li>ellipse</li>
<li>oval</li>
<li>sphere</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/incoming/content_negotiation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Media

The first aspect to look at is handling 'media' negotiations. These are provided by the ``Accept`` header and
is one of the most complex headers available. A common example is the client telling the server what format it
wants the data in. This is especially common in API's. For example, a client might request JSON formatted data
wants the data in. This is especially common in APIs. For example, a client might request JSON formatted data
from an API endpoint::

GET /foo HTTP/1.1
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/incoming/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ Offsetting the Matched Parameters
You can offset the matched parameters in your route by any numeric value with the ``offset`` option, with the
value being the number of segments to offset.

This can be beneficial when developing API's with the first URI segment being the version number. It can also
This can be beneficial when developing APIs with the first URI segment being the version number. It can also
be used when the first parameter is a language string:

.. literalinclude:: routing/042.php
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/installation/repositories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ There are several development repositories, of interest to potential contributor
+------------------+--------------+-----------------------------------------------------------------+
| shield | developers | Authentication and Authorization Library for CodeIgniter 4 |
+------------------+--------------+-----------------------------------------------------------------+
| tasks | developers | Task Scheduler for CodeIgnter 4 |
| tasks | developers | Task Scheduler for CodeIgniter 4 |
paulbalandan marked this conversation as resolved.
Show resolved Hide resolved
+------------------+--------------+-----------------------------------------------------------------+
| cache | developers | PSR-6 and PSR-16 Cache Adapters for CodeIgniter 4 |
+------------------+--------------+-----------------------------------------------------------------+
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/installation/upgrade_sessions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Upgrade Guide
- To access session data use the syntax ``$session->item`` or ``$session->get('item')`` instead of the CI3 syntax ``$this->session->name``.
- To set data use ``$session->set($array);`` instead of ``$this->session->set_userdata($array);``.
- To remove data use ``unset($_SESSION['some_name']);`` or ``$session->remove('some_name');`` instead of ``$this->session->unset_userdata('some_name');``.
- To mark session data as flasdata, which will only be available for the next request, use ``$session->markAsFlashdata('item');`` instead of ``$this->session->mark_as_flash('item');```
- To mark session data as flashdata, which will only be available for the next request, use ``$session->markAsFlashdata('item');`` instead of ``$this->session->mark_as_flash('item');```

Code Example
============
Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/libraries/official_packages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Shield
`CodeIgniter Shield <https://github.com/codeigniter4/shield>`_ is an authentication
and authorization framework for CodeIgniter 4. It is designed to be secure, flexible,
and easily extendable to meet the needs of many different types of websites.
Among the many featues, it includes:
Among the many features, it includes:

* Session-based authentication
* Personal access token authentication
Expand Down Expand Up @@ -56,7 +56,7 @@ DevKit

`CodeIgniter DevKit <https://github.com/codeigniter4/devkit>`_ provides all of the
development tools that CodeIgniter uses to help ensure quality code, including
our coding standard, static analysys tools and rules, unit testing, data generation,
our coding standard, static analysis tools and rules, unit testing, data generation,
file-system mocking, security advisories, and more. This can be used in any of
your personal projects or libraries to get you rapidly setup with 17 different tools.

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Setting Page Manually
=====================

If you need to specify which page of results to return you can specify the page as the 3rd argument. This can be
handy when you have a different manner than the default ``$_GET`` varibable to control which page to show.
handy when you have a different manner than the default ``$_GET`` variable to control which page to show.

.. literalinclude:: pagination/005.php

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/libraries/throttler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Throttler
:depth: 2

The Throttler class provides a very simple way to limit an activity to be performed to a certain number of attempts
within a set period of time. This is most often used for performing rate limiting on API's, or restricting the number
within a set period of time. This is most often used for performing rate limiting on APIs, or restricting the number
of attempts a user can make against a form to help prevent brute force attacks. The class itself can be used
for anything that you need to throttle based on actions within a set time interval.

Expand Down
6 changes: 3 additions & 3 deletions user_guide_src/source/libraries/uploaded_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ place this code and save it to your **app/Views/** directory::
<h3>Your file was successfully uploaded!</h3>

<ul>
<li>name: <?= esc($uploaded_flleinfo->getBasename()) ?></li>
<li>size: <?= esc($uploaded_flleinfo->getSizeByUnit('kb')) ?> KB</li>
<li>extension: <?= esc($uploaded_flleinfo->guessExtension()) ?></li>
<li>name: <?= esc($uploaded_fileinfo->getBasename()) ?></li>
<li>size: <?= esc($uploaded_fileinfo->getSizeByUnit('kb')) ?> KB</li>
<li>extension: <?= esc($uploaded_fileinfo->guessExtension()) ?></li>
</ul>

<p><?= anchor('upload', 'Upload Another File!') ?></p>
Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/libraries/uri.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ The host portion of the URI is typically the domain name of the URL. This can be
Port
----

The port is an integer number between 0 and 65535. Each sheme has a default value associated with it.
The port is an integer number between 0 and 65535. Each scheme has a default value associated with it.

.. literalinclude:: uri/015.php

Expand Down Expand Up @@ -174,7 +174,7 @@ you can use the ``stripQuery()`` and ``keepQuery()`` methods to change the actua
Fragment
--------

Fragments are the portion at the end of the URL, preceded by the pound-sign (#). In HTML URL's these are links
Fragments are the portion at the end of the URL, preceded by the pound-sign (#). In HTML URLs these are links
to an on-page anchor. Media URI's can make use of them in various other ways.

.. literalinclude:: uri/022.php
Expand Down
6 changes: 3 additions & 3 deletions user_guide_src/source/models/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ Saving Data
insert()
--------

The first parametre is an associative array of data to create a new row of data in the database.
The first parameter is an associative array of data to create a new row of data in the database.
If an object is passed instead of an array, it will attempt to convert it to an array.

The array's keys must match the name of the columns in the ``$table``, while the array's values are the values to save for that key.

The optional second parameter is of type boolean, and if it is set to false, the method will return a boolean value,
The optional second parameter is of type boolean, and if it is set to false, the method will return a boolean value,
which indicates the success or failure of the query.

You can retrieve the last inserted row's primary key using the ``getInsertID()`` method.
Expand Down Expand Up @@ -593,7 +593,7 @@ Returns data from the next **find*()** method as associative arrays:
asObject()
----------

Returns data from the next **find*()** method as standard objects or custom class intances:
Returns data from the next **find*()** method as standard objects or custom class instances:

.. literalinclude:: model/048.php

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/models/model/001.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@

// Create shared instance with a supplied database connection
// When no namespace is given, it will search through all namespaces
// the system knows about and attempt to located the UserModel class.
// the system knows about and attempts to locate the UserModel class.
$db = db_connect('custom');
$userModel = model('UserModel', true, $db);
2 changes: 1 addition & 1 deletion user_guide_src/source/outgoing/api_responses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
API Response Trait
##################

Much of modern PHP development requires building API's, whether simply to provide data for a javascript-heavy
Much of modern PHP development requires building APIs, whether simply to provide data for a javascript-heavy
single page application, or as a standalone product. CodeIgniter provides an API Response trait that can be
used with any controller to make common response types simple, with no need to remember which HTTP status code
should be returned for which response types.
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/testing/benchmark.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ the only parameter. The default value is 4 numbers behind the decimal point:

.. literalinclude:: benchmark/005.php

The timers are automatically displayed in the :doc:`Debub Toolbar </testing/debugging>`.
The timers are automatically displayed in the :doc:`Debug Toolbar </testing/debugging>`.

Displaying Execution Time
=========================
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/testing/fabricator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ example:

Your project has users and groups. In your test case you want to create various scenarios
with groups of different sizes, so you use ``Fabricator`` to create a bunch of groups.
Now you want to create fake users but don't want to assign them to a non-existant group ID.
Now you want to create fake users but don't want to assign them to a non-existent group ID.
Your model's fake method could look like this:

.. literalinclude:: fabricator/021.php
Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/testing/feature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ Formatting The Request
You can set the format of your request's body using the ``withBodyFormat()`` method. Currently this supports either
`json` or `xml`. This will take the parameters passed into ``call()``, ``post()``, ``get()``... and assign them to the
body of the request in the given format. This will also set the `Content-Type` header for your request accordingly.
This is useful when testing JSON or XML API's so that you can set the request in the form that the controller will expect.
This is useful when testing JSON or XML APIs so that you can set the request in the form that the controller will expect.

.. literalinclude:: feature/008.php

Setting the Body
----------------

You can set the body of your request with the ``withBody()`` method. This allows you to format the body how you want
to format it. It is recommended that you use this if you have more complicated xml's to test. This will also not set
to format it. It is recommended that you use this if you have more complicated XMLs to test. This will also not set
the Content-Type header for you so if you need that, you can set it with the ``withHeaders()`` method.

Checking the Response
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/testing/response/018.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
// Check that "Hello World" is within an element with the "notice" class
$results->see('Hello World', '.notice');
// Check that "Hello World" is within an element with id of "title"
$results->see('Hellow World', '#title');
$results->see('Hello World', '#title');
2 changes: 1 addition & 1 deletion user_guide_src/source/testing/response/024.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
// Check that "Hello World" is within an element with the "notice" class
$result->assertSee('Hello World', '.notice');
// Check that "Hello World" is within an element with id of "title"
$result->assertSee('Hellow World', '#title');
$result->assertSee('Hello World', '#title');
2 changes: 1 addition & 1 deletion user_guide_src/source/tutorial/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Enjoy your exploration of the CodeIgniter framework.
Getting Up and Running
**********************

Installing CodeIgnier
Installing CodeIgniter
=====================
bitdaw marked this conversation as resolved.
Show resolved Hide resolved

You can download a release manually from the site, but for this tutorial we will
Expand Down