wip
This commit is contained in:
1 parent
314747aafe
commit
cda3acc1a5
1 file changed
+4
-4
@@ -23,14 +23,14 @@ trait GrappingToExcel
|
|||||||
|
|
||||||
switch ($this->task_id) {
|
switch ($this->task_id) {
|
||||||
case 1:
|
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;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$task = SofaScoreTask::with('sport')->where('id', $this->task_id)->first();
|
$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);
|
$files = $this->get_tree($this->data_dir);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ trait GrappingToExcel
|
|||||||
}
|
}
|
||||||
|
|
||||||
$spreadsheet = new Spreadsheet;
|
$spreadsheet = new Spreadsheet;
|
||||||
$spreadsheet->getProperties()->setTitle($this->titel.'-'.$count_from.'-'.$count_to);
|
$spreadsheet->getProperties()->setTitle($this->titel . '-' . $count_from . '-' . $count_to);
|
||||||
$activeWorksheet = $spreadsheet->getActiveSheet();
|
$activeWorksheet = $spreadsheet->getActiveSheet();
|
||||||
|
|
||||||
$column = 1;
|
$column = 1;
|
||||||
|
|||||||
Reference in new issue
Block a user