Skip to content

Commit

Permalink
Testing, documentation & refactoring in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 2, 2024
1 parent bb1b254 commit cf75ab3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
\Rector\CodeQuality\Rector\If_\ShortenElseIfRector::class,
// \Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector::class,
\Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector::class,
\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector::class,
\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedCallRector::class,
// \Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector::class,
// \Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class,
// //\Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector::class,
Expand Down
4 changes: 3 additions & 1 deletion src/controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,10 @@ public function renderView( string $file_name, array $data = [] ): string {

/**
* @psalm-suppress PossiblyUnusedMethod
*
* @return ResponseInterface|string
*/
public function actionIndex(): string {
public function actionIndex() {

//get the contents of the view first
$view_str = $this->renderView('index.php', ['controller_object'=>$this]);
Expand Down

0 comments on commit cf75ab3

Please sign in to comment.