Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
7db48fea
Commit
7db48fea
authored
Apr 29, 2019
by
Dominik Hebeler
Browse files
Fixed an error in creating the files
parent
14359f4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Jobs/ConvertCountFile.php
View file @
7db48fea
...
@@ -32,7 +32,11 @@ class ConvertCountFile implements ShouldQueue
...
@@ -32,7 +32,11 @@ class ConvertCountFile implements ShouldQueue
*/
*/
public
function
handle
()
public
function
handle
()
{
{
$result
=
[];
$result
=
[
"insgesamt"
=>
[
"all"
=>
0
,
],
];
$fh
=
false
;
$fh
=
false
;
$fullRound
=
false
;
$fullRound
=
false
;
try
{
try
{
...
@@ -56,9 +60,6 @@ class ConvertCountFile implements ShouldQueue
...
@@ -56,9 +60,6 @@ class ConvertCountFile implements ShouldQueue
}
}
while
(
!
$fullRound
&&
((
intval
(
$logTime
[
0
])
*
60
)
+
intval
(
$logTime
[
1
]))
>
((
$currentLogTime
->
hour
*
60
)
+
$currentLogTime
->
minute
))
{
while
(
!
$fullRound
&&
((
intval
(
$logTime
[
0
])
*
60
)
+
intval
(
$logTime
[
1
]))
>
((
$currentLogTime
->
hour
*
60
)
+
$currentLogTime
->
minute
))
{
if
(
empty
(
$result
[
"insgesamt"
]))
{
continue
2
;
}
$result
[
"time"
][
$currentLogTime
->
format
(
'H:i'
)]
=
$result
[
"insgesamt"
];
$result
[
"time"
][
$currentLogTime
->
format
(
'H:i'
)]
=
$result
[
"insgesamt"
];
$currentLogTime
->
addMinutes
(
5
);
$currentLogTime
->
addMinutes
(
5
);
if
(
$currentLogTime
->
hour
===
0
&&
$currentLogTime
->
minute
===
0
)
{
if
(
$currentLogTime
->
hour
===
0
&&
$currentLogTime
->
minute
===
0
)
{
...
@@ -87,6 +88,7 @@ class ConvertCountFile implements ShouldQueue
...
@@ -87,6 +88,7 @@ class ConvertCountFile implements ShouldQueue
if
(
$fh
!==
false
)
{
if
(
$fh
!==
false
)
{
fclose
(
$fh
);
fclose
(
$fh
);
}
}
$oldUmask
=
umask
(
0
);
$oldUmask
=
umask
(
0
);
// Write the result to a File
// Write the result to a File
if
(
!
file_exists
(
$this
->
files
[
"countPath"
]))
{
if
(
!
file_exists
(
$this
->
files
[
"countPath"
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment