Skip to content

Commit

Permalink
Merge pull request #4 from bavix/scrutinizer-patch-4
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
rez1dent3 authored Jun 18, 2018
2 parents 0fcc584 + 00cf33a commit c329f16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/XMLReader/XMLReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ protected function _property(\SimpleXMLElement $element, $property): array
if ($properties) {

$data = \is_array($properties) ?
$properties :
$this->_asArray($properties);
$properties : $this->_asArray($properties);

if ($data !== null || $data === '') {
$output['@' . $property] = $data;
Expand Down Expand Up @@ -342,7 +341,7 @@ protected function convert(DOMElement $element, $storage): void
*/
protected function fragments(array $storage): array
{
Arr::walkRecursive($storage, function (&$value) {
Arr::walkRecursive($storage, function(&$value) {
if (\is_object($value) && $value instanceof Raw) {
$value = $value->fragment($this->document());
}
Expand Down

0 comments on commit c329f16

Please sign in to comment.