@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Create object dynamically |
| 69 | 69 | * |
| 70 | - * @param $method |
|
| 70 | + * @param string $method |
|
| 71 | 71 | * @param $args |
| 72 | 72 | * @return bool |
| 73 | 73 | */ |
@@ -83,6 +83,9 @@ discard block |
||
| 83 | 83 | return (new BaseObject($this, $type))->create($args[0]); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $method |
|
| 88 | + */ |
|
| 86 | 89 | private function callUpdateOnObject($method, $args) |
| 87 | 90 | { |
| 88 | 91 | $type = substr($method, 6); |
@@ -95,6 +98,9 @@ discard block |
||
| 95 | 98 | return (new BaseObject($this, $type))->update($type, $args[0]); |
| 96 | 99 | } |
| 97 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $method |
|
| 103 | + */ |
|
| 98 | 104 | private function callDeleteOnObject($method, $args) |
| 99 | 105 | { |
| 100 | 106 | $type = substr($method, 6); |
@@ -107,6 +113,9 @@ discard block |
||
| 107 | 113 | return (new BaseObject($this, $type))->delete($args[0]); |
| 108 | 114 | } |
| 109 | 115 | |
| 116 | + /** |
|
| 117 | + * @param string $method |
|
| 118 | + */ |
|
| 110 | 119 | private function callGetOnObject($method, $args) |
| 111 | 120 | { |
| 112 | 121 | $type = substr($method, 3); |
@@ -119,6 +128,9 @@ discard block |
||
| 119 | 128 | return (new BaseObject($this, $type))->get($args[0]); |
| 120 | 129 | } |
| 121 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string $method |
|
| 133 | + */ |
|
| 122 | 134 | private function callExistsOnObject($method, $args) |
| 123 | 135 | { |
| 124 | 136 | $type = substr($method, 6); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | private function callCreateOnObject($method, $args) |
| 75 | 75 | { |
| 76 | 76 | $type = substr($method, 6); |
| 77 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 77 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 78 | 78 | |
| 79 | 79 | if (class_exists($class)) { |
| 80 | 80 | return (new $class($this))->create($args[0]); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | private function callUpdateOnObject($method, $args) |
| 87 | 87 | { |
| 88 | 88 | $type = substr($method, 6); |
| 89 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 89 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 90 | 90 | |
| 91 | 91 | if (class_exists($class)) { |
| 92 | 92 | return (new $class($this))->update($args[0], $args[1]); |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | private function callDeleteOnObject($method, $args) |
| 99 | 99 | { |
| 100 | 100 | $type = substr($method, 6); |
| 101 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 101 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 102 | 102 | |
| 103 | 103 | if (class_exists($class)) { |
| 104 | 104 | return (new $class($this))->delete($args[0]); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | private function callGetOnObject($method, $args) |
| 111 | 111 | { |
| 112 | 112 | $type = substr($method, 3); |
| 113 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 113 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 114 | 114 | |
| 115 | 115 | if (class_exists($class)) { |
| 116 | 116 | return (new $class($this))->get($args[0]); |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | private function callExistsOnObject($method, $args) |
| 123 | 123 | { |
| 124 | 124 | $type = substr($method, 6); |
| 125 | - $class = '\\Surge\\LaravelSalesforce\\Objects\\' . $type; |
|
| 125 | + $class = '\\Surge\\LaravelSalesforce\\Objects\\'.$type; |
|
| 126 | 126 | |
| 127 | 127 | if (class_exists($class)) { |
| 128 | 128 | return (new $class($this))->exists($args[0], $args[1]); |