projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
vendor
/
symfony
/
browser-kit
/
History.php
diff --git
a/vendor/symfony/browser-kit/History.php
b/vendor/symfony/browser-kit/History.php
index 8e38fe5ca8711f7d4f4e326f79f314831e359be0..beec17c6b4d92aa469f9cf2ae84e20c7e38bba82 100644
(file)
--- a/
vendor/symfony/browser-kit/History.php
+++ b/
vendor/symfony/browser-kit/History.php
@@
-32,14
+32,12
@@
class History
/**
* Adds a Request to the history.
/**
* Adds a Request to the history.
- *
- * @param Request $request A Request instance
*/
public function add(Request $request)
{
*/
public function add(Request $request)
{
- $this->stack = array_slice($this->stack, 0, $this->position + 1);
+ $this->stack =
\
array_slice($this->stack, 0, $this->position + 1);
$this->stack[] = clone $request;
$this->stack[] = clone $request;
- $this->position = count($this->stack) - 1;
+ $this->position =
\
count($this->stack) - 1;
}
/**
}
/**
@@
-49,7
+47,7
@@
class History
*/
public function isEmpty()
{
*/
public function isEmpty()
{
- return
count($this->stack) == 0
;
+ return
0 == \count($this->stack)
;
}
/**
}
/**
@@
-77,7
+75,7
@@
class History
*/
public function forward()
{
*/
public function forward()
{
- if ($this->position > count($this->stack) - 2) {
+ if ($this->position >
\
count($this->stack) - 2) {
throw new \LogicException('You are already on the last page.');
}
throw new \LogicException('You are already on the last page.');
}