grosjo/nextcloud-grauphel

Deprecated / private API usage

cweiske opened this issue · 0 comments

Private:

$ php occ app:check-code grauphel -c private 
Analysing /home/cweiske/dev/tools/nextcloud/apps/grauphel/lib/search/provider.php
 1 errors
    line   42: OC_User - Static method of private class must not be called
App is not compliant

Deprecated:

$ php occ app:check-code grauphel -c deprecation
Analysing /home/cweiske/dev/tools/nextcloud/apps/grauphel/templates/appnavigation.php
 2 errors
    line   15: OCP\User - Static method of deprecated class must not be called
    line   15: OCP\User::isLoggedIn - Method of deprecated class must not be called
Analysing /home/cweiske/dev/tools/nextcloud/apps/grauphel/templates/gui-note.php
 1 errors
    line   17: OCP\Util::formatDate - Method of deprecated class must not be called
Analysing /home/cweiske/dev/tools/nextcloud/apps/grauphel/templates/tokens.php
 1 errors
    line   29: OCP\Util::formatDate - Method of deprecated class must not be called
Analysing /home/cweiske/dev/tools/nextcloud/apps/grauphel/templates/tag.php
 1 errors
    line   25: OCP\Util::formatDate - Method of deprecated class must not be called
App is not compliant

Related to #57.