Skip to content

Commit

Permalink
Merge pull request #3 from maxmirazh33/scrutinizer-patch-3
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
maxmirazh33 committed Jan 8, 2016
2 parents 83915a3 + 8b5a205 commit 0d3c2e6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Plugins/SoftDeletes/SoftDeletingScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function remove(Query $query)

$query = $query->getQuery();

foreach ((array)$query->wheres as $key => $where) {
foreach ((array) $query->wheres as $key => $where) {
// If the where clause is a soft delete date constraint, we will remove it from
// the query and reset the keys on the wheres. This allows this developer to
// include deleted model in a relationship result set that is lazy loaded.
Expand Down
4 changes: 2 additions & 2 deletions src/Relationships/BelongsTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public function attachTo($related)
*/
public function detachFrom($related)
{
return $this->dissociate($related);//todo
return $this->dissociate($related); //todo
}

/**
* Get the results of the relationship.
*
* @param $relation
*
* @return mixed
* @return \Analogue\ORM\Entity
*/
public function getResults($relation)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Relationships/HasManyThrough.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function addEagerConstraints(array $entities)
*
* @param \Analogue\ORM\Entity[] $entities
* @param string $relation
* @return array
* @return \Analogue\ORM\Entity[]
*/
public function initRelation(array $entities, $relation)
{
Expand All @@ -167,7 +167,7 @@ public function initRelation(array $entities, $relation)
* @param \Analogue\ORM\Entity[] $entities
* @param EntityCollection $results
* @param string $relation
* @return array
* @return \Analogue\ORM\Entity[]
*/
public function match(array $entities, EntityCollection $results, $relation)
{
Expand Down Expand Up @@ -221,7 +221,7 @@ protected function buildDictionary(EntityCollection $results)
* Get the results of the relationship.
*
* @param $relation
* @return mixed
* @return EntityCollection
*/
public function getResults($relation)
{
Expand Down Expand Up @@ -277,7 +277,7 @@ protected function getSelectColumns(array $columns = ['*'])
*
* @param int $perPage
* @param array $columns
* @return \Illuminate\Pagination\Paginator
* @return \Illuminate\Pagination\LengthAwarePaginator
*/
public function paginate($perPage = null, $columns = ['*'])
{
Expand Down
4 changes: 2 additions & 2 deletions src/Relationships/MorphTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function match(array $entities, EntityCollection $results, $relation)
/**
* Get the results of the relationship.
*
* @return mixed
* @return EntityCollection
*/
public function getEager()
{
Expand Down Expand Up @@ -152,7 +152,7 @@ protected function getResultsByType($type)
* Gather all of the foreign keys for a given type.
*
* @param string $type
* @return array
* @return BaseCollection
*/
protected function gatherKeysByType($type)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Relationships/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function getQuery()
/**
* Get the base query builder
*
* @return \Illuminate\Database\Query\Builder
* @return \Analogue\ORM\Drivers\QueryAdapter
*/
public function getBaseQuery()
{
Expand Down
3 changes: 2 additions & 1 deletion src/System/Aggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ protected function parseSingleRelationship($relation)
* Check if value isn't parent or root in the aggregate
*
* @param mixed
* @return true|void
* @return boolean|null
*/
protected function isParentOrRoot($value)
{
Expand Down Expand Up @@ -295,6 +295,7 @@ protected function createSubAggregates($entities, $relation)
* Create a related subAggregate
*
* @param mixed $entity
* @param string $relation
* @return self
*/
protected function createSubAggregate($entity, $relation)
Expand Down
2 changes: 1 addition & 1 deletion src/System/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function storeEntity($entity)
*/
protected function aggregate($entity)
{
return new Aggregate($entity);
return new Aggregate($entity);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/System/Proxies/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function isLoaded()
/**
* Return the Query Builder on the relation
*
* @param mixed $entity
* @param \Analogue\ORM\System\InternallyMappable $entity
* @param string $relation
* @return \Analogue\ORM\System\Query
*/
Expand Down

0 comments on commit 0d3c2e6

Please sign in to comment.