Completed
Push — master ( bcb82e...80085e )
by vijay
07:39
created
app/Itil/Controllers/UtilityController.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -294,8 +294,9 @@  discard block
 block discarded – undo
294 294
         foreach ($namespaces as $prefix => $namespace) {
295 295
             foreach ($xml->attributes($namespace) as $attributeName => $attribute) {
296 296
                 //replace characters in attribute name
297
-                if ($options['keySearch'])
298
-                    $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName);
297
+                if ($options['keySearch']) {
298
+                                    $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName);
299
+                }
299 300
                 $attributeKey = $options['attributePrefix']
300 301
                         . ($prefix ? $prefix . $options['namespaceSeparator'] : '')
301 302
                         . $attributeName;
@@ -312,11 +313,13 @@  discard block
 block discarded – undo
312 313
                 list($childTagName, $childProperties) = each($childArray);
313 314
 
314 315
                 //replace characters in tag name
315
-                if ($options['keySearch'])
316
-                    $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName);
316
+                if ($options['keySearch']) {
317
+                                    $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName);
318
+                }
317 319
                 //add namespace prefix, if any
318
-                if ($prefix)
319
-                    $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName;
320
+                if ($prefix) {
321
+                                    $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName;
322
+                }
320 323
 
321 324
                 if (!isset($tagsArray[$childTagName])) {
322 325
                     //only entry with this key
@@ -337,8 +340,9 @@  discard block
 block discarded – undo
337 340
         //get text content of node
338 341
         $textContentArray = array();
339 342
         $plainText = trim((string) $xml);
340
-        if ($plainText !== '')
341
-            $textContentArray[$options['textContent']] = $plainText;
343
+        if ($plainText !== '') {
344
+                    $textContentArray[$options['textContent']] = $plainText;
345
+        }
342 346
 
343 347
         //stick it all together
344 348
         $propertiesArray = !$options['autoText'] || $attributesArray || $tagsArray || ($plainText === '') ? array_merge($attributesArray, $tagsArray, $textContentArray) : $plainText;
Please login to merge, or discard this patch.
app/Itil/Controllers/CabController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         $value = "";
164 164
         if($vote==1){
165 165
             $value = "Voted for proceed";
166
-        }else{
166
+        } else{
167 167
             $value = "Voted for not proceed";
168 168
         }
169 169
         return $value;
Please login to merge, or discard this patch.
app/Itil/Models/Common/Cab.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function setHeadAttribute($value){
29 29
         if($value==""){
30 30
             $this->attributes['head'] = NULL;
31
-        }else{
31
+        } else{
32 32
             $this->attributes['head'] = $value;
33 33
         }
34 34
     }
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Contract/ContractController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             $contract = $contracts->find($id);
125 125
             if($contract){
126 126
                 return view('service::contract.show',  compact('contract'));
127
-            }else{
127
+            } else{
128 128
                 throw new \Exception('Sorry we can not find your request');
129 129
             }
130 130
         } catch (Exception $ex) {
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Releses/RelesesController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             //dd($release);
50 50
             if($release){
51 51
                 return view('service::releases.show', compact('release'));
52
-            }else{
52
+            } else{
53 53
                 throw new \Exception('Sorry we can not find your request');
54 54
             }
55 55
             
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             if($release){
156 156
                 $release->status_id = 5;
157 157
                 $release->save();
158
-            }else{
158
+            } else{
159 159
                 throw new Exception('Sorry we can not find your request');
160 160
             }
161 161
             return redirect()->back()->with('success','updated');
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Library/UtilityController.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -288,8 +288,9 @@  discard block
 block discarded – undo
288 288
         foreach ($namespaces as $prefix => $namespace) {
289 289
             foreach ($xml->attributes($namespace) as $attributeName => $attribute) {
290 290
                 //replace characters in attribute name
291
-                if ($options['keySearch'])
292
-                    $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName);
291
+                if ($options['keySearch']) {
292
+                                    $attributeName = str_replace($options['keySearch'], $options['keyReplace'], $attributeName);
293
+                }
293 294
                 $attributeKey = $options['attributePrefix']
294 295
                         . ($prefix ? $prefix . $options['namespaceSeparator'] : '')
295 296
                         . $attributeName;
@@ -306,11 +307,13 @@  discard block
 block discarded – undo
306 307
                 list($childTagName, $childProperties) = each($childArray);
307 308
 
308 309
                 //replace characters in tag name
309
-                if ($options['keySearch'])
310
-                    $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName);
310
+                if ($options['keySearch']) {
311
+                                    $childTagName = str_replace($options['keySearch'], $options['keyReplace'], $childTagName);
312
+                }
311 313
                 //add namespace prefix, if any
312
-                if ($prefix)
313
-                    $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName;
314
+                if ($prefix) {
315
+                                    $childTagName = $prefix . $options['namespaceSeparator'] . $childTagName;
316
+                }
314 317
 
315 318
                 if (!isset($tagsArray[$childTagName])) {
316 319
                     //only entry with this key
@@ -331,8 +334,9 @@  discard block
 block discarded – undo
331 334
         //get text content of node
332 335
         $textContentArray = array();
333 336
         $plainText = trim((string) $xml);
334
-        if ($plainText !== '')
335
-            $textContentArray[$options['textContent']] = $plainText;
337
+        if ($plainText !== '') {
338
+                    $textContentArray[$options['textContent']] = $plainText;
339
+        }
336 340
 
337 341
         //stick it all together
338 342
         $propertiesArray = !$options['autoText'] || $attributesArray || $tagsArray || ($plainText === '') ? array_merge($attributesArray, $tagsArray, $textContentArray) : $plainText;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Controllers/Cab/CabController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
         $value = "";
164 164
         if($vote==1){
165 165
             $value = "Voted for proceed";
166
-        }else{
166
+        } else{
167 167
             $value = "Voted for not proceed";
168 168
         }
169 169
         return $value;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Products/SdProducts.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
         $attr = $this->attributes['status'];
99 99
         if ($attr==1) {
100 100
             $value = "Enabled";
101
-        }else{
101
+        } else{
102 102
             $value = "Disabled";
103 103
         }
104 104
         return $value;
Please login to merge, or discard this patch.
app/Plugins/ServiceDesk/Model/Cab/Cab.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function setHeadAttribute($value){
29 29
         if($value==""){
30 30
             $this->attributes['head'] = NULL;
31
-        }else{
31
+        } else{
32 32
             $this->attributes['head'] = $value;
33 33
         }
34 34
     }
Please login to merge, or discard this patch.