Skip to content

Commit

Permalink
Merge pull request #108 from hirak/improve-insight-score
Browse files Browse the repository at this point in the history
Improve sensiolabs-insight score
  • Loading branch information
hirak authored Jun 18, 2016
2 parents 63fff4a + c5f47a2 commit 66d37b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/CurlRemoteFilesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

use Composer\Config;
use Composer\IO;
use Composer\Downloader;
use Composer\Util;

class CurlRemoteFilesystem extends Util\RemoteFilesystem
Expand Down
5 changes: 3 additions & 2 deletions src/FetchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class FetchRequest extends BaseRequest
);

private $headers = array();
private $errno, $error, $info;
private $errno;
private $error;

/**
* @param string $url
Expand Down Expand Up @@ -68,7 +69,7 @@ public function fetch()

$this->errno = $errno = curl_errno($ch);
$this->error = curl_error($ch);
$this->info = $info = curl_getinfo($ch);
$info = curl_getinfo($ch);

if ($errno === CURLE_OK && $info['http_code'] === 200) {
return $result;
Expand Down
5 changes: 0 additions & 5 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
use Composer\IO;
use Composer\Plugin as CPlugin;
use Composer\EventDispatcher;
use Composer\Package;
use Composer\Script;
use Composer\Installer;
use Composer\DependencyResolver;

class Plugin implements
CPlugin\PluginInterface,
Expand Down Expand Up @@ -86,8 +83,6 @@ public static function getSubscribedEvents()
{
return array(
CPlugin\PluginEvents::PRE_FILE_DOWNLOAD => 'onPreFileDownload',
// Script\ScriptEvents::POST_ROOT_PACKAGE_INSTALL => 'prefetchComposerRepositories',
// Installer\InstallerEvents::PRE_DEPENDENCIES_SOLVING => 'prefetchComposerRepositories',
Installer\InstallerEvents::POST_DEPENDENCIES_SOLVING => array(
array('onPostDependenciesSolving', PHP_INT_MAX),
),
Expand Down

0 comments on commit 66d37b5

Please sign in to comment.