Completed
Push — master ( 2dac38...17d12a )
by Ashleigh
01:38
created
src/Objects/AbstractObject.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Surge\LaravelSalesforce\Objects;
4 4
 
5 5
 use Event;
6
-use GuzzleHttp\ClientInterface;
7 6
 use Surge\LaravelSalesforce\Events\RequestSent;
8 7
 use Surge\LaravelSalesforce\Events\ResponseReceived;
9 8
 use Surge\LaravelSalesforce\Exceptions\SalesforceException;
Please login to merge, or discard this patch.
src/Salesforce.php 3 patches
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Create object dynamically
66 66
      *
67
-     * @param $method
67
+     * @param string $method
68 68
      * @param $args
69 69
      * @return bool
70 70
      */
@@ -80,6 +80,9 @@  discard block
 block discarded – undo
80 80
         return (new BaseObject($this, $type))->create($args[0]);
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $method
85
+     */
83 86
     private function callUpdateOnObject($method, $args)
84 87
     {
85 88
         $type = substr($method, 6);
@@ -92,6 +95,9 @@  discard block
 block discarded – undo
92 95
         return (new BaseObject($this, $type))->update($type, $args[0]);
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $method
100
+     */
95 101
     private function callDeleteOnObject($method, $args)
96 102
     {
97 103
         $type = substr($method, 6);
@@ -104,6 +110,9 @@  discard block
 block discarded – undo
104 110
         return (new BaseObject($this, $type))->delete($type, $args[0]);
105 111
     }
106 112
 
113
+    /**
114
+     * @param string $method
115
+     */
107 116
     private function callGetOnObject($method, $args)
108 117
     {
109 118
         $type = substr($method, 3);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Surge\LaravelSalesforce;
4 4
 
5
-use Event;
6 5
 use GuzzleHttp\ClientInterface;
7 6
 use Surge\LaravelSalesforce\Objects\BaseObject;
8 7
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     private function callCreateOnObject($method, $args)
72 72
     {
73 73
         $type = substr($method, 6);
74
-        $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type;
74
+        $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type;
75 75
 
76 76
         if (class_exists($class)) {
77 77
             return (new $class($this))->create($args[0]);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     private function callUpdateOnObject($method, $args)
84 84
     {
85 85
         $type = substr($method, 6);
86
-        $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type;
86
+        $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type;
87 87
 
88 88
         if (class_exists($class)) {
89 89
             return (new $class($this))->update($args[0]);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     private function callDeleteOnObject($method, $args)
96 96
     {
97 97
         $type = substr($method, 6);
98
-        $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type;
98
+        $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type;
99 99
 
100 100
         if (class_exists($class)) {
101 101
             return (new $class($this))->delete($args[0]);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     private function callGetOnObject($method, $args)
108 108
     {
109 109
         $type = substr($method, 3);
110
-        $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type;
110
+        $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type;
111 111
 
112 112
         if (class_exists($class)) {
113 113
             return (new $class($this))->get($args[0]);
Please login to merge, or discard this patch.