Skip to content

Commit

Permalink
remove named types for php7.3 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Nüsse <felix.nuesse@t-online.de>
  • Loading branch information
newhinton committed Oct 4, 2022
1 parent c81c542 commit 23a85f8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<summary lang="de">📸🔀☁️ Zufällige Hintergrundbilder von Unsplash</summary>
<description>Show a new random featured nature photo in your nextcloud. Now with choosable motives!</description>
<description lang="de">Zeigt ein zufällig ausgewähltes Naturfoto in ihrer Nextcloud. Jetzt auch mit selbstwählbaren Motiven!</description>
<version>2.0.0</version>
<version>2.0.1</version>
<licence>agpl</licence>
<author mail="hey@jancborchardt.net" homepage="https://jancborchardt.net">Jan-Christoph Borchardt</author>
<author homepage="https://github.com/marius-wieschollek">Marius Wieschollek</author>
Expand Down
4 changes: 2 additions & 2 deletions lib/Provider/NextcloudImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
class NextcloudImage extends Provider{

// Todo: Use URLGenerator. See AdminSettingsController
private string $THEMING_URL="/index.php/apps/theming/image/background";
public bool $ALLOW_CUSTOMIZING = false;
private $THEMING_URL="/index.php/apps/theming/image/background";
public $ALLOW_CUSTOMIZING = false;

public function getWhitelistResourceUrls(): array
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Provider/Unsplash.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class Unsplash extends Provider{
/**
* @var string
*/
public string $DEFAULT_SEARCH="nature,nature";
public bool $ALLOW_CUSTOMIZING = true;
public $DEFAULT_SEARCH="nature,nature";
public $ALLOW_CUSTOMIZING = true;

public function getWhitelistResourceUrls()
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Provider/WallhavenCC.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class WallhavenCC extends Provider{
* TODO : Properly get current nextcloud image, currently only the theming one is used.
* @var string
*/
public string $DEFAULT_SEARCH="nature,supercar";
public bool $ALLOW_CUSTOMIZING = true;
public $DEFAULT_SEARCH="nature,supercar";
public $ALLOW_CUSTOMIZING = true;

public function getWhitelistResourceUrls(): array
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Provider/WikimediaCommons.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class WikimediaCommons extends Provider{
* TODO : Properly get current nextcloud image, currently only the theming one is used.
* @var string
*/
public string $DEFAULT_SEARCH="landscape,dog,cat";
public bool $ALLOW_CUSTOMIZING = true;
public $DEFAULT_SEARCH="landscape,dog,cat";
public $ALLOW_CUSTOMIZING = true;

public function getWhitelistResourceUrls()
{
Expand Down
4 changes: 2 additions & 2 deletions lib/ProviderHandler/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ abstract class Provider {
* // Please override this value for your own provider.
* @var string
*/
public string $DEFAULT_SEARCH="nature";
public $DEFAULT_SEARCH="nature";

public bool $ALLOW_CUSTOMIZING = true;
public $ALLOW_CUSTOMIZING = true;


/**
Expand Down

0 comments on commit 23a85f8

Please sign in to comment.