Completed
Pull Request — master (#8)
by Andreas
01:57
created
src/Parser/PhpNetCfpParser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.