Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Emmolo committed Dec 13, 2024
2 parents e31206a + 7a3b60f commit 258b8f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to `laravel-referral-rewriter-tag` will be documented in this file.

## v1.0.2 - 2024-11-05

### What's Changed

* Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/5
* Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/9
* Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/11
* Bump amancevice/setup-code-climate from 1 to 2 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/7
* Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/6
* Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/pull/4

**Full Changelog**: https://github.com/The-3Labs-Team/laravel-referral-rewriter-tag/compare/v1.0.1...v1.0.2

## v1.0.1 - 2023-09-22

### What's Changed
Expand Down
14 changes: 7 additions & 7 deletions src/ReferralRewriterTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ReferralRewriterTag
/**
* Start function
*/
public function rewrite(string $link, ?string $tag, ?string $subtag, string $additionalQuery = null): string
public function rewrite(string $link, ?string $tag, ?string $subtag, ?string $additionalQuery = null): string
{
$this->link = $link;
$this->tag = $tag;
Expand All @@ -35,11 +35,11 @@ public function rewrite(string $link, ?string $tag, ?string $subtag, string $add
*/
public function rewriteAmazonLink(): string
{
if(!$this->tag) {
if (! $this->tag) {
$this->tag = config('referral-rewriter-tag.amazon.tag');
}

if(!$this->subtag) {
if (! $this->subtag) {
$this->subtag = config('referral-rewriter-tag.amazon.subtag');
}

Expand All @@ -51,11 +51,11 @@ public function rewriteAmazonLink(): string
*/
public function rewriteInstantGamingLink(): string
{
if(!$this->tag) {
if (! $this->tag) {
$this->tag = config('referral-rewriter-tag.instantgaming.tag');
}

if(!$this->subtag) {
if (! $this->subtag) {
$this->subtag = config('referral-rewriter-tag.instantgaming.subtag');
}

Expand All @@ -67,11 +67,11 @@ public function rewriteInstantGamingLink(): string
*/
public function rewriteEbayLink(): string
{
if(!$this->tag) {
if (! $this->tag) {
$this->tag = config('referral-rewriter-tag.ebay.tag');
}

if(!$this->subtag) {
if (! $this->subtag) {
$this->subtag = config('referral-rewriter-tag.ebay.subtag');
}

Expand Down

0 comments on commit 258b8f4

Please sign in to comment.