Apply fixes from StyleCI
This commit is contained in:
parent
9336b358de
commit
dba4c14e5c
3 changed files with 2 additions and 3 deletions
|
@ -22,7 +22,7 @@ class Bookmark extends Model
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The full url of a bookmark
|
* The full url of a bookmark.
|
||||||
*/
|
*/
|
||||||
public function getLongurlAttribute()
|
public function getLongurlAttribute()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,7 +6,6 @@ use App\Bookmark;
|
||||||
use Ramsey\Uuid\Uuid;
|
use Ramsey\Uuid\Uuid;
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Spatie\Image\Manipulations;
|
|
||||||
use Spatie\Browsershot\Browsershot;
|
use Spatie\Browsershot\Browsershot;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
|
|
|
@ -44,7 +44,7 @@ class BookmarkService
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
foreach((array) $categories as $category) {
|
foreach ((array) $categories as $category) {
|
||||||
$tag = Tag::firstOrCreate(['tag' => $category]);
|
$tag = Tag::firstOrCreate(['tag' => $category]);
|
||||||
$bookmark->tags()->save($tag);
|
$bookmark->tags()->save($tag);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue