Apply fixes from StyleCI (#21965)

This commit is contained in:
Graham Campbell 2017-11-05 20:38:30 +00:00 committed by Taylor Otwell
parent 9f178aa29d
commit e32e92706f
5 changed files with 7 additions and 7 deletions

View File

@ -520,7 +520,7 @@ class Connection implements ConnectionInterface
);
}
++$this->transactions;
$this->transactions++;
$this->fireConnectionEvent('beganTransaction');
}
@ -536,7 +536,7 @@ class Connection implements ConnectionInterface
$this->pdo->commit();
}
--$this->transactions;
$this->transactions--;
$this->fireConnectionEvent('committed');
}

View File

@ -761,7 +761,7 @@ class Builder
* @param string $boolean
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function addHasWhere(Builder $hasQuery, Relation $relation, $operator, $count, $boolean)
protected function addHasWhere(self $hasQuery, Relation $relation, $operator, $count, $boolean)
{
$this->mergeWheresToHas($hasQuery, $relation);
@ -779,7 +779,7 @@ class Builder
* @param \Illuminate\Database\Eloquent\Relations\Relation $relation
* @return void
*/
protected function mergeWheresToHas(Builder $hasQuery, Relation $relation)
protected function mergeWheresToHas(self $hasQuery, Relation $relation)
{
// Here we have the "has" query and the original relation. We need to copy over any
// where clauses the developer may have put in the relationship function over to

View File

@ -1894,7 +1894,7 @@ abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializab
* @param bool $exists
* @return \Illuminate\Database\Eloquent\Relations\Pivot
*/
public function newPivot(Model $parent, array $attributes, $table, $exists)
public function newPivot(self $parent, array $attributes, $table, $exists)
{
return new Pivot($parent, $attributes, $table, $exists);
}

View File

@ -2050,7 +2050,7 @@ class Builder
* @param \Illuminate\Database\Query\Builder $query
* @return $this
*/
public function mergeBindings(Builder $query)
public function mergeBindings(self $query)
{
$this->bindings = array_merge_recursive($this->bindings, $query->bindings);

View File

@ -291,7 +291,7 @@ class Str
$result = 0;
for ($i = 0; $i < $knownLength; ++$i) {
for ($i = 0; $i < $knownLength; $i++) {
$result |= (ord($knownString[$i]) ^ ord($userInput[$i]));
}