Completed
Push — development ( 3f3e53...8b03af )
by Ashutosh
11:48
created
app/Model/Common/State.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
         'state_subdivision_id', 'country_code_char2',
14 14
         'country_code_char3', 'state_subdivision_name',
15 15
         'state_subdivision_alternate_names', 'primary_level_name',
16
-         'state_subdivision_code',
16
+            'state_subdivision_code',
17 17
     ];
18 18
 
19 19
     public $timestamps = false;
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
         \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
18 18
         \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
19 19
         // \App\Http\Middleware\TrimStrings::class,
20
-          \Illuminate\Session\Middleware\StartSession::class,
21
-             \Illuminate\View\Middleware\ShareErrorsFromSession::class,
22
-              // \Voerro\Laravel\VisitorTracker\Middleware\RecordVisits::class,
23
-              // \Torann\Currency\Middleware\CurrencyMiddleware::class,
20
+            \Illuminate\Session\Middleware\StartSession::class,
21
+                \Illuminate\View\Middleware\ShareErrorsFromSession::class,
22
+                // \Voerro\Laravel\VisitorTracker\Middleware\RecordVisits::class,
23
+                // \Torann\Currency\Middleware\CurrencyMiddleware::class,
24 24
         // \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
25 25
     ];
26 26
 
@@ -31,21 +31,21 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected $middlewareGroups = [
33 33
         'web' => [
34
-             \App\Http\Middleware\Install::class,
34
+                \App\Http\Middleware\Install::class,
35 35
             \App\Http\Middleware\EncryptCookies::class,
36 36
             \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
37 37
             // \Illuminate\Session\Middleware\StartSession::class,
38 38
             // \Illuminate\Session\Middleware\AuthenticateSession::class,
39 39
             // \Illuminate\View\Middleware\ShareErrorsFromSession::class,
40
-           // \App\Http\Middleware\VerifyCsrfToken::class,
40
+            // \App\Http\Middleware\VerifyCsrfToken::class,
41 41
             \Illuminate\Routing\Middleware\SubstituteBindings::class,
42 42
             \Barryvdh\Cors\HandleCors::class,
43
-             // \App\Http\Middleware\IsInstalled::class,
43
+                // \App\Http\Middleware\IsInstalled::class,
44 44
 
45 45
         ],
46
-         'admin'        => [\App\Http\Middleware\Admin::class],
47
-          'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
48
-           'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
46
+            'admin'        => [\App\Http\Middleware\Admin::class],
47
+            'guest'       => [\App\Http\Middleware\RedirectIfAuthenticated::class],
48
+            'auth'       => [\Illuminate\Auth\Middleware\Authenticate::class],
49 49
         'auth.basic'    => [\Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class],
50 50
 
51 51
         'api' => [
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/AuthController.php 2 patches
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,10 +72,12 @@  discard block
 block discarded – undo
72 72
                 $pipedriveStatus = StatusSetting::pluck('pipedrive_status')->first();
73 73
                 $zohoStatus = StatusSetting::pluck('zoho_status')->first();
74 74
                 $mailchimpStatus = StatusSetting::pluck('mailchimp_status')->first();
75
-                if ($pipedriveStatus == 1) {//Add to Pipedrive
75
+                if ($pipedriveStatus == 1) {
76
+//Add to Pipedrive
76 77
                     $this->addToPipedrive($user);
77 78
                 }
78
-                if ($zohoStatus) {//Add to Zoho
79
+                if ($zohoStatus) {
80
+//Add to Zoho
79 81
                     $zoho = $this->reqFields($user, $email);
80 82
                     $auth = ApiKey::where('id', 1)->value('zoho_api_key');
81 83
                     $zohoUrl = 'https://crm.zoho.com/crm/private/xml/Leads/insertRecords??duplicateCheck=1&';
@@ -98,7 +100,8 @@  discard block
 block discarded – undo
98 100
                     curl_close($ch);
99 101
                 }
100 102
 
101
-                if ($mailchimpStatus == 1) {//Add to Mailchimp
103
+                if ($mailchimpStatus == 1) {
104
+//Add to Mailchimp
102 105
                     $mailchimp = new \App\Http\Controllers\Common\MailChimpController();
103 106
                     $r = $mailchimp->addSubscriber($user->email);
104 107
                 }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,21 +199,21 @@
 block discarded – undo
199 199
             switch ($request->input('type')) {
200 200
                 case 'text':
201 201
                    $array = json_decode($result, true);
202
-                   $response = ['type' => 'success',
203
-                   'message'           => 'OTP has been resent to '.$number.'.Please Enter the OTP to login!!', ];
202
+                    $response = ['type' => 'success',
203
+                    'message'           => 'OTP has been resent to '.$number.'.Please Enter the OTP to login!!', ];
204 204
 
205 205
                     break;
206 206
 
207 207
                     case 'voice':
208 208
                     $array = json_decode($result, true);
209 209
                     $response = ['type' => 'success',
210
-                   'message'            => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ];
210
+                    'message'            => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ];
211 211
                     break;
212 212
 
213 213
                 default:
214 214
                     $array = json_decode($result, true);
215 215
                     $response = ['type' => 'success',
216
-                   'message'            => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ];
216
+                    'message'            => 'Voice call has been sent to '.$number.'.Please Enter the OTP received on the call to login!!', ];
217 217
                     break;
218 218
 
219 219
             }
Please login to merge, or discard this patch.
app/Http/Requests/User/ProfileRequest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@
 block discarded – undo
45 45
             $userid = \Auth::user()->id;
46 46
 
47 47
             return [
48
-                     'first_name'            => 'required|min:3|max:30',
48
+                        'first_name'            => 'required|min:3|max:30',
49 49
                     'last_name'              => 'required|max:30',
50
-                     'mobile'                => 'required|regex:/[0-9]/|min:5|max:20',
51
-                     'email'                 => 'required',
50
+                        'mobile'                => 'required|regex:/[0-9]/|min:5|max:20',
51
+                        'email'                 => 'required',
52 52
                     'mobile_code'            => 'required',
53 53
                     'mobile'                 => 'required',
54 54
                     'zip'                    => 'required|numeric',
Please login to merge, or discard this patch.
app/Http/Controllers/License/LicenseController.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         }
176 176
         $url = $this->url;
177 177
         $isIP = (bool) ip2long($domain);
178
-         if ($isIP == true) {
178
+            if ($isIP == true) {
179 179
             $requiredomain = 0;
180 180
             $ip = $domain;
181 181
             $domain = '';
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             }
261 261
         }
262 262
         return ['installed_path' => $installation_domain , 'installed_ip' => $installation_ip];
263
-     }
263
+        }
264 264
 
265 265
     //Update  Expiration Date After Renewal
266 266
     public function updateExpirationDate($licenseCode, $expiryDate, $productId, $domain, $orderNo, $licenseExpiry, $supportExpiry)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@
 block discarded – undo
259 259
                 }
260 260
             }
261 261
         }
262
-        return ['installed_path' => $installation_domain , 'installed_ip' => $installation_ip];
262
+        return ['installed_path' => $installation_domain, 'installed_ip' => $installation_ip];
263 263
      }
264 264
 
265 265
     //Update  Expiration Date After Renewal
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,8 @@  discard block
 block discarded – undo
83 83
             $getProductId = $this->postCurl($url, "api_key_secret=$api_key_secret&api_function=search
84 84
             &search_type=product&search_keyword=$product_sku");
85 85
             $details = json_decode($getProductId);
86
-            if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if Product_sku is updated
86
+            if ($details->api_error_detected == 0 && is_array($details->page_message)) {
87
+//This is not true if Product_sku is updated
87 88
                 $productId = $details->page_message[0]->product_id;
88 89
             }
89 90
 
@@ -130,7 +131,8 @@  discard block
 block discarded – undo
130 131
       &search_type=client&search_keyword=$email");
131 132
 
132 133
         $details = json_decode($getUserId);
133
-        if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if email is updated
134
+        if ($details->api_error_detected == 0 && is_array($details->page_message)) {
135
+//This is not true if email is updated
134 136
             $userId = $details->page_message[0]->client_id;
135 137
         }
136 138
 
@@ -246,7 +248,7 @@  discard block
 block discarded – undo
246 248
         return $getInstallId;
247 249
     }
248 250
 
249
-    public function searchInstallationPath($licenseCode, $productId) 
251
+    public function searchInstallationPath($licenseCode, $productId)
250 252
     {
251 253
         $installation_domain = array();
252 254
         $installation_ip = array();
Please login to merge, or discard this patch.