Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 30, 2025

Addresses code style feedback from PR #60 to add a blank line after variable assignment before the return statement in ComputerScienceResourceService::getIndexData().

Changes

  • Added blank line between $hot_resources assignment and return statement (line 51)
  • Improves readability by visually separating computation from return
$hot_resources = $this->resourceSortingManager->applySort($hot_resources_query, 'hot')->limit(10)->get();

return [
    'resources' => $resources,
    'hot_resources' => $hot_resources,
];

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Dec 30, 2025
Copilot AI changed the title [WIP] WIP address feedback on news temp trending PR Add blank line before return statement in ComputerScienceResourceService Dec 30, 2025
Copilot AI requested a review from AllanKoder December 30, 2025 23:22
@AllanKoder AllanKoder marked this pull request as ready for review December 30, 2025 23:48
@AllanKoder AllanKoder merged commit 7e5f457 into news-temp-trending Dec 30, 2025
2 checks passed
@AllanKoder AllanKoder deleted the copilot/sub-pr-60-again branch December 30, 2025 23:48
AllanKoder added a commit that referenced this pull request Dec 30, 2025
* Resource Edits, and Errors Flash (#59)

* changes

* Apply automatic changes

* Update app/Http/Controllers/ResourceEditsController.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply automatic changes

* Update resources/js/Components/NewsItem.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update resources/js/Components/NewsItem.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Initial plan (#62)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Initial plan (#63)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Rename NewsItem component to TrendingResourceItem (#61)

* Initial plan

* Rename NewsItem.vue to TrendingResourceItem.vue and update all references

Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: AllanKoder <74692833+AllanKoder@users.noreply.github.com>

* Quick npm update

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants