Skip to content

Commit f9927c9

Browse files
committed
add more php test case
1 parent aab967f commit f9927c9

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

vscode/test/sample.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,38 @@ interface Another {
5151
goto Label;
5252

5353
Label:
54-
54+
55+
$db['default']['pconnect'] = TRUE;
56+
$db['default']['db_debug'] = TRUE;
57+
$db['default']['cache_on'] = FALSE;
58+
$db['default']['cachedir'] = '';
59+
$db['default']['char_set'] = 'utf8';
60+
$db['default']['dbcollat'] = 'utf8mb4_general_ci';
61+
62+
if (empty($this->instagram->getAccessToken())) {
63+
64+
65+
if (empty($accessToken)) {
66+
// receive OAuth token object
67+
if (!empty($_GET['code']))
68+
$instagramReturn = $this->instagram->getOAuthToken($_GET['code']);
69+
70+
if (isset($instagramReturn)) {
71+
// store user access token
72+
if (isset($instagramReturn->access_token)) {
73+
$this->instagram->setAccessToken($instagramReturn);
74+
} elseif ($instagramReturn->code !== 400) {
75+
if (isset($_GET['error'])) {
76+
echo 'An error occurred: ' . $_GET['error_description'];
77+
}
78+
79+
}
80+
81+
}
82+
} else {
83+
$this->instagram->setAccessToken($accessToken);
84+
}
85+
86+
87+
}
5588
?>

0 commit comments

Comments
 (0)