typo
This commit is contained in:
parent
0275b1213c
commit
672ca49046
|
@ -10,11 +10,11 @@
|
|||
function getProjects($page = 1, $limit = 5)
|
||||
{
|
||||
if (!is_integer($page)) {
|
||||
throw new InvalidArgumentException('The argument "page" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "page" must be an integer.');
|
||||
}
|
||||
|
||||
if (!is_integer($limit)) {
|
||||
throw new InvalidArgumentException('The argument "limit" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "limit" must be an integer.');
|
||||
}
|
||||
|
||||
$from = ($page - 1) * $limit;
|
||||
|
@ -40,7 +40,7 @@ function getProjects($page = 1, $limit = 5)
|
|||
function getProject($id)
|
||||
{
|
||||
if (!is_integer($id)) {
|
||||
throw new InvalidArgumentException('The argument "id" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "id" must be an integer.');
|
||||
}
|
||||
|
||||
$pdo = getDatabaseConnection();
|
||||
|
@ -61,7 +61,7 @@ function getProject($id)
|
|||
function getProjectNumberOfPages($maxPerPage)
|
||||
{
|
||||
if (!is_integer($maxPerPage)) {
|
||||
throw new InvalidArgumentException('The argument "maxPerPage" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "maxPerPage" must be an integer.');
|
||||
}
|
||||
|
||||
$pdo = getDatabaseConnection();
|
||||
|
@ -98,11 +98,11 @@ function getCommentsByProject($id)
|
|||
function getProjectsPager($page, $numberOfPages)
|
||||
{
|
||||
if (!is_integer($page)) {
|
||||
throw new InvalidArgumentException('The argument "page" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "page" must be an integer.');
|
||||
}
|
||||
|
||||
if (!is_integer($numberOfPages)) {
|
||||
throw new InvalidArgumentException('The argument "numberOfPages" must be an interger.');
|
||||
throw new InvalidArgumentException('The argument "numberOfPages" must be an integer.');
|
||||
}
|
||||
|
||||
$pages = [];
|
||||
|
|
Loading…
Reference in a new issue