@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return mixed |
|
114 | + * @return Collection |
|
115 | 115 | */ |
116 | 116 | public function content() |
117 | 117 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Checks if the content contains the specified item |
137 | 137 | * |
138 | 138 | * @param string $key |
139 | - * @return mixed |
|
139 | + * @return boolean |
|
140 | 140 | */ |
141 | 141 | public function has($key) { |
142 | 142 | return $this->content->has($key); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | /** |
164 | 164 | * Determines how this object is converted to JSON |
165 | 165 | * |
166 | - * @return mixed |
|
166 | + * @return Collection |
|
167 | 167 | */ |
168 | 168 | public function jsonSerialize() |
169 | 169 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | 6 | use Illuminate\Support\Facades\Cache; |
7 | -use Riclep\Storyblok\StoryblokFacade as StoryBlok; |
|
8 | 7 | |
9 | 8 | class StoryblokController |
10 | 9 | { |
@@ -50,7 +50,7 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @return array |
|
53 | + * @return string[] |
|
54 | 54 | */ |
55 | 55 | protected function view() { |
56 | 56 | $viewFile = strtolower(subStr(basename(get_class($this)), 0, -4)); |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | |
7 | 7 | use App\Storyblok\DefaultBlock; |
8 | -use Illuminate\Support\Facades\Config; |
|
9 | 8 | use Illuminate\Support\Str; |
10 | 9 | |
11 | 10 | trait ProcessesBlocks |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * Requests the story from the Storyblok API |
30 | 30 | * |
31 | - * @param \Storyblok\Client $storyblok |
|
31 | + * @param \Storyblok\Client $storyblokClient |
|
32 | 32 | * @param $slugOrUuid |
33 | 33 | * @param bool $byUuid |
34 | 34 | * @return array |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Gets the Story by slug |
66 | 66 | * |
67 | 67 | * @param $slug |
68 | - * @return mixed |
|
68 | + * @return RequestsStories |
|
69 | 69 | * @throws Exception |
70 | 70 | */ |
71 | 71 | public function bySlug($slug) |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Gets the story by uuid |
80 | 80 | * |
81 | 81 | * @param $uuid |
82 | - * @return mixed |
|
82 | + * @return RequestsStories |
|
83 | 83 | * @throws Exception |
84 | 84 | */ |
85 | 85 | public function byUuid($uuid) |