Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
nerijuszaniauskas committed Feb 13, 2024
1 parent e378abd commit 5bd79cd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions omnisend/includes/Internal/V1/class-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

namespace Omnisend\Internal\V1;

use Omnisend\Sdk\V1\Contact;
use Omnisend\Sdk\V1\CreateContactResponse;
use Omnisend\SDK\V1\Contact;
use Omnisend\SDK\V1\CreateContactResponse;
use WP_Error;

defined( 'ABSPATH' ) || die( 'no direct access' );

class Client implements \Omnisend\Sdk\V1\Client {
class Client implements \Omnisend\SDK\V1\Client {

private string $api_key;
private string $plugin_name;
Expand All @@ -37,7 +37,7 @@ public function create_contact( $contact ): CreateContactResponse {
if ( $contact instanceof Contact ) {
$error->merge_from( $contact->validate() );
} else {
$error->add( 'contact', 'Contact is not instance of Omnisend\Sdk\V1\Contact.' );
$error->add( 'contact', 'Contact is not instance of Omnisend\SDK\V1\Contact.' );
}

$error->merge_from( $this->check_setup() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package OmnisendClient
*/

namespace Omnisend\Sdk\V1;
namespace Omnisend\SDK\V1;

use WP_Error;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package OmnisendClient
*/

namespace Omnisend\Sdk\V1;
namespace Omnisend\SDK\V1;

use Omnisend\Internal\Utils;
use WP_Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package OmnisendClient
*/

namespace Omnisend\Sdk\V1;
namespace Omnisend\SDK\V1;

use WP_Error;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package OmnisendClient
*/

namespace Omnisend\Sdk\V1;
namespace Omnisend\SDK\V1;

use Omnisend\Internal\Options;

Expand Down

0 comments on commit 5bd79cd

Please sign in to comment.