Commit 45493a27 authored by Marco Schmiedel's avatar Marco Schmiedel

fix tpl generator

parent 336a09ca
......@@ -10,7 +10,7 @@
| sidekick package.
|
| Author: Marco Schmiedel <marco.schmiedel@itmax.email>
| Date: 2021-12-23 21:21:03
| Date: 2022-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', 'String' => $fullResult[0][0][0]];
$informations[$result[1].'2'] = ['Offset' => $result[1], 'type' => 'start', 'string' => $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', 'String' => $fullResult[0][0][0]];
$informations[$result[1].'1'] = ['Offset' => $result[1], 'type' => 'stop', 'string' => $fullResult[0][0][0]];
}
/*
......@@ -891,13 +891,13 @@
|------------------------------------------------------------------------------------
| detect start
*/
if($information['Type'] == 'start')
if($information['type'] == 'start')
{
/*
|--------------------------------------------------------------------------------
| fill buffer
*/
$puffer = $information['String'];
$puffer = $information['string'];
}
/*
......@@ -910,7 +910,7 @@
|--------------------------------------------------------------------------------
| save result
*/
$result[] = substr($puffer, 0, (strlen( $information['String'])*-1 ) );
$result[] = substr($puffer, 0, (strlen( $information['string'])*-1 ) );
/*
|--------------------------------------------------------------------------------
......@@ -920,6 +920,15 @@
}
}
/*
|----------------------------------------------------------------------------------------
| Write buffer is there is no stopper...
*/
if(isset($puffer))
{
$result[] = $puffer ;
}
/*
|----------------------------------------------------------------------------------------
| Return the results.
......
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