diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php index 54847d9a..97b65aa1 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php @@ -10,7 +10,7 @@ class _2Way { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['h2w'] = (float) $value->o1; @@ -22,7 +22,7 @@ class _2Way if (! $res) { Odds2way::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->h2w = $odds['h2w']; $res->a2w = $odds['a2w']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php index cbb315fd..79ddc7c0 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php @@ -10,7 +10,7 @@ class _2WayS1 { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['h2w'] = (float) $value->o1; @@ -22,7 +22,7 @@ class _2WayS1 if (! $res) { Odds2wayS1::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->h2w = $odds['h2w']; $res->a2w = $odds['a2w']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php index 15c025c5..7cb6c15d 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php @@ -10,7 +10,7 @@ class _3Way { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['h3w'] = (float) $value->o1; @@ -23,7 +23,7 @@ class _3Way if (! $res) { Odds3way::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->h3w = $odds['h3w']; $res->a3w = $odds['d3w']; $res->d3w = $odds['a3w']; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php index a92b6cf7..056a4ad0 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php @@ -10,7 +10,7 @@ class _3WayHt { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['h3w'] = (float) $value->o1; @@ -23,7 +23,7 @@ class _3WayHt if (! $res) { Odds3wayHt::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->h3w = $odds['h3w']; $res->d3w = $odds['d3w']; $res->d3w = $odds['a3w']; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php index 97e737fa..1e0181fd 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php @@ -10,7 +10,7 @@ class _Dc { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['dc1x'] = (float) $value->o1; @@ -23,7 +23,7 @@ class _Dc if (! $res) { OddsDc::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->dc1x = $odds['dc1x']; $res->dc12 = $odds['dc12']; $res->dcx2 = $odds['dcx2']; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php index 44f77038..ebd71d40 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php @@ -10,7 +10,7 @@ class _Dnb { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['dnb1'] = (float) $value->o1; @@ -22,7 +22,7 @@ class _Dnb if (! $res) { OddsDnb::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->dnb1 = $odds['dnb1']; $res->dnb2 = $odds['dnb2']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php index 7e34d08b..c43d6f03 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php @@ -10,7 +10,7 @@ class _Ggng { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['gg'] = (float) $value->o1; @@ -22,7 +22,7 @@ class _Ggng if (! $res) { OddsGgng::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->gg = $odds['gg']; $res->ng = $odds['ng']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php index 0443c322..751ff5c6 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php @@ -11,7 +11,7 @@ class _Points { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['home'] = (float) $value->o1; @@ -34,7 +34,7 @@ class _Points if (! $res) { OddsPoint::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->home = $odds['home']; $res->away = $odds['away']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php index 17ed118f..e80207fe 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php @@ -11,7 +11,7 @@ class _PointsHt { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['home'] = (float) $value->o1; @@ -34,7 +34,7 @@ class _PointsHt if (! $res) { OddsPointHt::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->home = $odds['home']; $res->away = $odds['away']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php index bd73a8eb..07736d56 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php @@ -11,7 +11,7 @@ class _PointsQ1 { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['home'] = (float) $value->o1; @@ -34,7 +34,7 @@ class _PointsQ1 if (! $res) { OddsPointQ1::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->home = $odds['home']; $res->away = $odds['away']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php index ac079f52..53642770 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php @@ -11,7 +11,7 @@ class _Totals { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['over'] = (float) $value->o1; @@ -40,7 +40,7 @@ class _Totals if (! $res) { OddsTotal::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->over = $odds['over']; $res->under = $odds['under']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php index c4f0b404..cd1864d7 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php @@ -11,7 +11,7 @@ class _TotalsHt { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['over'] = (float) $value->o1; @@ -40,7 +40,7 @@ class _TotalsHt if (! $res) { OddsTotalHt::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->over = $odds['over']; $res->under = $odds['under']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php index 6a66d2b1..9e9a1528 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php @@ -11,7 +11,7 @@ class _TotalsQ1 { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['over'] = (float) $value->o1; @@ -40,7 +40,7 @@ class _TotalsQ1 if (! $res) { OddsTotalQ1::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->over = $odds['over']; $res->under = $odds['under']; $res->flags = 1; diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php index 1591df7e..c25f5488 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php @@ -10,7 +10,7 @@ class _Tq { public static function grap($odds, $offer) { - $block_create = Nuh::$options['b'] ?? 0; + $block_update = Nuh::$options['b'] ?? 0; foreach ($offer as $value) { $odds['htq'] = (float) $value->o1; @@ -22,7 +22,7 @@ class _Tq if (! $res) { OddsTq::create($odds); - } elseif (! $block_create) { + } elseif (! $block_update) { $res->htq = $odds['htq']; $res->atq = $odds['atq']; $res->flags = 1; diff --git a/app/Console/Commands/Nuh.php b/app/Console/Commands/Nuh.php index 5d643cf9..92fcb442 100644 --- a/app/Console/Commands/Nuh.php +++ b/app/Console/Commands/Nuh.php @@ -47,7 +47,7 @@ class Nuh extends Command $txt .= '--x generate supervisors'.PHP_EOL; $txt .= '--t load today'.PHP_EOL; $txt .= '--a all by id'.PHP_EOL; - $txt .= '--b only create (reload all for txodds)'.PHP_EOL; + $txt .= '--b block update (reload all for txodds)'.PHP_EOL; $txt .= '--w laod this week (tx)'.PHP_EOL; $txt .= '--g by minor groups (tx)'.PHP_EOL; $txt .= '--r read data from file '.PHP_EOL;