Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit eac40c4

Browse files
committed
Fix: Remove unused local variables
1 parent 4afdee8 commit eac40c4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests/FacebookTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testInstantiatingWithoutAppIdThrows()
9191
$config = [
9292
'app_secret' => 'foo_secret',
9393
];
94-
$fb = new Facebook($config);
94+
new Facebook($config);
9595
}
9696

9797
/**
@@ -104,7 +104,7 @@ public function testInstantiatingWithoutAppSecretThrows()
104104
$config = [
105105
'app_id' => 'foo_id',
106106
];
107-
$fb = new Facebook($config);
107+
new Facebook($config);
108108
}
109109

110110
/**
@@ -115,7 +115,7 @@ public function testSettingAnInvalidHttpClientHandlerThrows()
115115
$config = array_merge($this->config, [
116116
'http_client_handler' => 'foo_handler',
117117
]);
118-
$fb = new Facebook($config);
118+
new Facebook($config);
119119
}
120120

121121
public function testCurlHttpClientHandlerCanBeForced()
@@ -165,7 +165,7 @@ public function testSettingAnInvalidPersistentDataHandlerThrows()
165165
$config = array_merge($this->config, [
166166
'persistent_data_handler' => 'foo_handler',
167167
]);
168-
$fb = new Facebook($config);
168+
new Facebook($config);
169169
}
170170

171171
public function testPersistentDataHandlerCanBeForced()
@@ -191,7 +191,7 @@ public function testSettingAnInvalidUrlHandlerThrows()
191191
$config = array_merge($this->config, [
192192
'url_detection_handler' => 'foo_handler',
193193
]);
194-
$fb = new Facebook($config);
194+
new Facebook($config);
195195
}
196196

197197
public function testTheUrlHandlerWillDefaultToTheFacebookImplementation()
@@ -302,7 +302,7 @@ public function testSettingAnAccessThatIsNotStringOrAccessTokenThrows()
302302
$config = array_merge($this->config, [
303303
'default_access_token' => 123,
304304
]);
305-
$fb = new Facebook($config);
305+
new Facebook($config);
306306
}
307307

308308
public function testCreatingANewRequestWillDefaultToTheProperConfig()
@@ -413,6 +413,6 @@ public function testMaxingOutRetriesWillThrow()
413413
'http_client_handler' => $client,
414414
]);
415415
$fb = new Facebook($config);
416-
$response = $fb->uploadVideo('4', __DIR__.'/foo.txt', [], 'foo-token', 3);
416+
$fb->uploadVideo('4', __DIR__.'/foo.txt', [], 'foo-token', 3);
417417
}
418418
}

tests/FileUpload/FacebookResumableUploaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function testStartWillLetErrorResponsesThrow()
8686
$this->graphApi->failOnStart();
8787
$uploader = new FacebookResumableUploader($this->fbApp, $this->client, 'access_token', 'v2.4');
8888

89-
$chunk = $uploader->start('/me/videos', $this->file);
89+
$uploader->start('/me/videos', $this->file);
9090
}
9191

9292
public function testFailedResumableTransferWillNotThrowAndReturnSameChunk()

tests/PersistentData/FacebookSessionPersistentDataHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FacebookSessionPersistentDataHandlerTest extends \PHPUnit_Framework_TestCa
3232
*/
3333
public function testInactiveSessionsWillThrow()
3434
{
35-
$handler = new FacebookSessionPersistentDataHandler();
35+
new FacebookSessionPersistentDataHandler();
3636
}
3737

3838
public function testCanSetAValue()

0 commit comments

Comments
 (0)