uawdijnntqw1x1x1
IP : 216.73.217.31
Hostname : webm015.cluster127.gra.hosting.ovh.net
Kernel : Linux webm015.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
pteabiscqq
/
.
/
www
/
libraries
/
.
/
quix
/
.
/
src
/
.
/
Config
/
FinalTransformer.php
/
/
<?php namespace ThemeXpert\Config; class FinalTransformer { /** * Final transformation. * * @param $configs * * @return array */ public function transform($configs) { return array_values(array_reduce($configs, function ($carry, $config) { $slug = $config['slug']; if (array_key_exists($slug, $carry)) { $form = $this->form($carry[$slug]['form'], $config['form']); $carry[$slug]['form'] = $form; if (file_exists($config['view_file'])) { $carry[$slug]['view_file'] = $config['view_file']; } if (file_exists($config['thumb_file'])) { $carry[$slug]['thumb_file'] = $config['thumb_file']; } if (file_exists($config['css_file'])) { $carry[$slug]['css_file'] = $config['css_file']; } if (file_exists($config['dynamic_style_file'])) { $carry[$slug]['dynamic_style_file'] = $config['dynamic_style_file']; } } else { $carry[$slug] = $config; } return $carry; }, [])); } /** * Transform form. * * @param $form * @param $appendForm * * @return array */ public function form($form, $appendForm) { $formControls = flatten_array($form); # If there is something in the config file then add it to the append file foreach ($appendForm as $tab => $controls) { if (array_key_exists($tab, $form)) { $tabControls = $form[$tab]; $controls = array_reduce($controls, function ($carry, $control) use ($formControls) { if (array_find_by($formControls, 'name', $control['name'])) { return $carry; } $carry[] = $control; return $carry; }, []); $appendForm[$tab] = array_merge($tabControls, $controls); } } # Merge all $form = array_merge($form, $appendForm); return $form; } }
/home/pteabiscqq/./www/libraries/./quix/./src/./Config/FinalTransformer.php