diff --git a/composer.json b/composer.json index 005c77c..3dee56f 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,9 @@ ], "minimum-stability": "stable", "require": { - "php": "^8.0", + "php": "^8.1", "symfony/console": "^5.0|^6.0", - "nunomaduro/termwind": "^1.15" + "nunomaduro/termwind": "^1.16" }, "bin": [ "bin/shopmonkey" diff --git a/src/Commands/Pull.php b/src/Commands/Pull.php index 417c305..c0300d6 100644 --- a/src/Commands/Pull.php +++ b/src/Commands/Pull.php @@ -113,7 +113,6 @@ private function getTemplates($settings) $response = curl_exec($curl); - curl_close($curl); $response = json_decode($response, true); return $response['theme_templates']; @@ -146,7 +145,6 @@ private function saveThemeSettings($settings) $response = curl_exec($curl); - curl_close($curl); $response = json_decode($response, true); file_put_contents($this->getThemePath('settings.json'), json_encode($response['theme_settings'], JSON_PRETTY_PRINT)); @@ -175,7 +173,6 @@ private function saveThemeSettings($settings) $response = curl_exec($curl); - curl_close($curl); $response = json_decode($response, true); file_put_contents($this->getThemePath('settings_data.json'), json_encode($response['theme_settings'], JSON_PRETTY_PRINT)); @@ -209,7 +206,6 @@ private function getAssets($settings) $response = curl_exec($curl); - curl_close($curl); $response = json_decode($response, true); return $response['theme_assets']; @@ -283,7 +279,6 @@ private function availableToPull($settings) $response = curl_exec($curl); - curl_close($curl); // $response = json_decode($response, true); if (!$response) {