Skip to content

Commit c55a579

Browse files
markomarkovicpredominant
authored andcommitted
Typos in documentation: reguired -> required
1 parent 1186bc5 commit c55a579

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cake/libs/controller/components/cookie.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function startup() {
184184
/**
185185
* Write a value to the $_COOKIE[$key];
186186
*
187-
* Optional [Name.], reguired key, optional $value, optional $encrypt, optional $expires
187+
* Optional [Name.], required key, optional $value, optional $encrypt, optional $expires
188188
* $this->Cookie->write('[Name.]key, $value);
189189
*
190190
* By default all values are encrypted.
@@ -205,7 +205,7 @@ function write($key, $value = null, $encrypt = true, $expires = null) {
205205
}
206206
$this->__encrypted = $encrypt;
207207
$this->__expire($expires);
208-
208+
209209
if (!is_array($key)) {
210210
$key = array($key => $value);
211211
}
@@ -214,7 +214,7 @@ function write($key, $value = null, $encrypt = true, $expires = null) {
214214
if (strpos($name, '.') === false) {
215215
$this->__values[$name] = $value;
216216
$this->__write("[$name]", $value);
217-
217+
218218
} else {
219219
$names = explode('.', $name, 2);
220220
if (!isset($this->__values[$names[0]])) {
@@ -230,7 +230,7 @@ function write($key, $value = null, $encrypt = true, $expires = null) {
230230
/**
231231
* Read the value of the $_COOKIE[$key];
232232
*
233-
* Optional [Name.], reguired key
233+
* Optional [Name.], required key
234234
* $this->Cookie->read(Name.key);
235235
*
236236
* @param mixed $key Key of the value to be obtained. If none specified, obtain map key => values
@@ -245,7 +245,7 @@ function read($key = null) {
245245
if (is_null($key)) {
246246
return $this->__values;
247247
}
248-
248+
249249
if (strpos($key, '.') !== false) {
250250
$names = explode('.', $key, 2);
251251
$key = $names[0];
@@ -263,7 +263,7 @@ function read($key = null) {
263263
/**
264264
* Delete a cookie value
265265
*
266-
* Optional [Name.], reguired key
266+
* Optional [Name.], required key
267267
* $this->Cookie->read('Name.key);
268268
*
269269
* You must use this method before any output is sent to the browser.
@@ -344,11 +344,11 @@ function __expire($expires = null) {
344344
return $this->__expires;
345345
}
346346
$this->__reset = $this->__expires;
347-
347+
348348
if ($expires == 0) {
349349
return $this->__expires = 0;
350350
}
351-
351+
352352
if (is_integer($expires) || is_numeric($expires)) {
353353
return $this->__expires = $now + intval($expires);
354354
}

0 commit comments

Comments
 (0)