using static instead of self

renaming `internalCreateOrUpdate` to `_createOrUpdate`
renaming `$conditions` to `$keys`
adding block comment for `_createOrUpdate` method.
This commit is contained in:
Amine Ben hammou
2018-02-11 21:04:56 +00:00
parent 91622f8cd9
commit b076e03a75
11 changed files with 30 additions and 26 deletions

View File

@@ -219,10 +219,6 @@ class Segment extends Model {
return $query;
}
static function createOrUpdate($data = array()) {
return parent::internalCreateOrUpdate($data);
}
static function getPublic() {
return self::getPublished()->where('type', self::TYPE_DEFAULT)->orderByAsc('name');
}