From ca39449c83b0f8d42e1ad1b4086239584fda0967 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 19 Mar 2018 09:28:31 -0700 Subject: [PATCH] formatting --- .../Testing/Constraints/SeeInOrder.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php b/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php index f81386b00455..958247171bab 100644 --- a/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php +++ b/src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php @@ -7,32 +7,32 @@ class SeeInOrder extends Constraint { /** - * The value that failed. Used to display in the error message. + * The string under validation. * * @var string */ - protected $failedValue; + protected $content; /** - * The string we want to check the content of. + * The last value that failed to pass validation. * * @var string */ - protected $content; + protected $failedValue; /** * Create a new constraint instance. * - * @param string $content + * @param string $content * @return void */ - public function __construct(string $content) + public function __construct($content) { $this->content = $content; } /** - * Check if the data is found in the given table. + * Determine if the rule passes validation. * * @param array $values * @return bool @@ -78,8 +78,6 @@ public function failureDescription($values) : string */ public function toString() : string { - $class = new ReflectionClass($this); - - return $class->name; + return (new ReflectionClass($this))->name; } }