Apply fixes from StyleCI (#21965)
This commit is contained in:
parent
9f178aa29d
commit
e32e92706f
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue