use correct namespace

This commit is contained in:
Marc Michalsky 2023-10-16 15:00:47 +02:00 committed by Jens Schuppe
parent 1875861735
commit b0d5bdefa5
5 changed files with 6 additions and 8 deletions

View file

@ -16,8 +16,7 @@
declare(strict_types = 1);
use CRM_Twingle_ExtensionUtil as E;
use CRM\Twingle\Exceptions\ProfileException as ProfileException;
use CRM\Twingle\Exceptions\ProfileValidationError as ProfileValidationError;
use Civi\Twingle\Exceptions\ProfileException as ProfileException;
/**
* Form controller class
@ -560,7 +559,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
E::ts('Could not parse custom field mapping.')
);
}
list($twingle_field_name, $custom_field_name) = $custom_field_map;
[$twingle_field_name, $custom_field_name] = $custom_field_map;
$custom_field_id = substr($custom_field_name, strlen('custom_'));
// Check for custom field existence

View file

@ -16,8 +16,7 @@
declare(strict_types = 1);
use CRM_Twingle_ExtensionUtil as E;
use CRM\Twingle\Exceptions\ProfileException as ProfileException;
use CRM\Twingle\Exceptions\ProfileValidationError as ProfileValidationError;
use Civi\Twingle\Exceptions\ProfileException as ProfileException;
/**
* Profiles define how incoming submissions from the Twingle API are

View file

@ -1,6 +1,6 @@
<?php
namespace CRM\Twingle\Exceptions;
namespace Civi\Twingle\Exceptions;
use CRM_Twingle_ExtensionUtil as E;

View file

@ -1,6 +1,6 @@
<?php
namespace CRM\Twingle\Exceptions;
namespace Civi\Twingle\Exceptions;
/**
* A simple custom exception that indicates a problem within the

View file

@ -1,6 +1,6 @@
<?php
namespace CRM\Twingle\Exceptions;
namespace Civi\Twingle\Exceptions;
/**
* A simple custom error indicating a problem with the validation of the