PluginProbe
Metricool – Social media and site statistics / 2.1.1
Metricool – Social media and site statistics v2.1.1
2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.27 trunk
← All changes | app/Http/Metricool/MetricoolApi.php +1 -46 2.0.2 → 2.1.1 View file →
@@ -11,9 +11,9 @@
11 11 * @mixin MetricoolClient
12 12 */
13 13 class MetricoolApi
14 14 {
15 - protected ?MetricoolClient $client = null;
15 + protected MetricoolClient $client;
16 16
17 17 public function __construct(MetricoolClient $client)
18 18 {
19 19 $this->client = $client;
@@ -72,53 +72,8 @@
72 72 */
73 73 public function brands(): Entities\Brands
74 74 {
75 75 return new Entities\Brands($this->client);
76 - }
77 -
78 - /**
79 - * List of languages that Metricool supports
80 - */
81 - public static function supportedLanguages(): array
82 - {
83 - return [
84 - [
85 - 'label' => __('English', 'metricool'),
86 - 'value' => 'en',
87 - ],
88 - [
89 - 'label' => __('Spanish', 'metricool'),
90 - 'value' => 'es',
91 - ],
92 - [
93 - 'label' => __('French', 'metricool'),
94 - 'value' => 'fr',
95 - ],
96 - [
97 - 'label' => __('Portuguese (Portugal)', 'metricool'),
98 - 'value' => 'pt',
99 - ],
100 - [
101 - 'label' => __('Portuguese (Brazil)', 'metricool'),
102 - 'value' => 'br',
103 - ],
104 - [
105 - 'label' => __('Deutsch', 'metricool'),
106 - 'value' => 'de',
107 - ],
108 - [
109 - 'label' => __('Italian', 'metricool'),
110 - 'value' => 'it',
111 - ],
112 - [
113 - 'label' => __('Danish', 'metricool'),
114 - 'value' => 'da',
115 - ],
116 - [
117 - 'label' => __('Dutch', 'metricool'),
118 - 'value' => 'nl',
119 - ],
120 - ];
121 76 }
122 77
123 78 /**
124 79 * This magic method is called when a method is requested that does not