From d63828fa95769343a737aad6a811ea098e2d454f Mon Sep 17 00:00:00 2001 From: Davis Peixoto Date: Sun, 3 May 2015 22:56:23 -0300 Subject: [PATCH] going to fix according to Codacy, SensioLabs Insights and Scrutinizer CI --- README.md | 13 +++++++++---- src/Davispeixoto/LaravelSalesforce/Salesforce.php | 4 +--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2478c1e..8ab9173 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ -Laravel 4 Salesforce -==================== +# Laravel 4 Salesforce This Laravel 4 package provides an interface for using [Salesforce CRM](http://www.salesforce.com/) through its SOAP API. -Installation ------------- +[![Latest Stable Version](https://img.shields.io/github/release/davispeixoto/Laravel-4-Salesforce.svg)](https://packagist.org/packages/davispeixoto/laravel-salesforce) +[![Total Downloads](https://img.shields.io/packagist/dt/davispeixoto/Laravel-4-Salesforce.svg)](https://packagist.org/packages/davispeixoto/laravel-salesforce) +[![SensioLabsInsight](https://insight.sensiolabs.com/projects/3b9313d5-1340-4459-9973-070e19c289bc/small.png)](https://insight.sensiolabs.com/projects/3b9313d5-1340-4459-9973-070e19c289bc) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/davispeixoto/Laravel-4-Salesforce/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/davispeixoto/Laravel-4-Salesforce/?branch=master) +[![Codacy Badge](https://www.codacy.com/project/badge/a0e8c76d048d441194d4cfb03642bd0c)](https://www.codacy.com/app/davis-peixoto/Laravel-4-Salesforce) +[![Build Status](https://travis-ci.org/davispeixoto/Laravel-4-Salesforce.svg?branch=2.0.5)](https://travis-ci.org/davispeixoto/Laravel-4-Salesforce) + +## Installation Begin by installing this package through Composer. Edit your project's `composer.json` file to require `davispeixoto/laravel-salesforce`. diff --git a/src/Davispeixoto/LaravelSalesforce/Salesforce.php b/src/Davispeixoto/LaravelSalesforce/Salesforce.php index 82fb609..909af1f 100644 --- a/src/Davispeixoto/LaravelSalesforce/Salesforce.php +++ b/src/Davispeixoto/LaravelSalesforce/Salesforce.php @@ -2,7 +2,6 @@ use Davispeixoto\ForceDotComToolkitForPhp\SforceEnterpriseClient as Client; use Illuminate\Config\Repository; -use \Log; /** * Class Salesforce @@ -46,7 +45,6 @@ public function __construct(Repository $configExternal) $this->sfh->login($configExternal->get('laravel-salesforce::username'), $configExternal->get('laravel-salesforce::password') . $configExternal->get('laravel-salesforce::token')); } catch (\Exception $e) { - Log::error($e->getMessage()); throw new SalesforceException('Exception no Construtor' . $e->getMessage() . "\n\n" . $e->getTraceAsString()); } } @@ -107,7 +105,7 @@ public function upsert($ext_Id, $sObjects, $type = 'Contact') * * Merges up to 3 records into one. * - * @param \stdClass $mergeRequest A mergeRequest object + * @param stdClass $mergeRequest A mergeRequest object * @param string $type The Salesforce Object Type (actually can merge only Lead, Account and Contact objects) * @return \Davispeixoto\ForceDotComToolkitForPhp\MergeResult */