Skip to content

Commit

Permalink
Merge pull request #6 from cesargb/analysis-ajjeK7
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
cesargb authored Jan 6, 2020
2 parents abdc368 + b1bc677 commit 34e7499
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Morph.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Morph
{
/**
* Get the classes that use the trait CascadeDelete
* Get the classes that use the trait CascadeDelete.
*
* @return \Illuminate\Database\Eloquent\Model[]
*/
Expand All @@ -24,7 +24,7 @@ function ($modelName) {
}

/**
* Delete polymorphic relationships of the single records from Model
* Delete polymorphic relationships of the single records from Model.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @return void
Expand Down Expand Up @@ -52,7 +52,7 @@ public static function cleanResidualMorphRelations()
}

/**
* Clean residual polymorphic relationships from a Model
* Clean residual polymorphic relationships from a Model.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @return int Num rows was deleted
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function cleanResidualMorphRelationsFromModel($model)
}

/**
* Clean residual for a Table
* Clean residual for a Table.
*
* @param string $table Table with morph relation
* @param string $fieldType Field defined for Morph Type
Expand Down Expand Up @@ -124,7 +124,7 @@ protected static function cleanResidual($table, $fieldType, $fieldId)
}

/**
* Get the classes names that use the trait CascadeDelete
* Get the classes names that use the trait CascadeDelete.
*
* @return array
*/
Expand All @@ -142,7 +142,7 @@ class_uses($class)
}

/**
* Fetch polymorphic relationships from a Model
* Fetch polymorphic relationships from a Model.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @return array
Expand All @@ -163,7 +163,7 @@ function ($relation) {
}

/**
* Verify if method of a Model return a polymorphic relationship
* Verify if method of a Model return a polymorphic relationship.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $methodName
Expand All @@ -177,7 +177,7 @@ protected static function methodReturnedMorphRelation($model, $methodName)
}

/**
* Verify if a object is a instance of a polymorphic relationship
* Verify if a object is a instance of a polymorphic relationship.
*
* @param mixed $relation
* @return bool
Expand Down

0 comments on commit 34e7499

Please sign in to comment.