Skip to content

Commit 3eff3e2

Browse files
authored
Merge pull request #4 from BreadTeleporter/breadtf-v1.1.1
Made functions that should be private, private
2 parents cdfa5a9 + 21c3a2a commit 3eff3e2

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

index.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<?php
22

3-
require_once('vendor/autoload.php');
3+
#require_once('vendor/autoload.php');
4+
5+
# uhhh sure lets do this instead cuz above wont work
6+
# thanks php
7+
require_once("src/uwurandom.php");
48

59
$uwurandom = new Breadtf\Uwurandom\uwurandom();
610

11+
12+
713
$uwu = $uwurandom -> generate(500);
814

915
echo "\n\n" . $uwu . "\n\n";
@@ -14,4 +20,4 @@
1420

1521
echo "\n\n" . $uwusoftmax . "\n\n";
1622
echo strlen($uwusoftmax);
17-
?>
23+
?>

src/uwurandom.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class uwurandom
1313
{
1414

15-
const version = "1.1.0";
15+
public const version = "1.1.0";
1616

17-
public function uwu_nonsense($length)
17+
private function uwu_nonsense($length)
1818
{
1919
$out = [];
2020
for ($x = 0; $x <= $length / 2; $x++) {
@@ -24,25 +24,25 @@ public function uwu_nonsense($length)
2424
return str_replace(" ", "", implode(" ", $out));
2525
}
2626

27-
public function uwu_nya($length)
27+
private function uwu_nya($length)
2828
{
2929
return "ny" . str_repeat("a", $length);
3030
}
3131

32-
public function uwu_blush($length)
32+
private function uwu_blush($length)
3333
{
3434
return ">" . str_repeat("/", $length) . "<";
3535
}
3636

37-
public function uwu_action($rand)
37+
private function uwu_action($rand)
3838
{
3939
if ($rand == 12) {
4040
$rand = 11;
4141
}
4242
return $GLOBALS["actions"][$rand];
4343
}
4444

45-
public function uwu_keysmash($length)
45+
private function uwu_keysmash($length)
4646
{
4747
$out = [];
4848
for ($x = 0; $x <= $length; $x++) {
@@ -53,7 +53,7 @@ public function uwu_keysmash($length)
5353
return str_replace(" ", "", implode(" ", $out));
5454
}
5555

56-
public function uwu_scrunkly($length)
56+
private function uwu_scrunkly($length)
5757
{
5858
return "aw " . $this->uwu_keysmash($length - 3);
5959
}

0 commit comments

Comments
 (0)