Skip to content

Commit

Permalink
fixed a number of type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Mar 17, 2022
1 parent 9a07150 commit f326ace
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Modules/Portfolio/Page/class.ilPCConsultationHoursGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ilPCConsultationHoursGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Modules/Portfolio/Page/class.ilPCMyCoursesGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ilPCMyCoursesGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Modules/Wiki/classes/class.ilPCAMDPageListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ilPCAMDPageListGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCBlogGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ilPCBlogGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCContentIncludeGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ilPCContentIncludeGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCContentTemplateGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ilPCContentTemplateGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCFileItemGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ilPCFileItemGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCFileListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ilPCFileListGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCGridCellGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ilPCGridCellGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCInteractiveImageGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCInteractiveImageGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCListGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCListGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCListItemGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ilPCListItemGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCLoginPageElementGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ilPCLoginPageElementGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCMapGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ilPCMapGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCMediaObjectGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ilPCMediaObjectGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCParagraphGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCParagraphGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCPlaceHolderGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ilPCPlaceHolderGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCPluggedGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ilPCPluggedGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_plugin_name = "",
string $a_pc_id = ""
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCProfileGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ilPCProfileGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCQuestionGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ilPCQuestionGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCQuestionOverviewGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ilPCQuestionOverviewGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCResourcesGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ilPCResourcesGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCSkillsGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ilPCSkillsGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCSourceCodeGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ilPCSourceCodeGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCTableDataGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ilPCTableDataGUI extends ilPageContentGUI
{
public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCTableGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCTableGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
2 changes: 1 addition & 1 deletion Services/COPage/classes/class.ilPCTabsGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCTabsGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPageContent $a_content_obj,
?ilPageContent $a_content_obj,
string $a_hier_id,
string $a_pc_id = ""
) {
Expand Down
4 changes: 2 additions & 2 deletions Services/COPage/classes/class.ilPageEditorGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function executeCommand() : string
if ($com[0] == "insert" || $com[0] == "create") {
// Step CM (creation mode handling)
$cmd = $com[0];
$ctype = $com[1]; // note ctype holds type if cmdclass is empty, but also subcommands if not (e.g. applyFilter in ilpcmediaobjectgui)
$ctype = $com[1] ?? ""; // note ctype holds type if cmdclass is empty, but also subcommands if not (e.g. applyFilter in ilpcmediaobjectgui)
$add_type = $this->request->getString("pluginName");
if ($ctype == "mob") {
$ctype = "media";
Expand Down Expand Up @@ -444,7 +444,7 @@ public function executeCommand() : string

$this->log->debug("end ---");

return $ret;
return (string) $ret;
}

public function activatePage() : void
Expand Down
2 changes: 1 addition & 1 deletion Services/Container/Content/class.ilContainerContentGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public function renderItem(
$a_item_data['ref_id'],
$a_item_data['obj_id'],
$a_item_data['title'],
$a_item_data['description'],
(string) $a_item_data['description'],
$asynch,
false,
$asynch_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ilPCLearningHistoryGUI extends ilPageContentGUI

public function __construct(
ilPageObject $a_pg_obj,
ilPCLearningHistory $a_content_obj = null,
?ilPCLearningHistory $a_content_obj = null,
string $a_hier_id = "",
string $a_pc_id = ""
) {
Expand Down

0 comments on commit f326ace

Please sign in to comment.