diff --git a/.gitattributes b/.gitattributes index 7c8a1c1..305fde1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,8 @@ -/tests export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore -/.travis.yml export-ignore -/phpunit.xml.dist export-ignore \ No newline at end of file +/tests export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.scrutinizer.yml export-ignore +.travis.yml export-ignore +CODE_OF_CONDUCT.md export-ignore +CONTRIBUTING.md export-ignore +phpunit.xml.dist export-ignore \ No newline at end of file diff --git a/CONDUCT.md b/CODE_OF_CONDUCT.md similarity index 100% rename from CONDUCT.md rename to CODE_OF_CONDUCT.md diff --git a/README.md b/README.md index 9584bb2..8e569ba 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ class Comment extends Model ## Contributing -Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details. +Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details. ## Credits diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7041585..0411f70 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -11,7 +11,7 @@ verbose="true" > - + ./tests diff --git a/src/Relations/BelongsToThrough.php b/src/Relations/BelongsToThrough.php index 1ac54cf..e95024e 100644 --- a/src/Relations/BelongsToThrough.php +++ b/src/Relations/BelongsToThrough.php @@ -191,7 +191,7 @@ protected function setRelationQueryConstraints(Builder $query) if ($lastIndex === $index) { $prev = $this->prefix.$prev; // TODO: Check if this line is really necessary. Its not covered by any of the tests. } - if ($this->getParent()->getTable() == $model->getTable()) { + if ($this->getParent()->getTable() === $model->getTable()) { $alias = $model->getTable().'_'.time(); $other = $alias.'.'.$prev; $query->leftJoin(new Expression($model->getTable().' as '.$alias), $one, '=', $other);