PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | app/modules/kit-library/data/repository.php +2 -12 4.1.03.32.2 View file →
@@ -63,10 +63,8 @@
63 63 * @param $id
64 64 * @param array $options
65 65 *
66 66 * @return array|null
67 - *
68 - * @throws WP_Error_Exception If kit is not found.
69 67 */
70 68 public function find( $id, $options = [] ) {
71 69 $options = wp_parse_args( $options, [
72 70 'manifest_included' => true,
@@ -124,10 +122,8 @@
124 122 /**
125 123 * @param $id
126 124 *
127 125 * @return array
128 - *
129 - * @throws WP_Error_Exception If download link retrieval fails or API errors occur.
130 126 */
131 127 public function get_download_link( $id ) {
132 128 $response = $this->api->download_link( $id );
133 129
@@ -141,10 +137,9 @@
141 137 /**
142 138 * @param $id
143 139 *
144 140 * @return array
145 - *
146 - * @throws Error_404 If kit is not found.
141 + * @throws \Exception
147 142 */
148 143 public function add_to_favorites( $id ) {
149 144 $kit = $this->find( $id, [ 'manifest_included' => false ] );
150 145
@@ -162,10 +157,9 @@
162 157 /**
163 158 * @param $id
164 159 *
165 160 * @return array
166 - *
167 - * @throws Error_404 If kit is not found.
161 + * @throws \Exception
168 162 */
169 163 public function remove_from_favorites( $id ) {
170 164 $kit = $this->find( $id, [ 'manifest_included' => false ] );
171 165
@@ -183,10 +177,8 @@
183 177 /**
184 178 * @param bool $force_api_request
185 179 *
186 180 * @return Collection
187 - *
188 - * @throws WP_Error_Exception If kits data retrieval fails.
189 181 */
190 182 private function get_kits_data( $force_api_request = false ) {
191 183 $data = get_transient( static::KITS_CACHE_KEY );
192 184
@@ -224,10 +216,8 @@
224 216 /**
225 217 * @param bool $force_api_request
226 218 *
227 219 * @return Collection
228 - *
229 - * @throws WP_Error_Exception If taxonomies data retrieval fails.
230 220 */
231 221 private function get_taxonomies_data( $force_api_request = false ) {
232 222 $data = get_transient( static::KITS_TAXONOMIES_CACHE_KEY );
233 223