Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot authored and RafficMohammed committed Oct 29, 2024
1 parent 6183142 commit b55229c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/Http/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,21 +386,21 @@ public function latestVersion(Request $request, Product $product)
$releases = ['official'];

/**
* To handle the older version Faveo
* To handle the older version Faveo.
*/
if ($request->has('is_pre_release') && $request->input('is_pre_release', 0)) {
array_unshift($releases, 'pre_release');
}

/**
* This condition will start work from Faveo v9.3.0.RC.1
* This condition will start work from Faveo v9.3.0.RC.1.
*/
match($request->input('release_type')){
match ($request->input('release_type')) {
'pre_release' => array_unshift($releases, 'pre_release'),
'beta' => array_unshift($releases, 'beta'),

default => $releases
};
};

$inBetweenVersions = ProductUpload::where([['product_id', $product->id]])->select('version', 'description', 'created_at', 'is_restricted', 'is_private', 'dependencies')
->whereIn('release_type', $releases)
Expand Down Expand Up @@ -468,16 +468,16 @@ public function isNewVersionAvailable(Request $request, Product $product)
$releases = ['official'];

/**
* To handle the older version Faveo
* To handle the older version Faveo.
*/
if ($request->has('is_pre_release') && $request->input('is_pre_release', 0)) {
array_unshift($releases, 'pre_release');
}

/**
* This condition will start work from Faveo v9.3.0.RC.1
* This condition will start work from Faveo v9.3.0.RC.1.
*/
match($request->input('release_type')){
match ($request->input('release_type')) {
'pre_release' => array_unshift($releases, 'pre_release'),
'beta' => array_unshift($releases, 'beta'),
default => $releases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use App\Model\Payment\TaxProductRelation;
use App\Model\Product\Product;
use App\Model\Product\ProductUpload;
use App\ReleaseType;
use Carbon\Carbon;
use Illuminate\Http\Request;

Expand Down Expand Up @@ -51,7 +50,6 @@ public function getUpload($id)
return $model->file;
})
->addColumn('releasetype', function ($model) {

return $model->release_type;
})
->addColumn('action', function ($model) {
Expand Down

0 comments on commit b55229c

Please sign in to comment.