Completed
Push — development ( 059e30...d1b094 )
by Ashutosh
09:16
created
app/Http/Controllers/License/LicenseController.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -154,14 +154,14 @@
 block discarded – undo
154 154
     public function updateLicensedDomain($clientEmail, $domain)
155 155
     {
156 156
         $url = $this->url;
157
-          $isIP = (bool)ip2long($domain);
158
-         if($isIP == true) {
159
-           $ip = $domain;
160
-           $domain = '';
161
-         } else {
162
-          $domain = $domain ;
163
-          $ip= '';
164
-      }
157
+            $isIP = (bool)ip2long($domain);
158
+            if($isIP == true) {
159
+            $ip = $domain;
160
+            $domain = '';
161
+            } else {
162
+            $domain = $domain ;
163
+            $ip= '';
164
+        }
165 165
         $api_key_secret = $this->api_key_secret;
166 166
         $searchLicense = $this->searchLicenseId($clientEmail);
167 167
         $licenseId = $searchLicense['licenseId'];
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -154,13 +154,13 @@
 block discarded – undo
154 154
     public function updateLicensedDomain($clientEmail, $domain)
155 155
     {
156 156
         $url = $this->url;
157
-          $isIP = (bool)ip2long($domain);
158
-         if($isIP == true) {
157
+          $isIP = (bool) ip2long($domain);
158
+         if ($isIP == true) {
159 159
            $ip = $domain;
160 160
            $domain = '';
161 161
          } else {
162
-          $domain = $domain ;
163
-          $ip= '';
162
+          $domain = $domain;
163
+          $ip = '';
164 164
       }
165 165
         $api_key_secret = $this->api_key_secret;
166 166
         $searchLicense = $this->searchLicenseId($clientEmail);
Please login to merge, or discard this patch.
app/Http/Controllers/Order/ExtendedOrderController.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -175,15 +175,15 @@
 block discarded – undo
175 175
     {
176 176
         $needle = 'www';
177 177
         foreach ($seperateDomains as $domain) {
178
-         $isIP = (bool)ip2long($domain);
179
-         if($isIP == true) {
180
-           $allowedDomains[] = $domain;
181
-         } else {
182
-          $customDomain = (strpos($domain, $needle) !== false) ? str_replace('www.', '', $domain) : 'www.'.$domain;
183
-          $allowedDomains[] = ($domain.','.$customDomain);
178
+            $isIP = (bool)ip2long($domain);
179
+            if($isIP == true) {
180
+            $allowedDomains[] = $domain;
181
+            } else {
182
+            $customDomain = (strpos($domain, $needle) !== false) ? str_replace('www.', '', $domain) : 'www.'.$domain;
183
+            $allowedDomains[] = ($domain.','.$customDomain);
184 184
          
185
-         }
186
-       }
185
+            }
186
+        }
187 187
         return  $allowedDomains;
188 188
     }
189 189
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -154,16 +154,16 @@  discard block
 block discarded – undo
154 154
         $domain = '';
155 155
         $arrayOfDomains = array();
156 156
         $allDomains = $request->input('domain');
157
-        $seperateDomains = explode(',', $allDomains);//Bifurcate the domains here
157
+        $seperateDomains = explode(',', $allDomains); //Bifurcate the domains here
158 158
           
159
-        $allowedDomains =$this->getAllowedDomains( $seperateDomains);
159
+        $allowedDomains = $this->getAllowedDomains($seperateDomains);
160 160
         $id = $request->input('id');
161 161
         $order = Order::findorFail($id);
162 162
         $clientEmail = $order->user->email;
163 163
         $order->domain = implode(",", $allowedDomains);
164 164
         $order->save();
165 165
         $cont = new \App\Http\Controllers\License\LicenseController();
166
-        $updateLicensedDomain = $cont->updateLicensedDomain($clientEmail,$order->domain);
166
+        $updateLicensedDomain = $cont->updateLicensedDomain($clientEmail, $order->domain);
167 167
         //Now make Installation status as inactive
168 168
         $updateInstallStatus = $cont->updateInstalledDomain($clientEmail);
169 169
 
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
     {
176 176
         $needle = 'www';
177 177
         foreach ($seperateDomains as $domain) {
178
-         $isIP = (bool)ip2long($domain);
179
-         if($isIP == true) {
178
+         $isIP = (bool) ip2long($domain);
179
+         if ($isIP == true) {
180 180
            $allowedDomains[] = $domain;
181 181
          } else {
182 182
           $customDomain = (strpos($domain, $needle) !== false) ? str_replace('www.', '', $domain) : 'www.'.$domain;
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $serial_key = $this->checkSerialKey($faveo_encrypted_key, $order_number);
96 96
 
97 97
             \Log::emergency(json_encode(['domain' => $request->input('domain'),
98
-             'serial'                             => $serial_key, 'order' => $order_number, ]));
98
+                'serial'                             => $serial_key, 'order' => $order_number, ]));
99 99
             $result = [];
100 100
             if ($request_type == 'install') {
101 101
                 $result = $this->verificationResult($order_number, $serial_key);
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
             // $faveo_encrypted_key = self::decryptByFaveoPrivateKey($request->input('serial_key'));
349 349
             // $faveo_encrypted_domain = self::decryptByFaveoPrivateKey($request->input('domain'));
350 350
             $this_order = $order
351
-                     ->where('number', $faveo_encrypted_order_number)
351
+                        ->where('number', $faveo_encrypted_order_number)
352 352
                     // ->where('number', $request->input('order_number'))
353 353
                     //->where('serial_key', $faveo_encrypted_key)
354 354
                     //->where('domain', $faveo_encrypted_domain)
Please login to merge, or discard this patch.