Overhaul of a lot of things.
This commit is contained in:
@@ -159,8 +159,6 @@ class FightTrainingController extends ControllerBase {
|
||||
|
||||
$extracted_values = $this->extractValuesFromFields($id, $this->fields, $prefix);
|
||||
|
||||
|
||||
/* return $extracted_values; */
|
||||
return $this->normalizeData($extracted_values);
|
||||
}
|
||||
|
||||
@@ -188,7 +186,6 @@ class FightTrainingController extends ControllerBase {
|
||||
private function normalizeData(array $data): array {
|
||||
// @todo - this creates an issue where duration of fight is the largest number which isnt really correct
|
||||
// and smaller duration would be better
|
||||
//
|
||||
$min = min(array_values($data));
|
||||
$max = max(array_values($data));
|
||||
$normalized = [];
|
||||
|
||||
@@ -185,10 +185,6 @@ class FighterImporter {
|
||||
}
|
||||
}
|
||||
|
||||
public function quickTest($str) {
|
||||
return "hello$str";
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract fighters from an html string.
|
||||
*/
|
||||
@@ -241,8 +237,6 @@ class FighterImporter {
|
||||
$this->fighters[$this->weightClass][$name_no_spaces]['profile'] = $fighter_data['profile'];
|
||||
}
|
||||
|
||||
// here you are dan, set the profile url of the fighter, then use that in parsing later on
|
||||
|
||||
if (!empty($fighter_data['images']) && count($fighter_data['images']) == 2) {
|
||||
$this->fighters[$this->weightClass][$name_no_spaces]['image'] = $fighter_data['images'][0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user