Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aryala7 authored and github-actions[bot] committed Nov 23, 2023
1 parent 7eac90a commit 18127b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/EventServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace TookanTech\Chapaar;

use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

use TookanTech\Chapaar\Events\SmsSent;
use TookanTech\Chapaar\Events\StoreSmsMessage;

Expand Down
4 changes: 3 additions & 1 deletion src/Events/SmsSent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class SmsSent
use Dispatchable, InteractsWithSockets, SerializesModels;

public $provider;

public $recipientNumber;

public $message;

public function __construct($provider, $recipientNumber, $message)
Expand All @@ -20,4 +22,4 @@ public function __construct($provider, $recipientNumber, $message)
$this->recipientNumber = $recipientNumber;
$this->message = $message;
}
}
}
6 changes: 2 additions & 4 deletions src/Listeners/StoreSmsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace TookanTech\Chapaar\Events;

use TookanTech\Chapaar\Events\SmsSent;
use TookanTech\Chapaar\Models\SmsMessage;
use Illuminate\Contracts\Queue\ShouldQueue;

use TookanTech\Chapaar\Models\SmsMessage;

class StoreSmsMessage implements ShouldQueue
{
Expand All @@ -17,4 +15,4 @@ public function handle(SmsSent $event)
$smsMessage->message = $event->message;
$smsMessage->save();
}
}
}
3 changes: 1 addition & 2 deletions src/Models/SmsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

use Illuminate\Database\Eloquent\Model;

class SmsMessage extends Model
class SmsMessage extends Model
{

protected $fillable = [
'provider',
'recipient_number',
Expand Down

0 comments on commit 18127b5

Please sign in to comment.