@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Get similar slugs |
| 38 | - * @param $slug |
|
| 38 | + * @param string $slug |
|
| 39 | 39 | * @param $id |
| 40 | 40 | * @return mixed |
| 41 | 41 | */ |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $i = 1; |
| 24 | 24 | |
| 25 | 25 | while ($completed == false) { |
| 26 | - $newSlug = $slug .'-'.$i; |
|
| 26 | + $newSlug = $slug.'-'.$i; |
|
| 27 | 27 | if (!$relatedSlugs->contains('slug', $newSlug)) { |
| 28 | 28 | return $newSlug; |
| 29 | 29 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | //@TODO implement google or s3 cloud storage support |
| 16 | 16 | //if (config('filesystems.default') == 'google') { |
| 17 | - // $this->media_path = Storage::disk()->getDriver()->getAdapter()->getStorageApiUri() . '/' . Storage::disk()->getDriver()->getAdapter()->getBucket()->name(); |
|
| 17 | + // $this->media_path = Storage::disk()->getDriver()->getAdapter()->getStorageApiUri() . '/' . Storage::disk()->getDriver()->getAdapter()->getBucket()->name(); |
|
| 18 | 18 | //} else { |
| 19 | 19 | //$this->media_path = Storage::disk()->getDriver()->getAdapter()->getPathPrefix(); |
| 20 | 20 | //} |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $format = $this->chooseFormat($format); |
| 53 | 53 | |
| 54 | - return '<img src="'.$this->getCachedImageUrl($format, $image->name).'" alt="'.$image->description.'" '.$attributes. '>'; |
|
| 54 | + return '<img src="'.$this->getCachedImageUrl($format, $image->name).'" alt="'.$image->description.'" '.$attributes.'>'; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | protected function chooseFormat($format) |