Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 25, 2017
1 parent 2031536 commit 52d28e3
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions src/Illuminate/Validation/Rules/DatabaseRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct($table, $column = 'NULL')
* Set a "where" constraint on the query.
*
* @param string $column
* @param string|array $value
* @param array|string $value
* @return $this
*/
public function where($column, $value = null)
Expand All @@ -73,7 +73,7 @@ public function where($column, $value = null)
* Set a "where not" constraint on the query.
*
* @param string $column
* @param string|array $value
* @param array|string $value
* @return $this
*/
public function whereNot($column, $value)
Expand Down Expand Up @@ -111,15 +111,11 @@ public function whereNotNull($column)
* Set a "where in" constraint on the query.
*
* @param string $column
* @param string|array $values
* @param array $values
* @return $this
*/
public function whereIn($column, $values)
public function whereIn($column, array $values)
{
if (! is_array($values)) {
return $this->where($column, $values);
}

return $this->where(function ($query) use ($column, $values) {
$query->whereIn($column, $values);
});
Expand All @@ -129,15 +125,11 @@ public function whereIn($column, $values)
* Set a "where not in" constraint on the query.
*
* @param string $column
* @param string|array $values
* @param array $values
* @return $this
*/
public function whereNotIn($column, $values)
public function whereNotIn($column, array $values)
{
if (! is_array($values)) {
return $this->whereNot($column, $values);
}

return $this->where(function ($query) use ($column, $values) {
$query->whereNotIn($column, $values);
});
Expand Down

0 comments on commit 52d28e3

Please sign in to comment.