mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-02-06 12:38:41 +00:00
Automated formatting changes
This commit is contained in:
parent
77a6043638
commit
e79c8116df
|
|
@ -26,8 +26,8 @@ $fileHashs = \file_get_contents(__DIR__ . '/../../../../hashs.txt'); /* Rest::re
|
||||||
)->getBody(); */
|
)->getBody(); */
|
||||||
|
|
||||||
$hashs = [];
|
$hashs = [];
|
||||||
$fp = \fopen("php://memory", 'r+');
|
$fp = \fopen("php://memory", 'r+');
|
||||||
\fputs($fp, $fileHashs);
|
\fwrite($fp, $fileHashs);
|
||||||
\rewind($fp);
|
\rewind($fp);
|
||||||
|
|
||||||
while($line = \fgets($fp)){
|
while($line = \fgets($fp)){
|
||||||
|
|
@ -37,9 +37,9 @@ while($line = \fgets($fp)){
|
||||||
}
|
}
|
||||||
|
|
||||||
$whitespace = \stripos($line, ' ');
|
$whitespace = \stripos($line, ' ');
|
||||||
$length = \strlen($line);
|
$length = \strlen($line);
|
||||||
$hash = \substr($line, 0, $whitespace);
|
$hash = \substr($line, 0, $whitespace);
|
||||||
$file = \trim(\substr($line, $whitespace + 2), '.\\/');
|
$file = \trim(\substr($line, $whitespace + 2), '.\\/');
|
||||||
|
|
||||||
$hashs[$file] = $hash;
|
$hashs[$file] = $hash;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user