Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk authored and github-actions[bot] committed Apr 13, 2024
1 parent 9c977d2 commit 6cd6f72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/instagram-component.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
'proxy' => [
'url' => env('INSTAGRAM_COMPONENT_PROXY_URL'),
],
];
];
4 changes: 1 addition & 3 deletions src/BladeComponentInstagramServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Vormkracht10\BladeComponentInstagram\Components\InstagramComponent;
use Vormkracht10\BladeComponentInstagram\Components\InstagramCachedComponent;
use Vormkracht10\PermanentCache\Facades\PermanentCache;

class BladeComponentInstagramServiceProvider extends PackageServiceProvider
{
Expand All @@ -23,4 +21,4 @@ public function packageRegistered()
{
Blade::component('instagram', InstagramComponent::class);
}
}
}
8 changes: 3 additions & 5 deletions src/Components/InstagramComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

use Exception;
use GuzzleHttp\Client;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Http;
use Instagram\Api;
use Instagram\Auth\Checkpoint\ImapClient;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
use Vormkracht10\PermanentCache\CachedComponent;
use Vormkracht10\PermanentCache\Scheduled;

Expand All @@ -20,8 +20,7 @@ public function __construct(
public string $account,
public Collection $posts,
public int $limit = 12,
)
{
) {
$this->posts = $this->getMediaFromInstagram();
}

Expand All @@ -40,7 +39,7 @@ public function getApiClient(): Api

$cachePool = new FilesystemAdapter('instagram', 0, storage_path('framework/cache'));

if(config('instagram-component.proxy.url')) {
if (config('instagram-component.proxy.url')) {
$clientConfig = [
'proxy' => [
'https' => config('instagram-component.proxy.url'),
Expand Down Expand Up @@ -69,7 +68,6 @@ public function getImapClient(): ?ImapClient
return null;
}


public function getMediaFromInstagram()
{
$apiClient = $this->getApiClient();
Expand Down

0 comments on commit 6cd6f72

Please sign in to comment.