@@ -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 | } |
@@ -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) |