Skip to content

Commit

Permalink
Feature snipe#9378 update phpdoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sh1hab committed Apr 29, 2021
1 parent 98a42af commit 193a8d9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions app/Http/Controllers/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
use App\Models\License;
use App\Models\Setting;
use Carbon\Carbon;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\View;
Expand Down Expand Up @@ -417,7 +416,7 @@ public function postCustom(Request $request)
// Open output stream
$handle = fopen('php://output', 'w');
stream_set_timeout($handle, 2000);

if ($request->filled('use_bom')) {
fprintf($handle, chr(0xEF) . chr(0xBB) . chr(0xBF));
}
Expand Down Expand Up @@ -488,7 +487,7 @@ public function postCustom(Request $request)
if ($request->filled('rtd_location')) {
$header[] = trans('admin/hardware/form.default_location');
}

if ($request->filled('rtd_location_address')) {
$header[] = trans('general.address');
$header[] = trans('general.address');
Expand Down Expand Up @@ -579,7 +578,7 @@ public function postCustom(Request $request)
$assets = \App\Models\Company::scopeCompanyables(Asset::select('assets.*'))->with(
'location', 'assetstatus', 'assetlog', 'company', 'defaultLoc','assignedTo',
'model.category', 'model.manufacturer','supplier');

if ($request->filled('by_location_id')) {
$assets->where('assets.location_id', $request->input('by_location_id'));
}
Expand Down Expand Up @@ -641,7 +640,7 @@ public function postCustom(Request $request)
if (($request->filled('next_audit_start')) && ($request->filled('next_audit_end'))) {
$assets->whereBetween('assets.next_audit_date', [$request->input('next_audit_start'), $request->input('next_audit_end')]);
}

$assets->orderBy('assets.created_at', 'ASC')->chunk(20, function($assets) use($handle, $customfields, $request) {

$executionTime = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
Expand All @@ -650,7 +649,7 @@ public function postCustom(Request $request)
foreach ($assets as $asset) {
$count++;
$row = [];

if ($request->filled('company')) {
$row[] = ($asset->company) ? $asset->company->name : '';
}
Expand Down Expand Up @@ -699,7 +698,7 @@ public function postCustom(Request $request)
if ($request->filled('supplier')) {
$row[] = ($asset->supplier) ? $asset->supplier->name : '';
}


if ($request->filled('location')) {
$row[] = ($asset->location) ? $asset->location->present()->name() : '';
Expand Down Expand Up @@ -930,9 +929,8 @@ public function exportAssetMaintenancesReport()
* getAssetAcceptanceReport
*
* @return mixed
* @throws AuthorizationException
* @version v1.0
* @author Vincent Sposato <[email protected]>
* @version v1.0
*/
public function getAssetAcceptanceReport()
{
Expand Down

0 comments on commit 193a8d9

Please sign in to comment.