Skip to content

random url#71

Merged
martinsoenen merged 11 commits intoxefi:mainfrom
LixNew2:feature/url
Nov 18, 2025
Merged

random url#71
martinsoenen merged 11 commits intoxefi:mainfrom
LixNew2:feature/url

Conversation

@LixNew2
Copy link
Contributor

@LixNew2 LixNew2 commented Oct 15, 2025

generate random url

closes #70

}
}

return sprintf('http%s://%s%s', $secure ? 's': '', $url, $this->domain());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your function generates URLs from: https://example/second/one.example.com
That's not correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what you mean.

@15g-lucas
Copy link
Contributor

Can you fix style CI here? :)

Copy link
Contributor

@martinsoenen martinsoenen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Geat idea but can be upgraded :)

Comment on lines +59 to +66
$generateLetter = function (): string {
return $this->randomizer->getBytesFromString(
implode(range('a', 'z')),
$this->randomizer->getInt(4, 30)
);
};

$url = $generateLetter();
Copy link
Contributor

@martinsoenen martinsoenen Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is great but please use existing Faker functions like domain()

Copy link
Contributor

@martinsoenen martinsoenen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost perfect ;)

Copy link
Contributor

@martinsoenen martinsoenen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me. @15g-lucas ?

Copy link
Contributor

@15g-lucas 15g-lucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go ! 🚀

@martinsoenen
Copy link
Contributor

Let's go :)

@martinsoenen martinsoenen merged commit a3a1b2f into xefi:main Nov 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Random url

3 participants