File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
src/Illuminate/Foundation/Testing/Constraints Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 7
7
class SeeInOrder extends Constraint
8
8
{
9
9
/**
10
- * The value that failed. Used to display in the error message .
10
+ * The string under validation .
11
11
*
12
12
* @var string
13
13
*/
14
- protected $ failedValue ;
14
+ protected $ content ;
15
15
16
16
/**
17
- * The string we want to check the content of .
17
+ * The last value that failed to pass validation .
18
18
*
19
19
* @var string
20
20
*/
21
- protected $ content ;
21
+ protected $ failedValue ;
22
22
23
23
/**
24
24
* Create a new constraint instance.
25
25
*
26
- * @param string $content
26
+ * @param string $content
27
27
* @return void
28
28
*/
29
- public function __construct (string $ content )
29
+ public function __construct ($ content )
30
30
{
31
31
$ this ->content = $ content ;
32
32
}
33
33
34
34
/**
35
- * Check if the data is found in the given table .
35
+ * Determine if the rule passes validation .
36
36
*
37
37
* @param array $values
38
38
* @return bool
@@ -78,8 +78,6 @@ public function failureDescription($values) : string
78
78
*/
79
79
public function toString () : string
80
80
{
81
- $ class = new ReflectionClass ($ this );
82
-
83
- return $ class ->name ;
81
+ return (new ReflectionClass ($ this ))->name ;
84
82
}
85
83
}
You can’t perform that action at this time.
0 commit comments