diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index a2d73d2956..b0c81ad8f2 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -153,10 +153,10 @@ class CheckData extends Command foreach ($invoices as $invoice) { $link = $invoice->getInvitationLink('view', true, true); - $this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance); + //$this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance); $result = CurlUtils::phantom('GET', $link . '?phantomjs=true&phantomjs_balances=true&phantomjs_secret=' . env('PHANTOMJS_SECRET')); $result = floatval(strip_tags($result)); - $this->logMessage('Result: ' . $result); + //$this->logMessage('Result: ' . $result); if ($result && $result != $invoice->balance) { $this->logMessage("Amounts do not match {$link} - PHP: {$invoice->balance}, JS: {$result}"); diff --git a/app/Ninja/Repositories/DocumentRepository.php b/app/Ninja/Repositories/DocumentRepository.php index cd575ddcf3..e6d159115e 100644 --- a/app/Ninja/Repositories/DocumentRepository.php +++ b/app/Ninja/Repositories/DocumentRepository.php @@ -91,7 +91,7 @@ class DocumentRepository extends BaseRepository if (! $disk->exists($filename)) {// Have we already stored the same file $stream = fopen($filePath, 'r'); $disk->getDriver()->putStream($filename, $stream, ['mimetype' => $documentTypeData['mime']]); - fclose($stream); + //fclose($stream); } // This is an image; check if we need to create a preview