diff --git a/app/Traits/Sofascore/GrappingToExcel.php b/app/Traits/Sofascore/GrappingToExcel.php index afeb80e5..86df2530 100644 --- a/app/Traits/Sofascore/GrappingToExcel.php +++ b/app/Traits/Sofascore/GrappingToExcel.php @@ -23,14 +23,14 @@ trait GrappingToExcel switch ($this->task_id) { case 1: - $this->titel .= ucfirst($folder).'_'.$day; + $this->titel = ucfirst($folder) . '_' . $day; - $files = $this->get_tree($this->data_dir.'/'.$day); + $files = $this->get_tree($this->data_dir . '/' . $day); break; case 3: $task = SofaScoreTask::with('sport')->where('id', $this->task_id)->first(); - $this->titel = ucfirst($folder).'-'.$this->clean_string($task->name); + $this->titel = ucfirst($folder) . '-' . $this->clean_string($task->name); $files = $this->get_tree($this->data_dir); break; } @@ -57,7 +57,7 @@ trait GrappingToExcel } $spreadsheet = new Spreadsheet; - $spreadsheet->getProperties()->setTitle($this->titel.'-'.$count_from.'-'.$count_to); + $spreadsheet->getProperties()->setTitle($this->titel . '-' . $count_from . '-' . $count_to); $activeWorksheet = $spreadsheet->getActiveSheet(); $column = 1;