Completed
Push — master ( 1fd21d...ba0dc8 )
by
unknown
06:50
created
src/Objects/Account.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * ]
24 24
      *
25 25
      *
26
-     * @param array  $param to search
26
+     * @param array  $params to search
27 27
      * @param string $condition
28 28
      * @return bool|array
29 29
      */
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
             return false;
34 34
         }
35 35
 
36
-        $query = 'SELECT Id, OwnerId FROM ' . $this->getType() . ' WHERE RecordTypeId = \'' . config('laravel-salesforce.record_type.account') . '\'';
36
+        $query = 'SELECT Id, OwnerId FROM '.$this->getType().' WHERE RecordTypeId = \''.config('laravel-salesforce.record_type.account').'\'';
37 37
 
38 38
         $paramsWithKeys = [];
39 39
         foreach ($params as $fieldName => $fieldValue) {
40
-            $paramsWithKeys[] = $fieldName . ' = \'' . addslashes(trim($fieldValue)) . '\'';
40
+            $paramsWithKeys[] = $fieldName.' = \''.addslashes(trim($fieldValue)).'\'';
41 41
         }
42 42
 
43
-        $query .= ' AND (' . implode(' ' . $condition . ' ', $paramsWithKeys) . ')';
43
+        $query .= ' AND ('.implode(' '.$condition.' ', $paramsWithKeys).')';
44 44
 
45 45
         $response = $this->query($query);
46 46
 
Please login to merge, or discard this patch.
src/Objects/Lead.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
             return false;
36 36
         }
37 37
 
38
-        $query = 'SELECT Id, OwnerId FROM ' . $this->getType() . ' WHERE RecordTypeId = \'' . config('laravel-salesforce.record_type.lead') . '\'';
38
+        $query = 'SELECT Id, OwnerId FROM '.$this->getType().' WHERE RecordTypeId = \''.config('laravel-salesforce.record_type.lead').'\'';
39 39
 
40 40
         $paramsWithKeys = [];
41 41
         foreach ($params as $fieldName => $fieldValue) {
42
-            $paramsWithKeys[] = $fieldName . ' = \'' . addslashes(trim($fieldValue)) . '\'';
42
+            $paramsWithKeys[] = $fieldName.' = \''.addslashes(trim($fieldValue)).'\'';
43 43
         }
44 44
 
45
-        $query .= ' AND (' . implode(' ' . $condition . ' ', $paramsWithKeys) . ')';
45
+        $query .= ' AND ('.implode(' '.$condition.' ', $paramsWithKeys).')';
46 46
 
47 47
         $response = $this->query($query);
48 48
 
Please login to merge, or discard this patch.
src/Salesforce.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             if (isset($args[1])) { //second param is optional
Please login to merge, or discard this patch.