Skip to content

Commit 718553c

Browse files
committed
Clean comments and logs
1 parent f157953 commit 718553c

1 file changed

Lines changed: 0 additions & 55 deletions

File tree

‎ProcessMaker/SanitizeHelper.php‎

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ public static function sanitizeData($data, $task)
109109

110110
private static function sanitizeWithExceptions(Array $data, Array $except, $parent = null)
111111
{
112-
print_r($except);
113112
foreach ($data as $key => $value) {
114113
if (!is_int($key)) {
115114
$searchKey = ($parent ? $parent . '.' . $key : $key);
@@ -121,8 +120,6 @@ private static function sanitizeWithExceptions(Array $data, Array $except, $pare
121120
} else {
122121
// Only allow skipping on top-level data for now
123122
$strip_tags = !in_array($searchKey, $except);
124-
echo $searchKey;
125-
echo $strip_tags;
126123
$data[$key] = self::sanitize($value, $strip_tags);
127124
}
128125
}
@@ -146,7 +143,6 @@ private static function getExceptions($screen)
146143

147144
private static function getRichTextElements($items, $parent = null)
148145
{
149-
//"loop_1.loop_2.form_text_area_2"
150146
$elements = [];
151147

152148
foreach ($items as $item) {
@@ -163,57 +159,6 @@ private static function getRichTextElements($items, $parent = null)
163159
}
164160
}
165161

166-
// foreach ($items as $item) {
167-
// if (isset($item['items']) && is_array($item['items'])) {
168-
// foreach ($item['items'] as $cell) {
169-
// if ($item['component'] == 'FormLoop') {
170-
// // $path = ($parent ? $parent . '.' . $cell['config']['name'] : $item['config']['name']);
171-
// $elements = array_merge($elements, self::getRichTextElements($cell, $item['config']['name']));
172-
// } else if (
173-
// isset($cell['component']) &&
174-
// $cell['component'] === 'FormTextArea' &&
175-
// isset($cell['config']['richtext']) &&
176-
// $cell['config']['richtext'] === true
177-
// ) {
178-
// // \Log::info($path);
179-
// $elements[] = $parent . '.' . $cell['config']['name'];
180-
// }
181-
// }
182-
// }
183-
// }
184-
185-
// foreach ($items as $item) {
186-
// if (isset($item['items']) && is_array($item['items'])) {
187-
// // Inside a table
188-
// foreach ($item['items'] as $cell) {
189-
// if($item['component'] == 'FormLoop') {
190-
// // $path = ($path ? $path . '.' . $cell['config']['name'] : $item['config']['name']);
191-
// $elements = array_merge($elements, self::getRichTextElements($cell, $item));
192-
// }
193-
// if (
194-
// isset($cell['component']) &&
195-
// $cell['component'] === 'FormTextArea' &&
196-
// isset($cell['config']['richtext']) &&
197-
// $cell['config']['richtext'] === true
198-
// ) {
199-
// // \Log::info($path);
200-
// $elements[] = $path;
201-
// }
202-
// if (is_array($cell)) {
203-
// $elements = array_merge($elements, self::getRichTextElements($cell));
204-
// }
205-
// }
206-
// } else {
207-
// if (
208-
// isset($item['component']) &&
209-
// $item['component'] === 'FormTextArea' &&
210-
// isset($item['config']['richtext']) &&
211-
// $item['config']['richtext'] === true
212-
// ) {
213-
// $elements[] = $item['config']['name'];
214-
// }
215-
// }
216-
// }
217162
return $elements;
218163
}
219164

0 commit comments

Comments
 (0)