Skip to content

Commit 336fd48

Browse files
committed
Incorrect exception removed from Response.php
1 parent 1ab8e64 commit 336fd48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/MiladRahimi/PHPRouter/Exceptions/FileNotFound.php renamed to src/MiladRahimi/PHPRouter/Exceptions/FileNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
* @package MiladRahimi\PHPRouter\Exceptions
88
* @author Milad Rahimi <[email protected]>
99
*/
10-
class FileNotFound extends \Exception {
10+
class FileNotFoundException extends \Exception {
1111
// Not implemented yet!
1212
}

src/MiladRahimi/PHPRouter/Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace MiladRahimi\PHPRouter;
22

33
use MiladRahimi\PHPRouter\Exceptions\InvalidArgumentException;
4-
use MiladRahimi\PHPTemplate\Exceptions\FileNotFoundException;
4+
use MiladRahimi\PHPRouter\Exceptions\FileNotFoundException;
55

66
/**
77
* Class Response
@@ -101,19 +101,19 @@ public function render($file) {
101101
* @param string $path
102102
* @param string $domain
103103
* @param bool $secure
104-
* @param bool $httponly
104+
* @param bool $httpOnly
105105
*
106106
* @return array
107107
*/
108108
public function cookie($name, $value, $expire = 0, $path = null, $domain = null, $secure = false,
109-
$httponly = false) {
109+
$httpOnly = false) {
110110
if (!isset($name) || !is_scalar($name)) {
111111
throw new InvalidArgumentException("Name must be a string value");
112112
}
113113
if (!isset($value)) {
114114
throw new InvalidArgumentException("Value must be set");
115115
}
116-
return setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
116+
return setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
117117
}
118118

119119
/**

0 commit comments

Comments
 (0)