Skip to content

Commit

Permalink
there is now code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jul 27, 2021
1 parent 1e3fdb3 commit aa467a6
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# phpine-tree
An instant cure to Code Smell

## Purpose
Just as the accusation of code smell is stupid and pointless, so is this library.
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "dcarbone/phpine-tree",
"authors": [
{
"name": "Daniel Carbone",
"email": "daniel.p.carbone@gmaail.com",
"homepage": "https://github.com/dcarbone"
}
],
"license": "unlicense",
"autoload": {
"psr-4": {
"PHPinTree\\": "thecodegoeshere"
}
},
"require": {
"php": ">=7.4"
}
}
51 changes: 51 additions & 0 deletions thecodegoeshere/PineTree.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php declare(strict_types=1);

namespace PHPineTree;

/**
* Class PineTree
* @package PHPineTree
*/
class PineTree
{
private const THE_TREE = <<<EOT
____
/ \
| |
\____|
|
v
>X<
A
d\$b
.d\$\$b.
.d\$i$$\$\$b.
d$$@b
d\$$\$ib
.d$$$\$$\$b
.d$$@$$$$\$\$ib.
d$\$i$\$b
d\$$$$@\$b
.d$@$$\$$$$$@b.
.d$$$\$i$$$\$$$$$\$b.
###
###
### mh
EOT;

/**
*
*/
public function echo(): void
{
echo self::THE_TREE;
}

/**
* @return string
*/
public function return(): string
{
return self::THE_TREE;
}
}

0 comments on commit aa467a6

Please sign in to comment.