Completed
Push — development ( d393e3...2df1da )
by Ashutosh
10:22
created
app/Http/Controllers/Auth/BaseAuthController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
         $pipedrive = new \Devio\Pipedrive\Pipedrive($token);
217 217
 
218 218
         $orgId  = $pipedrive->organizations->add(['name'=>$user->company])->getContent()->data->id;
219
-         $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email,
219
+            $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email,
220 220
             'phone'=>'+'.$user->mobile_code.$user->mobile,'org_id'=>$orgId]);
221 221
 
222 222
         // $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email,
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,14 +215,14 @@
 block discarded – undo
215 215
         $countryFullName = Country::where('country_code_char2', $user->country)->pluck('nicename')->first();
216 216
         $pipedrive = new \Devio\Pipedrive\Pipedrive($token);
217 217
 
218
-        $orgId  = $pipedrive->organizations->add(['name'=>$user->company])->getContent()->data->id;
219
-         $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email,
220
-            'phone'=>'+'.$user->mobile_code.$user->mobile,'org_id'=>$orgId]);
218
+        $orgId = $pipedrive->organizations->add(['name'=>$user->company])->getContent()->data->id;
219
+         $person = $pipedrive->persons()->add(['name' => $user->first_name.' '.$user->last_name, 'email'=>$user->email,
220
+            'phone'=>'+'.$user->mobile_code.$user->mobile, 'org_id'=>$orgId]);
221 221
 
222 222
         // $person = $pipedrive->persons()->add(['name' => $user->first_name .' '. $user->last_name,'email'=>$user->email,
223 223
         //     'phone'=>'+'.$user->mobile_code.$user->mobile,'org_id'=>$orgId,'af1c1908b70a61f2baf8b33a975a185cce1aefe5'=>$countryFullName]);
224
-        $personId= $person->getContent()->data->id;
225
-        $organization = $pipedrive->deals()->add(['title'=>$user->company.' '.'deal','person_id'=>$personId,'org_id'=>$orgId]);
224
+        $personId = $person->getContent()->data->id;
225
+        $organization = $pipedrive->deals()->add(['title'=>$user->company.' '.'deal', 'person_id'=>$personId, 'org_id'=>$orgId]);
226 226
 
227 227
     }
228 228
 }
Please login to merge, or discard this patch.