public function handle_html($html_files_data, $project) { $content = new Content(); $files_for_parsing = []; $wo_garbage_path = storage_path("tmp/" . $project->dir . "/html_wo_garbage/"); foreach ($html_files_data as $query => $files_array) { foreach ($files_array as $key => $file) { $wo_simple_file = $content->getSimpleZones($wo_garbage_path . $file, $project->id); $files_for_parsing[$query][] = $wo_simple_file; } } return $files_for_parsing; // return '<pre>'.print_r($files_for_parsing,true).'</pre>';// FOR TESTING !!!! }