Skip to content

Commit

Permalink
change quotation marks to single quotation
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilrt committed Sep 28, 2019
1 parent 5af3f15 commit 4334f22
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/AdobeConnectServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AdobeConnectServiceProvider extends ServiceProvider implements DeferrableP
*/
public function register()
{
$this->mergeConfigFrom(__DIR__ . "/config/adobeConnect.php", 'adobeConnect');
$this->mergeConfigFrom(__DIR__ . '/config/adobeConnect.php', 'adobeConnect');
$this->bindFacades();
}

Expand All @@ -36,7 +36,7 @@ public function register()
private function bindFacades()
{
$config = $this->getAdobeConfig();
$entities = $config["entities"];
$entities = $config['entities'];

$this->app->bind(Client::class, function () {
return $this->processClient();
Expand Down Expand Up @@ -66,7 +66,7 @@ private function bindFacades()
*/
private function getAdobeConfig()
{
return $this->app["config"]->get("adobeConnect");
return $this->app['config']->get('adobeConnect');
}

/**
Expand All @@ -79,10 +79,10 @@ private function processClient()
{
$config = $this->getAdobeConfig();

$connection = new Connection($config["host"], $config["connection"]);
$connection = new Connection($config['host'], $config['connection']);
$client = new Client($connection);

if ($config["session-cache"]["enabled"]) {
if ($config['session-cache']['enabled']) {
$this->loginClient($client);
}

Expand All @@ -108,10 +108,10 @@ private function loginClient(Client $client)
//on the other side if there is any valid session inside cache, it'll use it for creating client instance
// instead of sending login request to adobe server
if ($this->ValidateCache($cacheRepository, $config['session-cache']['key'])) {
$client->setSession($cacheRepository->get($config["session-cache"]["key"]));
$client->setSession($cacheRepository->get($config['session-cache']['key']));
} else {

$client->login($config["user-name"], $config["password"]);
$client->login($config['user-name'], $config['password']);
//store client session string if login was successful
if ($client->getSession()) {
$cacheRepository->put(
Expand All @@ -130,11 +130,11 @@ private function loginClient(Client $client)
*/
private function getCacheDriver()
{
$config = $this->app["config"]->get("adobeConnect");
if ($driver = $config["session-cache"]["driver"]) {
$config = $this->app['config']->get('adobeConnect');
if ($driver = $config['session-cache']['driver']) {
return $driver;
}
return $this->app["config"]->get("cache.default");
return $this->app['config']->get('cache.default');
}

/**
Expand Down

0 comments on commit 4334f22

Please sign in to comment.