MCPcopy Create free account
hub / github.com/codemistic/Web-Development / log

Method log

text-to-qr/lib/phpqrcode/phpqrcode.php:234–245  ·  view source on GitHub ↗

----------------------------------------------------------------------

($outfile, $err)

Source from the content-addressed store, hash-verified

232
233 //----------------------------------------------------------------------
234 public static function log($outfile, $err)
235 {
236 if (QR_LOG_DIR !== false) {
237 if ($err != '') {
238 if ($outfile !== false) {
239 file_put_contents(QR_LOG_DIR.basename($outfile).'-errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
240 } else {
241 file_put_contents(QR_LOG_DIR.'errors.txt', date('Y-m-d H:i:s').': '.$err, FILE_APPEND);
242 }
243 }
244 }
245 }
246
247 //----------------------------------------------------------------------
248 public static function dumpMask($frame)

Callers 1

encodePNGMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected