Quellcode durchsuchen

Remove unused `use` statements & remove PConfig class

tags/2020.03
nupplaPhil vor 9 Monaten
Ursprung
Commit
800694e9b3
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: D8365C3D36B77D90
57 geänderte Dateien mit 0 neuen und 102 gelöschten Zeilen
  1. +0
    -2
      boot.php
  2. +0
    -1
      include/api.php
  3. +0
    -1
      include/conversation.php
  4. +0
    -1
      mod/community.php
  5. +0
    -1
      mod/network.php
  6. +0
    -1
      mod/ostatus_subscribe.php
  7. +0
    -1
      mod/ping.php
  8. +0
    -1
      mod/profiles.php
  9. +0
    -1
      mod/profperm.php
  10. +0
    -1
      mod/salmon.php
  11. +0
    -1
      mod/settings.php
  12. +0
    -1
      mod/update_display.php
  13. +0
    -1
      mod/update_network.php
  14. +0
    -1
      mod/update_notes.php
  15. +0
    -1
      mod/update_profile.php
  16. +0
    -1
      src/Content/Feature.php
  17. +0
    -1
      src/Content/Smilies.php
  18. +0
    -1
      src/Content/Widget.php
  19. +0
    -1
      src/Content/Widget/ContactBlock.php
  20. +0
    -22
      src/Core/PConfig.php
  21. +0
    -1
      src/Model/Event.php
  22. +0
    -1
      src/Model/FileTag.php
  23. +0
    -2
      src/Model/Item.php
  24. +0
    -1
      src/Model/ItemContent.php
  25. +0
    -1
      src/Model/Profile.php
  26. +0
    -1
      src/Model/User.php
  27. +0
    -1
      src/Module/Filer/SaveTag.php
  28. +0
    -1
      src/Module/Group.php
  29. +0
    -1
      src/Module/Invite.php
  30. +0
    -4
      src/Module/Profile.php
  31. +0
    -2
      src/Module/Register.php
  32. +0
    -2
      src/Module/Security/TwoFactor/Verify.php
  33. +0
    -3
      src/Module/Settings/TwoFactor/AppSpecific.php
  34. +0
    -3
      src/Module/Settings/TwoFactor/Index.php
  35. +0
    -3
      src/Module/Settings/TwoFactor/Recovery.php
  36. +0
    -4
      src/Module/Settings/TwoFactor/Verify.php
  37. +0
    -1
      src/Object/Post.php
  38. +0
    -1
      src/Protocol/ActivityPub/Processor.php
  39. +0
    -1
      src/Protocol/Diaspora.php
  40. +0
    -2
      src/Protocol/OStatus.php
  41. +0
    -1
      src/Util/Emailer.php
  42. +0
    -1
      src/Util/ExAuth.php
  43. +0
    -1
      src/Util/Temporal.php
  44. +0
    -1
      src/Worker/OnePoll.php
  45. +0
    -1
      update.php
  46. +0
    -1
      view/theme/duepuntozero/config.php
  47. +0
    -2
      view/theme/duepuntozero/style.php
  48. +0
    -1
      view/theme/duepuntozero/theme.php
  49. +0
    -2
      view/theme/frio/config.php
  50. +0
    -2
      view/theme/frio/php/default.php
  51. +0
    -1
      view/theme/frio/php/scheme.php
  52. +0
    -1
      view/theme/frio/style.php
  53. +0
    -2
      view/theme/quattro/config.php
  54. +0
    -2
      view/theme/quattro/style.php
  55. +0
    -2
      view/theme/vier/config.php
  56. +0
    -2
      view/theme/vier/style.php
  57. +0
    -1
      view/theme/vier/theme.php

+ 0
- 2
boot.php Datei anzeigen

@@ -17,9 +17,7 @@
* easily as email does today.
*/

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Database\DBA;


+ 0
- 1
include/api.php Datei anzeigen

@@ -15,7 +15,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Session;
use Friendica\Core\System;


+ 0
- 1
include/conversation.php Datei anzeigen

@@ -12,7 +12,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
mod/community.php Datei anzeigen

@@ -11,7 +11,6 @@ use Friendica\Content\Widget\TrendingTags;
use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;


+ 0
- 1
mod/network.php Datei anzeigen

@@ -16,7 +16,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
mod/ostatus_subscribe.php Datei anzeigen

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\DI;
use Friendica\Model\Contact;


+ 0
- 1
mod/ping.php Datei anzeigen

@@ -10,7 +10,6 @@ use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;


+ 0
- 1
mod/profiles.php Datei anzeigen

@@ -11,7 +11,6 @@ use Friendica\Content\Nav;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;


+ 0
- 1
mod/profperm.php Datei anzeigen

@@ -5,7 +5,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Content\Text\HTML;
use Friendica\Database\DBA;


+ 0
- 1
mod/salmon.php Datei anzeigen

@@ -5,7 +5,6 @@

use Friendica\App;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;


+ 0
- 1
mod/settings.php Datei anzeigen

@@ -12,7 +12,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Core\Theme;


+ 0
- 1
mod/update_display.php Datei anzeigen

@@ -6,7 +6,6 @@

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;

require_once "mod/display.php";


+ 0
- 1
mod/update_network.php Datei anzeigen

@@ -6,7 +6,6 @@

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;

require_once "mod/network.php";


+ 0
- 1
mod/update_notes.php Datei anzeigen

@@ -7,7 +7,6 @@

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;

require_once("mod/notes.php");


+ 0
- 1
mod/update_profile.php Datei anzeigen

@@ -7,7 +7,6 @@

use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Module\Profile;



+ 0
- 1
src/Content/Feature.php Datei anzeigen

@@ -8,7 +8,6 @@ namespace Friendica\Content;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\DI;

class Feature


+ 0
- 1
src/Content/Smilies.php Datei anzeigen

@@ -16,7 +16,6 @@ namespace Friendica\Content;

use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Util\Strings;



+ 0
- 1
src/Content/Widget.php Datei anzeigen

@@ -7,7 +7,6 @@ namespace Friendica\Content;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
src/Content/Widget/ContactBlock.php Datei anzeigen

@@ -9,7 +9,6 @@ namespace Friendica\Content\Widget;
use Friendica\Content\Text\HTML;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;


+ 0
- 22
src/Core/PConfig.php Datei anzeigen

@@ -1,22 +0,0 @@
<?php
/**
* User Configuration Class
*
* @file include/Core/PConfig.php
*
* @brief Contains the class with methods for user configuration
*/
namespace Friendica\Core;

use Friendica\DI;

/**
* @brief Management of user configuration storage
* Note:
* Please do not store booleans - convert to 0/1 integer values
* The DI::pConfig()->get() functions return boolean false for keys that are unset,
* and this could lead to subtle bugs.
*/
class PConfig
{
}

+ 0
- 1
src/Model/Event.php Datei anzeigen

@@ -9,7 +9,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;


+ 0
- 1
src/Model/FileTag.php Datei anzeigen

@@ -6,7 +6,6 @@
namespace Friendica\Model;

use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\DI;



+ 0
- 2
src/Model/Item.php Datei anzeigen

@@ -11,9 +11,7 @@ use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Lock;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
src/Model/ItemContent.php Datei anzeigen

@@ -7,7 +7,6 @@
namespace Friendica\Model;

use Friendica\Content\Text;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\DI;



+ 0
- 1
src/Model/Profile.php Datei anzeigen

@@ -15,7 +15,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
src/Model/User.php Datei anzeigen

@@ -13,7 +13,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Core\Worker;


+ 0
- 1
src/Module/Filer/SaveTag.php Datei anzeigen

@@ -4,7 +4,6 @@ namespace Friendica\Module\Filer;

use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model;


+ 0
- 1
src/Module/Group.php Datei anzeigen

@@ -8,7 +8,6 @@ namespace Friendica\Module;
use Friendica\BaseModule;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\Database\DBA;


+ 0
- 1
src/Module/Invite.php Datei anzeigen

@@ -4,7 +4,6 @@ namespace Friendica\Module;

use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model;


+ 0
- 4
src/Module/Profile.php Datei anzeigen

@@ -10,19 +10,15 @@ use Friendica\Core\ACL;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Session;
use Friendica\Core\System;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact as ContactModel;
use Friendica\Model\Group;
use Friendica\Model\Item;
use Friendica\Model\Profile as ProfileModel;
use Friendica\Model\User;
use Friendica\Module\Security\Login;
use Friendica\Protocol\ActivityPub;
use Friendica\Protocol\DFRN;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Security;
use Friendica\Util\Strings;


+ 0
- 2
src/Module/Register.php Datei anzeigen

@@ -2,7 +2,6 @@

namespace Friendica\Module;

use Friendica\App\BaseURL;
use Friendica\BaseModule;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Config;
@@ -10,7 +9,6 @@ use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\L10n\L10n as L10nClass;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Worker;
use Friendica\Database\DBA;


+ 0
- 2
src/Module/Security/TwoFactor/Verify.php Datei anzeigen

@@ -3,9 +3,7 @@
namespace Friendica\Module\Security\TwoFactor;

use Friendica\BaseModule;
use Friendica\App\Authentication;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\DI;


+ 0
- 3
src/Module/Settings/TwoFactor/AppSpecific.php Datei anzeigen

@@ -1,11 +1,8 @@
<?php


namespace Friendica\Module\Settings\TwoFactor;


use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\TwoFactor\AppSpecificPassword;


+ 0
- 3
src/Module/Settings/TwoFactor/Index.php Datei anzeigen

@@ -1,11 +1,8 @@
<?php


namespace Friendica\Module\Settings\TwoFactor;


use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\DI;


+ 0
- 3
src/Module/Settings/TwoFactor/Recovery.php Datei anzeigen

@@ -1,11 +1,8 @@
<?php


namespace Friendica\Module\Settings\TwoFactor;


use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Model\TwoFactor\RecoveryCode;


+ 0
- 4
src/Module/Settings/TwoFactor/Verify.php Datei anzeigen

@@ -1,16 +1,12 @@
<?php


namespace Friendica\Module\Settings\TwoFactor;


use BaconQrCode\Renderer\Image\SvgImageBackEnd;
use BaconQrCode\Renderer\ImageRenderer;
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;
use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\DI;


+ 0
- 1
src/Object/Post.php Datei anzeigen

@@ -11,7 +11,6 @@ use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Core\Session;


+ 0
- 1
src/Protocol/ActivityPub/Processor.php Datei anzeigen

@@ -8,7 +8,6 @@ use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;


+ 0
- 1
src/Protocol/Diaspora.php Datei anzeigen

@@ -17,7 +17,6 @@ use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Core\Worker;


+ 0
- 2
src/Protocol/OStatus.php Datei anzeigen

@@ -11,9 +11,7 @@ use Friendica\Content\Text\HTML;
use Friendica\Core\Cache\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Lock;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;


+ 0
- 1
src/Util/Emailer.php Datei anzeigen

@@ -7,7 +7,6 @@ namespace Friendica\Util;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Protocol\Email;

/**


+ 0
- 1
src/Util/ExAuth.php Datei anzeigen

@@ -35,7 +35,6 @@
namespace Friendica\Util;

use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\User;


+ 0
- 1
src/Util/Temporal.php Datei anzeigen

@@ -9,7 +9,6 @@ namespace Friendica\Util;
use DateTime;
use DateTimeZone;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;



+ 0
- 1
src/Worker/OnePoll.php Datei anzeigen

@@ -6,7 +6,6 @@ namespace Friendica\Worker;

use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\DI;


+ 0
- 1
update.php Datei anzeigen

@@ -4,7 +4,6 @@ use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\PConfig;
use Friendica\Core\Update;
use Friendica\Core\Worker;
use Friendica\Database\DBA;


+ 0
- 1
view/theme/duepuntozero/config.php Datei anzeigen

@@ -6,7 +6,6 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;



+ 0
- 2
view/theme/duepuntozero/style.php Datei anzeigen

@@ -3,9 +3,7 @@
* @file view/theme/duepuntozero/style.php
*/
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Model\Profile;

if (file_exists("$THEMEPATH/style.css")) {
echo file_get_contents("$THEMEPATH/style.css");


+ 0
- 1
view/theme/duepuntozero/theme.php Datei anzeigen

@@ -2,7 +2,6 @@

use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\DI;



+ 0
- 2
view/theme/frio/config.php Datei anzeigen

@@ -3,9 +3,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;

require_once 'view/theme/frio/php/Image.php';


+ 0
- 2
view/theme/frio/php/default.php Datei anzeigen

@@ -8,8 +8,6 @@
<?php

use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Model\Profile;



+ 0
- 1
view/theme/frio/php/scheme.php Datei anzeigen

@@ -18,7 +18,6 @@
* 'overwrites' => Variables which overwriting custom settings
*/

use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Util\Strings;



+ 0
- 1
view/theme/frio/style.php Datei anzeigen

@@ -4,7 +4,6 @@
*/

use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Util\Strings;



+ 0
- 2
view/theme/quattro/config.php Datei anzeigen

@@ -6,9 +6,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;

function theme_content(App $a) {


+ 0
- 2
view/theme/quattro/style.php Datei anzeigen

@@ -3,9 +3,7 @@
* @file view/theme/quattro/style.php
*/
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Model\Profile;

$uid = $_REQUEST['puid'] ?? 0;



+ 0
- 2
view/theme/vier/config.php Datei anzeigen

@@ -6,9 +6,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\System;
use Friendica\DI;

require_once __DIR__ . '/theme.php';


+ 0
- 2
view/theme/vier/style.php Datei anzeigen

@@ -4,9 +4,7 @@
*/
use Friendica\Core\Logger;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\DI;
use Friendica\Model\Profile;

$uid = $_REQUEST['puid'] ?? 0;



+ 0
- 1
view/theme/vier/theme.php Datei anzeigen

@@ -14,7 +14,6 @@ use Friendica\Content\ForumManager;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Search;
use Friendica\Database\DBA;


Laden…
Abbrechen
Speichern