Skip to content

Commit

Permalink
StyleCi
Browse files Browse the repository at this point in the history
  • Loading branch information
dpslwk committed Sep 27, 2021
1 parent 0bb721b commit c0e2557
Show file tree
Hide file tree
Showing 47 changed files with 96 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ preset: laravel

enabled:
- concat_with_spaces
- phpdoc_separation

disabled:
- phpdoc_no_package
- concat_without_spaces
- laravel_phpdoc_alignment
- laravel_phpdoc_separation

finder:
exclude:
Expand Down
1 change: 1 addition & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function report(Exception $exception)
* @param \Exception $exception
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function render($request, Exception $exception)
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Composers/ProxyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct(
* Bind data to the view.
*
* @param View $view
*
* @return void
*/
public function compose(View $view)
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Doctrine/CarbonType.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform)
* @param AbstractPlatform $platform
*
* @return Carbon|null
*
* @throws ConversionException
* @throws InvalidArgumentException
*/
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Entities/Governance/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Proxy

/**
* User designating a proxy.
*
* @var User
*/
protected $principal;
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Factories/Banking/AccountFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ protected static function generatePaymentRef()
* Generate a unique payment reference.
*
* @return string A unique (at the time of function-call) payment reference.
*
* @link http://www.bacs.co.uk/Bacs/Businesses/BacsDirectCredit/Receiving/Pages/PaymentReferenceInformation.aspx
*/
protected function generateUniquePaymentRef()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function paginateByService(Service $service, $perPage = 50, $pageName = '

/**
* save Event to the DB.
*
* @param Event $event
*/
public function save(Event $event)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function findAll()

/**
* save Service to the DB.
*
* @param Service $service
*/
public function save(Service $service)
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Repositories/Instrumentation/EventRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public function paginateByService(Service $service, $perPage = 15, $pageName = '

/**
* save Event to the DB.
*
* @param Event $event
*/
public function save(Event $event);
Expand Down
1 change: 1 addition & 0 deletions app/HMS/Repositories/Instrumentation/ServiceRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public function findAll();

/**
* save Service to the DB.
*
* @param Service $service
*/
public function save(Service $service);
Expand Down
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/Auth/CanCheckController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function __construct()
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public function __construct(
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
Expand Down
7 changes: 7 additions & 0 deletions app/Http/Controllers/Api/Members/BoxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public function __construct(
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*
* @throws \Doctrine\ORM\EntityNotFoundException
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
Expand Down Expand Up @@ -144,6 +145,7 @@ public function index(Request $request)
* @param Box $box the Box
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function show(Box $box)
Expand All @@ -161,6 +163,7 @@ public function show(Box $box)
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*
* @throws \Doctrine\ORM\EntityNotFoundException
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
Expand Down Expand Up @@ -261,6 +264,7 @@ public function store(Request $request)
* @param Box $box
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function printLabel(Box $box)
Expand All @@ -280,6 +284,7 @@ public function printLabel(Box $box)
* @param Box $box
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markInUse(Box $box)
Expand Down Expand Up @@ -342,6 +347,7 @@ public function markInUse(Box $box)
* @param Box $box
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markAbandoned(Box $box)
Expand All @@ -366,6 +372,7 @@ public function markAbandoned(Box $box)
* @param Box $box
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markRemoved(Box $box)
Expand Down
7 changes: 7 additions & 0 deletions app/Http/Controllers/Api/Members/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function __construct(
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*
* @throws \Doctrine\ORM\EntityNotFoundException
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
Expand Down Expand Up @@ -112,6 +113,7 @@ public function store(Request $request)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function show(Project $project)
Expand All @@ -130,6 +132,7 @@ public function show(Project $project)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function update(Request $request, Project $project)
Expand All @@ -156,6 +159,7 @@ public function update(Request $request, Project $project)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function printLabel(Project $project)
Expand All @@ -175,6 +179,7 @@ public function printLabel(Project $project)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markActive(Project $project)
Expand All @@ -195,6 +200,7 @@ public function markActive(Project $project)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markAbandoned(Project $project)
Expand All @@ -215,6 +221,7 @@ public function markAbandoned(Project $project)
* @param Project $project
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function markComplete(Project $project)
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Controllers/Api/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function __construct(
* @param User $user
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function index()
Expand All @@ -70,6 +71,7 @@ public function index()
* @param User $user
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function show(User $user)
Expand All @@ -88,6 +90,7 @@ public function show(User $user)
* @param User $user
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function update(Request $request, User $user)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function __construct(
* Show the form for creating a new resource.
*
* @param Account $account
*
* @return \Illuminate\Http\Response
*/
public function create(Account $account)
Expand All @@ -77,6 +78,7 @@ public function create(Account $account)
*
* @param \Illuminate\Http\Request $request
* @param Account $account
*
* @return \Illuminate\Http\Response
*/
public function store(Request $request, Account $account)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function __construct(
* Show the form for creating a new resource.
*
* @param \App\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function create(Bank $bank)
Expand All @@ -82,6 +83,7 @@ public function create(Bank $bank)
*
* @param \Illuminate\Http\Request $request
* @param \App\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function store(Request $request, Bank $bank)
Expand Down Expand Up @@ -118,6 +120,7 @@ public function store(Request $request, Bank $bank)
* Show the form for uploading an OFX file.
*
* @param \App\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function createViaOfxUpload(Bank $bank)
Expand Down Expand Up @@ -146,6 +149,7 @@ public function createViaOfxUpload(Bank $bank)
*
* @param \Illuminate\Http\Request $request
* @param \App\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function storeOfx(Request $request, Bank $bank)
Expand Down
4 changes: 4 additions & 0 deletions app/Http/Controllers/Banking/BankController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function create()
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
Expand Down Expand Up @@ -109,6 +110,7 @@ public function store(Request $request)
* Display the specified resource.
*
* @param \HMS\Entities\Banking\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function show(Bank $bank)
Expand All @@ -124,6 +126,7 @@ public function show(Bank $bank)
* Show the form for editing the specified resource.
*
* @param \HMS\Entities\Banking\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function edit(Bank $bank)
Expand All @@ -137,6 +140,7 @@ public function edit(Bank $bank)
*
* @param \Illuminate\Http\Request $request
* @param \HMS\Entities\Banking\Bank $bank
*
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Bank $bank)
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Controllers/ContentBlockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function index()
* Display the specified resource.
*
* @param \HMS\Entities\ContentBlock $contentBlock
*
* @return \Illuminate\Http\Response
*/
public function show(ContentBlock $contentBlock)
Expand All @@ -53,6 +54,7 @@ public function show(ContentBlock $contentBlock)
* Show the form for editing the specified resource.
*
* @param \HMS\Entities\ContentBlock $contentBlock
*
* @return \Illuminate\Http\Response
*/
public function edit(ContentBlock $contentBlock)
Expand All @@ -65,6 +67,7 @@ public function edit(ContentBlock $contentBlock)
*
* @param \Illuminate\Http\Request $request
* @param \HMS\Entities\ContentBlock $contentBlock
*
* @return \Illuminate\Http\Response
*/
public function update(Request $request, ContentBlock $contentBlock)
Expand Down
2 changes: 2 additions & 0 deletions app/Http/Controllers/Tools/ToolController.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public function show(Tool $tool)
* @param string $grantType
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function showUsersForGrant(Tool $tool, string $grantType)
Expand Down Expand Up @@ -287,6 +288,7 @@ public function destroy(Tool $tool)
* @param Tool $tool
*
* @return \Illuminate\Http\Response
*
* @throws \Illuminate\Auth\Access\AuthorizationException
*/
public function grant(Request $request, Tool $tool)
Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/Gatekeeper/RfidTagResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class RfidTagResource extends JsonResource
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
*
* @return array
*/
public function toArray($request)
Expand Down
1 change: 1 addition & 0 deletions app/Listeners/Gatekeeper/NotifyNewBooking.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function __construct(
* Handle the event.
*
* @param NewBooking $event
*
* @return void
*/
public function handle(NewBooking $event)
Expand Down
1 change: 1 addition & 0 deletions app/Listeners/Governance/NotifyCancelledProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(RoleRepository $roleRepository)
* Handle the event.
*
* @param ProxyCancelled $event
*
* @return void
*/
public function handle(ProxyCancelled $event)
Expand Down
1 change: 1 addition & 0 deletions app/Listeners/Governance/NotifyCheckedInProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function __construct()
* Handle the event.
*
* @param ProxyCheckedIn $event
*
* @return void
*/
public function handle(ProxyCheckedIn $event)
Expand Down
1 change: 1 addition & 0 deletions app/Listeners/Governance/NotifyNewProxyRegistered.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function __construct(RoleRepository $roleRepository)
* Handle the event.
*
* @param ProxyRegistered $event
*
* @return void
*/
public function handle(ProxyRegistered $event)
Expand Down
Loading

0 comments on commit c0e2557

Please sign in to comment.