Commit 00e612b7 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Updated to Laravel 5.8

parent bff880f5
......@@ -2,7 +2,6 @@
namespace App\Jobs;
use Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
......@@ -42,7 +41,6 @@ class ConvertCountFile implements ShouldQueue
$error = false;
try {
$fh = fopen($this->files["logFile"], "r");
$currentLogTime = Carbon::now()->hour(0)->minute(0)->second(0)->addMinutes(5);
while ($fh !== false && ($line = fgets($fh)) !== false) {
$logTime = [];
$interface = "";
......@@ -57,22 +55,22 @@ class ConvertCountFile implements ShouldQueue
$thatTime = \DateTime::createFromFormat('H:i:s', $logTime);
$thatTime->sub(new \DateInterval("PT" . ($thatTime->format('i') % 5) . "M"));
if(empty($result["time"][$thatTime->format('H:i')])){
if (empty($result["time"][$thatTime->format('H:i')])) {
$result["time"][$thatTime->format('H:i')] = [
"insgesamt" => [
"all" => 0,
],
];
}
if(empty($result["time"][$thatTime->format('H:i')]["all"])){
if (empty($result["time"][$thatTime->format('H:i')]["all"])) {
$result["time"][$thatTime->format('H:i')]["all"] = 1;
}else{
} else {
$result["time"][$thatTime->format('H:i')]["all"]++;
}
if (!empty($interface)) {
if(empty($result["time"][$thatTime->format('H:i')][$interface])){
if (empty($result["time"][$thatTime->format('H:i')][$interface])) {
$result["time"][$thatTime->format('H:i')][$interface] = 1;
}else{
} else {
$result["time"][$thatTime->format('H:i')][$interface]++;
}
}
......
......@@ -3,7 +3,7 @@
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Contracts\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class Kontakt extends Mailable
......
......@@ -12,7 +12,7 @@ class Quicktips
private $quicktipUrl = "/1.1/quicktips.xml";
private $results = [];
const QUICKTIP_NAME = "quicktips";
const CACHE_DURATION = 60;
const CACHE_DURATION = 60 * 60;
private $hash;
......
......@@ -2088,7 +2088,7 @@
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
"integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=",
"dev": true,
"requires": {
"nice-try": "^1.0.4",
......@@ -5758,7 +5758,7 @@
"nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
"integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
"integrity": "sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y=",
"dev": true
},
"no-case": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment