Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 19, 2018
1 parent 92f5548 commit ca39449
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
}

0 comments on commit ca39449

Please sign in to comment.