multilines wip
This commit is contained in:
1 parent
218c1e6e1c
commit
825a8d430c
19 files changed
+145
-78
No files matched your search
@@ -4,10 +4,10 @@ namespace App\Utilities;
|
||||
|
||||
class BkmIconMap
|
||||
{
|
||||
public static function get($bookmaker)
|
||||
public static function get($image)
|
||||
{
|
||||
if ($bookmaker) {
|
||||
return asset("storage/bookmaker-icons/$bookmaker->icon.png");
|
||||
if ($image) {
|
||||
return asset("storage/bookmaker-icons/$image.png");
|
||||
} else {
|
||||
return asset('storage/bookmaker-icons/missing.png');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
class OddsFormatting
|
||||
{
|
||||
public static function get($odd, $stellen = 2)
|
||||
{
|
||||
if ($odd != 0) {
|
||||
return number_format($odd, $stellen);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user