Permalink
Browse files

Add some missing typehints

  • Loading branch information...
flack committed Jan 6, 2019
1 parent 1002012 commit 35fb3d85aebd42b04f8f31e9f3a5971abaaa146c
@@ -20,12 +20,12 @@ class net_nemein_wiki_resolver
*/
private $_topic;
public function __construct($topic = null)
public function __construct($topic)
{
$this->_topic = $topic;
}
public function generate_page_url($wikipage)
public function generate_page_url(net_nemein_wiki_wikipage $wikipage)
{
$nap = new midcom_helper_nav();
$node = $nap->get_node($wikipage->topic);
@@ -82,7 +82,7 @@ public function get_message(midcom_services_i18n_formatter $formatter)
return $message . '</ul>';
}
private function _add_event_constraints($qb, $fieldname = 'eid')
private function _add_event_constraints(midcom_core_querybuilder $qb, $fieldname = 'eid')
{
$qb->add_constraint($fieldname . '.busy', '<>', false);
if ($this->_event->id) {
@@ -182,7 +182,7 @@ private function _load_resources()
return [];
}
private function _process_resource($member, array &$modified_events, $rob_tentative)
private function _process_resource(org_openpsa_calendar_event_resource_dba $member, array &$modified_events, $rob_tentative)
{
if ($this->is_processed('resources', $member->event, $member->resource)) {
return;
@@ -215,7 +215,7 @@ private function _process_resource($member, array &$modified_events, $rob_tentat
}
}
private function _process_participant($member, array &$modified_events, $rob_tentative)
private function _process_participant(org_openpsa_calendar_event_member_dba $member, array &$modified_events, $rob_tentative)
{
if ($this->is_processed('participants', $member->eid, $member->uid)) {
return;
@@ -68,7 +68,7 @@ public function prepare_toolbar($show_backlink = true)
}
}
public function add_next_previous($object, $urlprefix)
public function add_next_previous(org_openpsa_invoices_invoice_dba $object, $urlprefix)
{
if ($object->number > 1) {
$mc = org_openpsa_invoices_invoice_dba::new_collector();
@@ -53,7 +53,7 @@ public static function get_status_type($status)
return 'on_hold';
}
public static function render_status_control($task)
public static function render_status_control(org_openpsa_projects_task_dba $task)
{
$prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
if ($task->status < org_openpsa_projects_task_status_dba::COMPLETED) {

0 comments on commit 35fb3d8

Please sign in to comment.