Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
fe26e9f0
Commit
fe26e9f0
authored
Dec 23, 2021
by
Marco Schmiedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish stage 1
parent
390e32b2
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1111 additions
and
1048 deletions
+1111
-1048
.gitignore
src/Commands/CodebeautifierCommand/.gitignore
+1
-0
CodebeautifierCommand.php
src/Commands/CodebeautifierCommand/CodebeautifierCommand.php
+16
-1033
BeautifyManager.php
src/Managers/BeautifyManager/BeautifyManager.php
+1055
-0
Template.tpl
src/Managers/BeautifyManager/Template.tpl
+0
-0
TerminalManager.php
src/Managers/TerminalManager/TerminalManager.php
+39
-15
No files found.
src/Commands/CodebeautifierCommand/.gitignore
0 → 100644
View file @
fe26e9f0
BACKUP_*
src/Commands/CodebeautifierCommand/CodebeautifierCommand.php
View file @
fe26e9f0
This diff is collapsed.
Click to expand it.
src/Managers/BeautifyManager/BeautifyManager.php
0 → 100644
View file @
fe26e9f0
This diff is collapsed.
Click to expand it.
src/
Commands/CodebeautifierCommand
/Template.tpl
→
src/
Managers/BeautifyManager
/Template.tpl
View file @
fe26e9f0
File moved
src/Managers/TerminalManager/TerminalManager.php
View file @
fe26e9f0
...
@@ -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-2
0 15:38:03
| Date: 2021-12-2
3 19:51:17
|
|
*/
*/
namespace
Ceetrox\Managers\TerminalManager
;
namespace
Ceetrox\Managers\TerminalManager
;
...
@@ -43,6 +43,30 @@
...
@@ -43,6 +43,30 @@
}
}
/*
|--------------------------------------------------------------------------------------------
| Method "brightYellow"
|--------------------------------------------------------------------------------------------
*/
static
function
brightYellow
(
$text
)
{
return
TerminalManager
::
brightColor
(
$text
,
11
);
}
/*
|--------------------------------------------------------------------------------------------
| Method "darkWhite"
|--------------------------------------------------------------------------------------------
*/
static
function
darkWhite
(
$text
)
{
return
TerminalManager
::
darkColor
(
$text
,
15
);
}
/*
/*
|--------------------------------------------------------------------------------------------
|--------------------------------------------------------------------------------------------
| Method "darkColor"
| Method "darkColor"
...
@@ -85,9 +109,9 @@
...
@@ -85,9 +109,9 @@
/*
/*
|----------------------------------------------------------------------------------------
|----------------------------------------------------------------------------------------
| Create
the
counter value.
| Create
a
counter value.
*/
*/
$i1
=
16
;
$i1
=
16
;
/*
/*
|----------------------------------------------------------------------------------------
|----------------------------------------------------------------------------------------
...
@@ -97,15 +121,15 @@
...
@@ -97,15 +121,15 @@
{
{
/*
/*
|------------------------------------------------------------------------------------
|------------------------------------------------------------------------------------
| Calculate 7 columns per line.
| Calculate 7 col
or col
umns per line.
*/
*/
$i1
=
$i1
;
$i1
=
$i1
;
$i2
=
$i1
+
36
;
$i2
=
$i1
+
36
;
$i3
=
$i2
+
36
;
$i3
=
$i2
+
36
;
$i4
=
$i3
+
36
;
$i4
=
$i3
+
36
;
$i5
=
$i4
+
36
;
$i5
=
$i4
+
36
;
$i6
=
$i5
+
36
;
$i6
=
$i5
+
36
;
$i7
=
$i6
+
36
;
$i7
=
$i6
+
36
;
if
(
$i7
>
250
)
{
$i7
=
$i7
-
251
;
}
if
(
$i7
>
250
)
{
$i7
=
$i7
-
251
;
}
...
@@ -130,20 +154,20 @@
...
@@ -130,20 +154,20 @@
/*
/*
|------------------------------------------------------------------------------------
|------------------------------------------------------------------------------------
| Add break at the end of
the
line.
| Add break at the end of
each
line.
*/
*/
$text
.=
"
\n
"
;
$text
.=
"
\n
"
;
/*
/*
|------------------------------------------------------------------------------------
|------------------------------------------------------------------------------------
| Increase value to the
line
counter.
| Increase value to the
color
counter.
*/
*/
$i1
+=
1
;
$i1
+=
1
;
}
}
/*
/*
|----------------------------------------------------------------------------------------
|----------------------------------------------------------------------------------------
| Return string for terminal output.
| Return
a
string for terminal output.
*/
*/
return
$text
;
return
$text
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment