| @@ -1,13 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace IvyForms\Services\API; |
| 4 | 4 | |
| 5 | -// phpcs:disable PSR1.Files.SideEffects | |
| 6 | -if (!defined('ABSPATH')) { | |
| 7 | - exit; // Exit if accessed directly | |
| 8 | -} | |
| 9 | - | |
| 10 | 5 | use Exception; |
| 11 | 6 | use IvyForms\Factory\Form\FormFactory; |
| 12 | 7 | use IvyForms\Services\Confirmation\ConfirmationService; |
| 13 | 8 | use IvyForms\Services\Entry\EntryService; |
| @@ -338,10 +333,8 @@ | ||
| 338 | 333 | } |
| 339 | 334 | return self::getInstance()->notificationService->getNotificationsByFormId($formId); |
| 340 | 335 | }); |
| 341 | 336 | } |
| 342 | - | |
| 343 | - | |
| 344 | 337 | /** |
| 345 | 338 | * Get all field options for a field |
| 346 | 339 | * |
| 347 | 340 | * @param int $fieldId |
| @@ -432,10 +425,8 @@ | ||
| 432 | 425 | $allForms = self::getInstance()->formService->getAllForms(); |
| 433 | 426 | return self::filterFormsWithIntegration($allForms, $integration); |
| 434 | 427 | }); |
| 435 | 428 | } |
| 436 | - | |
| 437 | - | |
| 438 | 429 | /** |
| 439 | 430 | * Check if a specific form has an integration enabled |
| 440 | 431 | * |
| 441 | 432 | * @param int $formId |