Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and github-actions[bot] committed Feb 5, 2024
1 parent 519e644 commit 56fdaa2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/examples/basic_example.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

use Exonet\SecureMessage\Factory;

require __DIR__.'/../../vendor/autoload.php';

// Create the factory.
$secureMessageFactory = new Exonet\SecureMessage\Factory();
$secureMessageFactory = new Factory();
// Set the (application wide) meta key. (Don't use this simple key in production!)
$secureMessageFactory->setMetaKey('0123456789');

Expand Down
5 changes: 3 additions & 2 deletions src/Laravel/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Exonet\SecureMessage\Exceptions\DecryptException;
use Exonet\SecureMessage\Exceptions\ExpiredException;
use Exonet\SecureMessage\Exceptions\HitPointLimitReachedException;
use Exonet\SecureMessage\Exceptions\InvalidKeyLengthException;
use Exonet\SecureMessage\Factory as SecureMessageFactory;
use Exonet\SecureMessage\Laravel\Database\SecureMessage as SecureMessageModel;
use Exonet\SecureMessage\Laravel\Events\DecryptionFailed;
Expand Down Expand Up @@ -53,8 +54,8 @@ class Factory
* @param Config $config The Laravel configuration instance.
* @param Event $event The Laravel event dispatcher instance.
*
* @throws \Exonet\SecureMessage\Exceptions\InvalidKeyLengthException If the specified meta key isn't
* exactly 10 characters.
* @throws InvalidKeyLengthException If the specified meta key isn't
* exactly 10 characters.
*/
public function __construct(
SecureMessageFactory $secureMessageFactory,
Expand Down

0 comments on commit 56fdaa2

Please sign in to comment.