@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $tmp_slug = $this->generateSlug($string, "-"); |
| 25 | 25 | |
| 26 | 26 | $count = $this->chinese_slug->getCountOfMatchingSlugs($table, $column, $tmp_slug); |
| 27 | - if($count > 0) { |
|
| 27 | + if ($count > 0) { |
|
| 28 | 28 | $tmp_slug = sprintf("%s%s%s", $tmp_slug, $separator, ($count + 1)); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -8,6 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function getCountOfMatchingSlugs($table, $column, $slug) |
| 10 | 10 | { |
| 11 | - return DB::table($table)->where($column, 'LIKE', $slug.'%')->count(); |
|
| 11 | + return DB::table($table)->where($column, 'LIKE', $slug . '%')->count(); |
|
| 12 | 12 | } |
| 13 | 13 | } |