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
45493a27
Commit
45493a27
authored
Jan 03, 2022
by
Marco Schmiedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tpl generator
parent
336a09ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
BeautifyManager.php
src/Managers/BeautifyManager/BeautifyManager.php
+15
-6
No files found.
src/Managers/BeautifyManager/BeautifyManager.php
View file @
45493a27
...
...
@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
| Date: 202
1-12-23 21:21:03
| Date: 202
2-01-03 12:58:07
|
*/
namespace
Ceetrox\Managers\BeautifyManager
;
...
...
@@ -849,7 +849,7 @@
foreach
(
$startResults
[
0
]
as
$result
)
{
preg_match_all
(
'/.*/s'
,
$string
,
$fullResult
,
PREG_OFFSET_CAPTURE
,
$result
[
1
]);
$informations
[
$result
[
1
]
.
'2'
]
=
[
'Offset'
=>
$result
[
1
],
'
Type'
=>
'start'
,
'S
tring'
=>
$fullResult
[
0
][
0
][
0
]];
$informations
[
$result
[
1
]
.
'2'
]
=
[
'Offset'
=>
$result
[
1
],
'
type'
=>
'start'
,
's
tring'
=>
$fullResult
[
0
][
0
][
0
]];
}
/*
...
...
@@ -866,7 +866,7 @@
foreach
(
$stopResults
[
0
]
as
$result
)
{
preg_match_all
(
'/.*/s'
,
$string
,
$fullResult
,
PREG_OFFSET_CAPTURE
,
$result
[
1
]);
$informations
[
$result
[
1
]
.
'1'
]
=
[
'Offset'
=>
$result
[
1
],
'
Type'
=>
'stop'
,
'S
tring'
=>
$fullResult
[
0
][
0
][
0
]];
$informations
[
$result
[
1
]
.
'1'
]
=
[
'Offset'
=>
$result
[
1
],
'
type'
=>
'stop'
,
's
tring'
=>
$fullResult
[
0
][
0
][
0
]];
}
/*
...
...
@@ -891,13 +891,13 @@
|------------------------------------------------------------------------------------
| detect start
*/
if
(
$information
[
'
T
ype'
]
==
'start'
)
if
(
$information
[
'
t
ype'
]
==
'start'
)
{
/*
|--------------------------------------------------------------------------------
| fill buffer
*/
$puffer
=
$information
[
'
S
tring'
];
$puffer
=
$information
[
'
s
tring'
];
}
/*
...
...
@@ -910,7 +910,7 @@
|--------------------------------------------------------------------------------
| save result
*/
$result
[]
=
substr
(
$puffer
,
0
,
(
strlen
(
$information
[
'
S
tring'
])
*-
1
)
);
$result
[]
=
substr
(
$puffer
,
0
,
(
strlen
(
$information
[
'
s
tring'
])
*-
1
)
);
/*
|--------------------------------------------------------------------------------
...
...
@@ -920,6 +920,15 @@
}
}
/*
|----------------------------------------------------------------------------------------
| Write buffer is there is no stopper...
*/
if
(
isset
(
$puffer
))
{
$result
[]
=
$puffer
;
}
/*
|----------------------------------------------------------------------------------------
| Return the results.
...
...
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