public function composer()
    {
        $this->headers['headers'] = ['Accept' => 'application/json'];

        try {
            if ($this->isRunningGuzzle5()) {
                $this->headers['body'] = ['lock' => fopen(config('eyewitness.composer_lock_file_location'), 'r')];
            } else {
                $this->headers['multipart'] = [['name' => 'lock', 'contents' => fopen(config('eyewitness.composer_lock_file_location'), 'r')]];
            }
            $response = $this->client->post('https://security.sensiolabs.org/check_lock', $this->headers);
            return json_decode($response->getBody()->getContents(), true);
        } catch (Exception $e) {
            app(Eye::class)->logger()->error('SensioLabs Composer Lock check failed', $e);
        }

        return null;
    }
public function composer()
    {
        $this->headers['headers'] = ['Accept' => 'application/json'];

        try {
            if ($this->isRunningGuzzle5()) {
                $this->headers['body'] = ['lock' => fopen(config('eyewitness.composer_lock_file_location'), 'r')];
            } else {
                $this->headers['multipart'] = [['name' => 'lock', 'contents' => fopen(config('eyewitness.composer_lock_file_location'), 'r')]];
            }
            $response = $this->client->post('https://security.sensiolabs.org/check_lock', $this->headers);
            return json_decode($response->getBody()->getContents(), true);
        } catch (Exception $e) {
            app(Eye::class)->logger()->error('SensioLabs Composer Lock check failed', $e);
        }

        return null;
    }
public function composer ( ) { $ this -> headers [ 'headers' ] = [ 'Accept' => 'application/json' ] ; try { if ( $ this -> isRunningGuzzle5 ( ) ) { $ this -> headers [ 'body' ] = [ 'lock' => fopen ( config ( 'eyewitness.composer_lock_file_location' ) , 'r' ) ] ; } else { $ this -> headers [ 'multipart' ] = [ [ 'name' => 'lock' , 'contents' => fopen ( config ( 'eyewitness.composer_lock_file_location' ) , 'r' ) ] ] ; } $ response = $ this -> client -> post ( 'https://security.sensiolabs.org/check_lock' , $ this -> headers ) ; return json_decode ( $ response -> getBody ( ) -> getContents ( ) , true ) ; } catch ( Exception $ e ) { app ( Eye :: class ) -> logger ( ) -> error ( 'SensioLabs Composer Lock check failed' , $ e ) ; } return null ; }
Run a check for the composer lock against the SensioLabs API.

@return json
Run a check for the composer lock against the SensioLabs API .