Commit 390e32b2 authored by Marco Schmiedel's avatar Marco Schmiedel

validation stage 1

parent 7cc44f02
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
| sidekick package. | sidekick package.
| |
| Author: Marco Schmiedel <marco.schmiedel@itmax.email> | Author: Marco Schmiedel <marco.schmiedel@itmax.email>
| Date: 2021-12-20 15:21:14 | Date: 2021-12-20 15:38:03
| |
*/ */
namespace Ceetrox\Managers\TerminalManager; namespace Ceetrox\Managers\TerminalManager;
...@@ -79,25 +79,25 @@ ...@@ -79,25 +79,25 @@
{ {
/* /*
|---------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------
| Create an empty string for all upcoming colors... | Create an empty string for all upcoming colors.
*/ */
$text = "\n"; $text = "\n";
/* /*
|---------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------
| Create counter value... | Create the counter value.
*/ */
$i1=16; $i1=16;
/* /*
|---------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------
| Loop counter value within the color range... | Loop counter value within the color range.
*/ */
while ( $i1 < 52 ) while ( $i1 < 52 )
{ {
/* /*
|------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------
| Calculate 7 columns per line... | Calculate 7 columns per line.
*/ */
$i1=$i1; $i1=$i1;
$i2=$i1+36; $i2=$i1+36;
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
/* /*
|------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------
| Calculate for bright and dark... | Calculate output for bright and dark colors.
*/ */
$text .= TerminalManager::darkColor(" D".str_pad($i1, 3, "0", STR_PAD_LEFT)." ",$i1); $text .= TerminalManager::darkColor(" D".str_pad($i1, 3, "0", STR_PAD_LEFT)." ",$i1);
$text .= TerminalManager::darkColor(" D".str_pad($i2, 3, "0", STR_PAD_LEFT)." ",$i2); $text .= TerminalManager::darkColor(" D".str_pad($i2, 3, "0", STR_PAD_LEFT)." ",$i2);
...@@ -130,17 +130,21 @@ ...@@ -130,17 +130,21 @@
/* /*
|------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------
| Add linebreak... | Add break at the end of the line.
*/ */
$text .= "\n"; $text .= "\n";
/* /*
|------------------------------------------------------------------------------------ |------------------------------------------------------------------------------------
| Add value to counter... | Increase value to the line counter.
*/ */
$i1 += 1; $i1 += 1;
} }
/*
|----------------------------------------------------------------------------------------
| Return string for terminal output.
*/
return $text; return $text;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment