Skip to content

Commit

Permalink
#6328 Fix type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Nov 7, 2021
1 parent e784018 commit f39c880
Show file tree
Hide file tree
Showing 707 changed files with 5,452 additions and 5,504 deletions.
4 changes: 2 additions & 2 deletions api/v1/_payments/PKPBackendPaymentsSettingsHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function authorize($request, &$args, $roleAssignments)
/**
* Receive requests to edit the payments form
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
*
* @return Response
*/
Expand Down
8 changes: 4 additions & 4 deletions api/v1/_submissions/PKPBackendSubmissionsHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public function authorize($request, &$args, $roleAssignments)
/**
* Get a collection of submissions
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -199,8 +199,8 @@ protected function getSubmissionCollector(array $queryParams): Collector
/**
* Delete a submission
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down
14 changes: 7 additions & 7 deletions api/v1/_uploadPublicFile/PKPUploadPublicFileHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function authorize($request, &$args, $roleAssignments)
* A helper method which adds the necessary response headers to allow
* file uploads
*
* @param $response Response object
* @param Response $response object
*
* @return Response
*/
Expand All @@ -78,9 +78,9 @@ private function getResponse($response)
/**
* Upload a requested file
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param $args array arguments
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
*/
Expand Down Expand Up @@ -198,9 +198,9 @@ public function uploadFile($slimRequest, $response, $args)
* Respond affirmatively to a HTTP OPTIONS request with headers which allow
* file uploads
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param $args array arguments
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
*/
Expand Down
20 changes: 10 additions & 10 deletions api/v1/announcements/PKPAnnouncementHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function authorize($request, &$args, $roleAssignments)
/**
* Get a single submission
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand All @@ -119,8 +119,8 @@ public function get($slimRequest, $response, $args)
/**
* Get a collection of announcements
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -165,8 +165,8 @@ public function getMany($slimRequest, $response, $args)
/**
* Add an announcement
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -201,8 +201,8 @@ public function add($slimRequest, $response, $args)
/**
* Edit an announcement
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -249,8 +249,8 @@ public function edit($slimRequest, $response, $args)
/**
* Delete an announcement
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down
30 changes: 15 additions & 15 deletions api/v1/contexts/PKPContextHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function authorize($request, &$args, $roleAssignments)
/**
* Get a collection of contexts
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param $args array arguments
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
*/
Expand Down Expand Up @@ -172,8 +172,8 @@ public function getMany($slimRequest, $response, $args)
/**
* Get a single context
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -218,8 +218,8 @@ public function get($slimRequest, $response, $args)
/**
* Get the theme and any theme options for a context
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -279,8 +279,8 @@ public function getTheme($slimRequest, $response, $args)
/**
* Add a context
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -331,8 +331,8 @@ public function add($slimRequest, $response, $args)
/**
* Edit a context
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -392,8 +392,8 @@ public function edit($slimRequest, $response, $args)
/**
* Edit a context's theme and theme options
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -492,8 +492,8 @@ public function editTheme($slimRequest, $response, $args)
/**
* Delete a context
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down
20 changes: 10 additions & 10 deletions api/v1/emailTemplates/PKPEmailTemplateHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ public function getMany(SlimRequest $slimRequest, Response $response, array $arg
/**
* Get a single email template
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand All @@ -173,8 +173,8 @@ public function get($slimRequest, $response, $args)
/**
* Add an email template
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -208,8 +208,8 @@ public function add($slimRequest, $response, $args)
/**
* Edit an email template
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -264,8 +264,8 @@ public function edit($slimRequest, $response, $args)
/**
* Delete an email template
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand All @@ -291,8 +291,8 @@ public function delete($slimRequest, $response, $args)
/**
* Restore defaults in the email template settings
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down
16 changes: 8 additions & 8 deletions api/v1/site/PKPSiteHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function authorize($request, &$args, $roleAssignments)
/**
* Get the site
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand All @@ -100,8 +100,8 @@ public function get($slimRequest, $response, $args)
/**
* Get the active theme on the site
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -136,8 +136,8 @@ public function getTheme($slimRequest, $response, $args)
/**
* Edit the site
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down Expand Up @@ -168,8 +168,8 @@ public function edit($slimRequest, $response, $args)
/**
* Edit the active theme and theme options on the site
*
* @param $slimRequest Request Slim request object
* @param $response Response object
* @param Request $slimRequest Slim request object
* @param Response $response object
* @param array $args arguments
*
* @return Response
Expand Down
12 changes: 6 additions & 6 deletions api/v1/stats/editorial/PKPStatsEditorialHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public function authorize($request, &$args, $roleAssignments)
* Returns information on submissions received, accepted, declined,
* average response times and more.
*
* @param $slimRequest Request Slim request object
* @param $response object Response
* @param $args array
* @param Request $slimRequest Slim request object
* @param object $response Response
* @param array $args
*
* @return object Response
*/
Expand Down Expand Up @@ -126,9 +126,9 @@ function ($item) {
* Returns information on average submissions received, accepted
* and declined per year.
*
* @param $slimRequest Request Slim request object
* @param $response object Response
* @param $args array
* @param Request $slimRequest Slim request object
* @param object $response Response
* @param array $args
*
* @return object Response
*/
Expand Down
Loading

0 comments on commit f39c880

Please sign in to comment.