@@ -294,8 +294,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -163,7 +163,7 @@ |
||
| 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; |
@@ -28,7 +28,7 @@ |
||
| 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 | } |
@@ -124,7 +124,7 @@ |
||
| 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) { |
@@ -49,7 +49,7 @@ discard block |
||
| 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 |
||
| 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'); |
@@ -288,8 +288,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -163,7 +163,7 @@ |
||
| 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; |
@@ -98,7 +98,7 @@ |
||
| 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; |
@@ -28,7 +28,7 @@ |
||
| 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 | } |