Skip to content

Conversation

@SebastianKrupinski
Copy link
Contributor

Uses a protected function to generate the iTipBroker so that is can be overriden and used to generate a custom broker class.

/**
* Returns an instance of the iTip\Broker
*
* @return Broker
Copy link
Contributor

@ChristophWurst ChristophWurst Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an import and please use a return type hint

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!

@ChristophWurst
Copy link
Contributor

@phil-davis I hope this change makes sense. We add the protected factory method so that sub classes of the plugin can work with a sub-classed broker as well.

@codecov
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (a9d0a90) to head (b64d2aa).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1559   +/-   ##
=========================================
  Coverage     97.24%   97.24%           
- Complexity     2834     2836    +2     
=========================================
  Files           175      175           
  Lines          8843     8852    +9     
=========================================
+ Hits           8599     8608    +9     
  Misses          244      244           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DeepDiver1975
Copy link
Member

@SebastianKrupinski can you please fix the issue raised by cs-fixer? THX

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
@SebastianKrupinski
Copy link
Contributor Author

@DeepDiver1975 Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants