Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from ameliaikeda/analysis-8AgxgG
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
ameliaikeda authored Nov 20, 2017
2 parents 2229304 + bcd829c commit 027d15e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config/monzo.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
'model' => getenv('MONZO_USER_MODEL') ?: 'App\\User',
'user_token' => getenv('MONZO_USER_TOKEN_KEY') ?: 'monzo_user_token',
'token' => getenv('MONZO_WEBHOOK_TOKEN_KEY') ?: 'monzo_webhook_token',
]
],
];
4 changes: 2 additions & 2 deletions src/Events/TransactionCreated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Amelia\Monzo\Events;

use Amelia\Monzo\Contracts\HasMonzoCredentials;
use Amelia\Monzo\Models\Transaction;
use Ramsey\Uuid\Uuid;
use Amelia\Monzo\Models\Transaction;
use Amelia\Monzo\Contracts\HasMonzoCredentials;

class TransactionCreated
{
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers;

use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Http\Request;
use Amelia\Monzo\Models\Transaction;
use Amelia\Monzo\Events\TransactionCreated;
Expand Down Expand Up @@ -71,7 +70,7 @@ protected function findByWebhookToken(string $user, string $token)
$userToken = $user->getAttribute(config('monzo.webhooks.token'));

if (! hash_equals($userToken, $token)) {
logger("Hash equals failed for user: " . $token);
logger('Hash equals failed for user: ' . $token);

abort(404);
}
Expand Down

0 comments on commit 027d15e

Please sign in to comment.