comparison vendor/zendframework/zend-feed/src/Reader/Extension/Slash/Entry.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
49 } 49 }
50 50
51 $stringParade = $this->getData($name); 51 $stringParade = $this->getData($name);
52 $hitParade = []; 52 $hitParade = [];
53 53
54 if (!empty($stringParade)) { 54 if (! empty($stringParade)) {
55 $stringParade = explode(',', $stringParade); 55 $stringParade = explode(',', $stringParade);
56 56
57 foreach ($stringParade as $hit) { 57 foreach ($stringParade as $hit) {
58 $hitParade[] = $hit + 0; //cast to integer 58 $hitParade[] = $hit + 0; //cast to integer
59 } 59 }
76 return $this->data[$name]; 76 return $this->data[$name];
77 } 77 }
78 78
79 $comments = $this->getData($name, 'string'); 79 $comments = $this->getData($name, 'string');
80 80
81 if (!$comments) { 81 if (! $comments) {
82 $this->data[$name] = null; 82 $this->data[$name] = null;
83 return $this->data[$name]; 83 return $this->data[$name];
84 } 84 }
85 85
86 return $comments; 86 return $comments;
99 return $this->data[$name]; 99 return $this->data[$name];
100 } 100 }
101 101
102 $data = $this->xpath->evaluate($type . '(' . $this->getXpathPrefix() . '/slash10:' . $name . ')'); 102 $data = $this->xpath->evaluate($type . '(' . $this->getXpathPrefix() . '/slash10:' . $name . ')');
103 103
104 if (!$data) { 104 if (! $data) {
105 $data = null; 105 $data = null;
106 } 106 }
107 107
108 $this->data[$name] = $data; 108 $this->data[$name] = $data;
109 109