Completed
Pull Request — master (#15)
by
unknown
03:16
created
src/Davispeixoto/LaravelSalesforce/LaravelSalesforceServiceProvider.php 2 patches
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -10,46 +10,46 @@
 block discarded – undo
10 10
  */
11 11
 class LaravelSalesforceServiceProvider extends ServiceProvider
12 12
 {
13
-    /**
14
-     * Indicates if loading of the provider is deferred.
15
-     *
16
-     * @var bool
17
-     */
18
-    protected $defer = true;
13
+	/**
14
+	 * Indicates if loading of the provider is deferred.
15
+	 *
16
+	 * @var bool
17
+	 */
18
+	protected $defer = true;
19 19
 
20
-    /**
21
-     * Bootstrap the application events.
22
-     *
23
-     * @return void
24
-     */
25
-    public function boot()
26
-    {
27
-        $this->package('davispeixoto/laravel-salesforce');
28
-    }
20
+	/**
21
+	 * Bootstrap the application events.
22
+	 *
23
+	 * @return void
24
+	 */
25
+	public function boot()
26
+	{
27
+		$this->package('davispeixoto/laravel-salesforce');
28
+	}
29 29
 
30
-    /**
31
-     * Register the service provider.
32
-     *
33
-     * @return void
34
-     */
35
-    public function register()
36
-    {
37
-        $this->app['salesforce'] = $this->app->singleton('salesforce', function ($app) {
38
-            $sf = new Salesforce(new Client());
39
-            $sf->connect($app['config']);
30
+	/**
31
+	 * Register the service provider.
32
+	 *
33
+	 * @return void
34
+	 */
35
+	public function register()
36
+	{
37
+		$this->app['salesforce'] = $this->app->singleton('salesforce', function ($app) {
38
+			$sf = new Salesforce(new Client());
39
+			$sf->connect($app['config']);
40 40
 
41
-            return $sf;
42
-        });
43
-    }
41
+			return $sf;
42
+		});
43
+	}
44 44
 
45
-    /**
46
-     * Get the services provided by the provider.
47
-     *
48
-     * @return array
49
-     */
50
-    public function provides()
51
-    {
52
-        return array('salesforce');
53
-    }
45
+	/**
46
+	 * Get the services provided by the provider.
47
+	 *
48
+	 * @return array
49
+	 */
50
+	public function provides()
51
+	{
52
+		return array('salesforce');
53
+	}
54 54
 
55 55
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->app['salesforce'] = $this->app->singleton('salesforce', function ($app) {
37
+        $this->app['salesforce'] = $this->app->singleton('salesforce', function($app) {
38 38
             $sf = new Salesforce(new Client());
39 39
             $sf->connect($app['config']);
40 40
 
Please login to merge, or discard this patch.
src/Davispeixoto/LaravelSalesforce/Salesforce.php 2 patches
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -14,68 +14,68 @@
 block discarded – undo
14 14
  */
15 15
 class Salesforce
16 16
 {
17
-    /**
18
-     * @var Client $sfh The Salesforce Handler
19
-     */
20
-    public $sfh;
17
+	/**
18
+	 * @var Client $sfh The Salesforce Handler
19
+	 */
20
+	public $sfh;
21 21
 
22
-    /**
23
-     * Salesforce constructor.
24
-     *
25
-     * @param Client $sfh
26
-     * @throws SalesforceException
27
-     */
28
-    public function __construct(Client $sfh)
29
-    {
30
-        $this->sfh = $sfh;
31
-    }
22
+	/**
23
+	 * Salesforce constructor.
24
+	 *
25
+	 * @param Client $sfh
26
+	 * @throws SalesforceException
27
+	 */
28
+	public function __construct(Client $sfh)
29
+	{
30
+		$this->sfh = $sfh;
31
+	}
32 32
 
33
-    /**
34
-     * @param $method
35
-     * @param $args
36
-     * @return mixed
37
-     */
38
-    public function __call($method, $args)
39
-    {
40
-        return call_user_func_array(array($this->sfh, $method), $args);
41
-    }
33
+	/**
34
+	 * @param $method
35
+	 * @param $args
36
+	 * @return mixed
37
+	 */
38
+	public function __call($method, $args)
39
+	{
40
+		return call_user_func_array(array($this->sfh, $method), $args);
41
+	}
42 42
 
43
-    /**
44
-     * Authenticates into Salesforce according to
45
-     * the provided credentials and WSDL file
46
-     *
47
-     * @param $configExternal
48
-     * @throws SalesforceException
49
-     */
50
-    public function connect($configExternal)
51
-    {
52
-        $wsdl = $configExternal->get('salesforce.wsdl');
43
+	/**
44
+	 * Authenticates into Salesforce according to
45
+	 * the provided credentials and WSDL file
46
+	 *
47
+	 * @param $configExternal
48
+	 * @throws SalesforceException
49
+	 */
50
+	public function connect($configExternal)
51
+	{
52
+		$wsdl = $configExternal->get('salesforce.wsdl');
53 53
 
54
-        if (empty($wsdl)) {
55
-            $wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml';
56
-        }
54
+		if (empty($wsdl)) {
55
+			$wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml';
56
+		}
57 57
 
58
-        $user = $configExternal->get('salesforce.username');
59
-        $pass = $configExternal->get('salesforce.password');
60
-        $token = $configExternal->get('salesforce.token');
58
+		$user = $configExternal->get('salesforce.username');
59
+		$pass = $configExternal->get('salesforce.password');
60
+		$token = $configExternal->get('salesforce.token');
61 61
 
62
-        try {
63
-            $this->sfh->createConnection($wsdl);
64
-            $this->sfh->login($user, $pass . $token);
65
-        } catch (Exception $e) {
66
-            throw new SalesforceException('Exception at Constructor' . $e->getMessage() . "\n\n" . $e->getTraceAsString());
67
-        }
68
-    }
62
+		try {
63
+			$this->sfh->createConnection($wsdl);
64
+			$this->sfh->login($user, $pass . $token);
65
+		} catch (Exception $e) {
66
+			throw new SalesforceException('Exception at Constructor' . $e->getMessage() . "\n\n" . $e->getTraceAsString());
67
+		}
68
+	}
69 69
 
70
-    /*
70
+	/*
71 71
      * Debugging functions
72 72
      */
73 73
 
74
-    /**
75
-     * @return mixed
76
-     */
77
-    public function dump()
78
-    {
79
-        return print_r($this, true);
80
-    }
74
+	/**
75
+	 * @return mixed
76
+	 */
77
+	public function dump()
78
+	{
79
+		return print_r($this, true);
80
+	}
81 81
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $wsdl = $configExternal->get('salesforce.wsdl');
53 53
 
54 54
         if (empty($wsdl)) {
55
-            $wsdl = __DIR__ . '/Wsdl/enterprise.wsdl.xml';
55
+            $wsdl = __DIR__.'/Wsdl/enterprise.wsdl.xml';
56 56
         }
57 57
 
58 58
         $user = $configExternal->get('salesforce.username');
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
 
62 62
         try {
63 63
             $this->sfh->createConnection($wsdl);
64
-            $this->sfh->login($user, $pass . $token);
64
+            $this->sfh->login($user, $pass.$token);
65 65
         } catch (Exception $e) {
66
-            throw new SalesforceException('Exception at Constructor' . $e->getMessage() . "\n\n" . $e->getTraceAsString());
66
+            throw new SalesforceException('Exception at Constructor'.$e->getMessage()."\n\n".$e->getTraceAsString());
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.