Skip to content

Commit

Permalink
Remove unnecessary constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JSn1nj4 committed Apr 16, 2024
1 parent 7a31adf commit 5d6108a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions app/Console/Commands/GithubEventPullCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,6 @@ class GithubEventPullCommand extends Command
*/
protected $description = 'Fetch events from GitHub\'s events API.';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
Expand All @@ -60,13 +50,13 @@ public function handle(GithubService $github): int

$events = $github->getEvents('JSn1nj4', $this->option('count'));

if($this->option('file')) {
if ($this->option('file')) {
Storage::disk('debug')->put($this->option('file'), $events->toJson());

return self::SUCCESS;
}

if($this->option('debug')) {
if ($this->option('debug')) {
dd($events);
}

Expand Down

0 comments on commit 5d6108a

Please sign in to comment.