@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $info->iconUri = 'http://php.net/images/news/' . $cfpImageNode->textContent; |
| 94 | 94 | |
| 95 | 95 | var_Dump($info->toArray()); |
| 96 | - // $writer->write($info, 'php.net'); |
|
| 96 | + // $writer->write($info, 'php.net'); |
|
| 97 | 97 | } catch (\Exception $e) { |
| 98 | 98 | echo $e->getMessage() . "\n"; |
| 99 | 99 | } |
@@ -36,13 +36,13 @@ discard block |
||
| 36 | 36 | foreach ($nodes as $item) { |
| 37 | 37 | /** @var \DOMNode $item */ |
| 38 | 38 | $href = $item->attributes->getNamedItem('href'); |
| 39 | - if (! preg_match('/\/([\d\-]{10})/', $href->textContent, $result)) { |
|
| 39 | + if (!preg_match('/\/([\d\-]{10})/', $href->textContent, $result)) { |
|
| 40 | 40 | continue; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | $date = new \DateTime($result[1]); |
| 44 | 44 | |
| 45 | - if (! $date instanceof \DateTime) { |
|
| 45 | + if (!$date instanceof \DateTime) { |
|
| 46 | 46 | continue; |
| 47 | 47 | } |
| 48 | 48 | |
@@ -90,12 +90,12 @@ discard block |
||
| 90 | 90 | $cfpImageNode = $xpath->query('default:newsImage', $node)->item(0); |
| 91 | 91 | $info->uri = $cfpImageNode->attributes->getNamedItem('link')->textContent; |
| 92 | 92 | $info->conferenceUri = $cfpImageNode->attributes->getNamedItem('link')->textContent; |
| 93 | - $info->iconUri = 'http://php.net/images/news/' . $cfpImageNode->textContent; |
|
| 93 | + $info->iconUri = 'http://php.net/images/news/'.$cfpImageNode->textContent; |
|
| 94 | 94 | |
| 95 | 95 | var_Dump($info->toArray()); |
| 96 | 96 | // $writer->write($info, 'php.net'); |
| 97 | 97 | } catch (\Exception $e) { |
| 98 | - echo $e->getMessage() . "\n"; |
|
| 98 | + echo $e->getMessage()."\n"; |
|
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | } |