Skip to content

Commit ca39449

Browse files
committed
formatting
1 parent 92f5548 commit ca39449

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@
77
class SeeInOrder extends Constraint
88
{
99
/**
10-
* The value that failed. Used to display in the error message.
10+
* The string under validation.
1111
*
1212
* @var string
1313
*/
14-
protected $failedValue;
14+
protected $content;
1515

1616
/**
17-
* The string we want to check the content of.
17+
* The last value that failed to pass validation.
1818
*
1919
* @var string
2020
*/
21-
protected $content;
21+
protected $failedValue;
2222

2323
/**
2424
* Create a new constraint instance.
2525
*
26-
* @param string $content
26+
* @param string $content
2727
* @return void
2828
*/
29-
public function __construct(string $content)
29+
public function __construct($content)
3030
{
3131
$this->content = $content;
3232
}
3333

3434
/**
35-
* Check if the data is found in the given table.
35+
* Determine if the rule passes validation.
3636
*
3737
* @param array $values
3838
* @return bool
@@ -78,8 +78,6 @@ public function failureDescription($values) : string
7878
*/
7979
public function toString() : string
8080
{
81-
$class = new ReflectionClass($this);
82-
83-
return $class->name;
81+
return (new ReflectionClass($this))->name;
8482
}
8583
}

0 commit comments

Comments
 (0)