Skip to content

Commit 3321233

Browse files
committed
Remove Class Field for Local Var
1 parent 2d6522d commit 3321233

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

src/NewTwitchApi/NewTwitchApi.php

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,30 @@ class NewTwitchApi
5050
private $videosApi;
5151
private $webhooksApi;
5252
private $webhooksSubscriptionApi;
53-
private $requestGenerator;
5453

5554
public function __construct(Client $helixGuzzleClient, string $clientId, string $clientSecret, Client $authGuzzleClient = null)
5655
{
57-
$this->requestGenerator = new RequestGenerator();
56+
$requestGenerator = new RequestGenerator();
5857
$this->oauthApi = new OauthApi($clientId, $clientSecret, $authGuzzleClient);
59-
$this->analyticsApi = new AnalyticsApi($helixGuzzleClient, $this->requestGenerator);
60-
$this->bitsApi = new BitsApi($helixGuzzleClient, $this->requestGenerator);
61-
$this->channelPointsApi = new ChannelPointsApi($helixGuzzleClient, $this->requestGenerator);
62-
$this->channelsApi = new ChannelsApi($helixGuzzleClient, $this->requestGenerator);
63-
$this->clipsApi = new ClipsApi($helixGuzzleClient, $this->requestGenerator);
64-
$this->entitlementsApi = new EntitlementsApi($helixGuzzleClient, $this->requestGenerator);
65-
$this->gamesApi = new GamesApi($helixGuzzleClient, $this->requestGenerator);
66-
$this->hypeTrainApi = new HypeTrainApi($helixGuzzleClient, $this->requestGenerator);
67-
$this->moderationApi = new ModerationApi($helixGuzzleClient, $this->requestGenerator);
68-
$this->pollsApi = new PollsApi($helixGuzzleClient, $this->requestGenerator);
69-
$this->predictionsApi = new PredictionsApi($helixGuzzleClient, $this->requestGenerator);
70-
$this->searchApi = new SearchApi($helixGuzzleClient, $this->requestGenerator);
71-
$this->streamsApi = new StreamsApi($helixGuzzleClient, $this->requestGenerator);
72-
$this->subscriptionsApi = new SubscriptionsApi($helixGuzzleClient, $this->requestGenerator);
73-
$this->tagsApi = new TagsApi($helixGuzzleClient, $this->requestGenerator);
74-
$this->teamsApi = new TeamsApi($helixGuzzleClient, $this->requestGenerator);
75-
$this->usersApi = new UsersApi($helixGuzzleClient, $this->requestGenerator);
76-
$this->videosApi = new VideosApi($helixGuzzleClient, $this->requestGenerator);
77-
$this->webhooksApi = new WebhooksApi($helixGuzzleClient, $this->requestGenerator);
58+
$this->analyticsApi = new AnalyticsApi($helixGuzzleClient, $requestGenerator);
59+
$this->bitsApi = new BitsApi($helixGuzzleClient, $requestGenerator);
60+
$this->channelPointsApi = new ChannelPointsApi($helixGuzzleClient, $requestGenerator);
61+
$this->channelsApi = new ChannelsApi($helixGuzzleClient, $requestGenerator);
62+
$this->clipsApi = new ClipsApi($helixGuzzleClient, $requestGenerator);
63+
$this->entitlementsApi = new EntitlementsApi($helixGuzzleClient, $requestGenerator);
64+
$this->gamesApi = new GamesApi($helixGuzzleClient, $requestGenerator);
65+
$this->hypeTrainApi = new HypeTrainApi($helixGuzzleClient, $requestGenerator);
66+
$this->moderationApi = new ModerationApi($helixGuzzleClient, $requestGenerator);
67+
$this->pollsApi = new PollsApi($helixGuzzleClient, $requestGenerator);
68+
$this->predictionsApi = new PredictionsApi($helixGuzzleClient, $requestGenerator);
69+
$this->searchApi = new SearchApi($helixGuzzleClient, $requestGenerator);
70+
$this->streamsApi = new StreamsApi($helixGuzzleClient, $requestGenerator);
71+
$this->subscriptionsApi = new SubscriptionsApi($helixGuzzleClient, $requestGenerator);
72+
$this->tagsApi = new TagsApi($helixGuzzleClient, $requestGenerator);
73+
$this->teamsApi = new TeamsApi($helixGuzzleClient, $requestGenerator);
74+
$this->usersApi = new UsersApi($helixGuzzleClient, $requestGenerator);
75+
$this->videosApi = new VideosApi($helixGuzzleClient, $requestGenerator);
76+
$this->webhooksApi = new WebhooksApi($helixGuzzleClient, $requestGenerator);
7877
$this->webhooksSubscriptionApi = new WebhooksSubscriptionApi($clientId, $clientSecret, $helixGuzzleClient);
7978
}
8079

0 commit comments

Comments
 (0)