You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in Encore\Admin\Admin, it is inconsistently designated as public function rather than public static function. It doesn't affect actual usage right now but it is an inconsistency that should be fixed.
ZsgsDesign
changed the title
fixed favicon method consistency with document and usages
fixed favicon method inconsistency with document and usages
Oct 11, 2021
@jxlwqq Still, when making declarations of methods, static methods should be consistent with usages, it is not a bug but about coding consistency. As stated earlier, it doesn't affect actual usage. But I still believe we should change that, as other static methods all declared with proper static.
@jxlwqq As stated earlier, it doesn't affect actual usage. You can even call Encore\Admin\Admin::favicon() and it would be fine. It is just about code consistency, that other parts of Encore\Admin\Admin methods like js or style all uses static, and Laravel codes either. You can see Arr and Str all uses static declarations:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In documents and views,
favicon()was used like:However, in Encore\Admin\Admin, it is inconsistently designated as
public functionrather thanpublic static function. It doesn't affect actual usage right now but it is an inconsistency that should be fixed.