Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: linting test updated #1367

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/Webkul/Activity/src/Traits/LogsActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ protected static function booted(): void
dd($model);
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function registerFacades(): void
$loader->alias('Bouncer', \Webkul\Admin\Facades\Bouncer::class);

$this->app->singleton('bouncer', function () {
return new \Webkul\Admin\Bouncer();
return new \Webkul\Admin\Bouncer;
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/Webkul/Automation/src/Services/WebhookService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class WebhookService
*/
public function __construct(protected PersonRepository $personRepository)
{
$this->client = new Client();
$this->client = new Client;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function create(array $data)
public function update(array $data, $id, $attribute = 'id')
{
$data['user_id'] = $data['user_id'] ?: null;

$organization = parent::update($data, $id);

$this->attributeValueRepository->save($data, $id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function model()
public function create(array $data)
{
$data['user_id'] = $data['user_id'] ?: null;

$person = parent::create($data);

$this->attributeValueRepository->save($data, $person->id);
Expand Down
2 changes: 1 addition & 1 deletion packages/Webkul/Email/src/Helpers/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Parser
public function __construct(?CharsetManager $charset = null)
{
if (is_null($charset)) {
$charset = new Charset();
$charset = new Charset;
}

$this->charset = $charset;
Expand Down
2 changes: 1 addition & 1 deletion packages/Webkul/Installer/src/Events/ComposerEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ComposerEvents
*/
public static function postCreateProject()
{
$output = new ConsoleOutput();
$output = new ConsoleOutput;

$output->writeln(file_get_contents(__DIR__.'/../Templates/on-boarding.php'));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/Webkul/Installer/src/Listeners/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function installed()
{
$user = $this->userRepository->first();

$httpClient = new Client();
$httpClient = new Client;

try {
$httpClient->request('POST', self::API_ENDPOINT, [
Expand Down
Loading