Completed
Push — master ( e919e2...c9abe3 )
by Andreas
16s
created
src/Subcommands/Sessionize/Parser/IconUri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@
 block discarded – undo
18 18
 
19 19
     public function __construct(string $baseUri)
20 20
     {
21
-        $this->baseUri  = $baseUri;
21
+        $this->baseUri = $baseUri;
22 22
     }
23 23
 
24 24
     public function parse(DOMDocument $dom, DOMXPath $xpath) : string
25 25
     {
26 26
         $uriPath = $xpath->query('//div[contains(@class, "ibox-content")]/img');
27 27
 
28
-        if (! $uriPath || $uriPath->length == 0) {
28
+        if (!$uriPath || $uriPath->length == 0) {
29 29
             throw new \InvalidArgumentException('The CfP does not seem to have an Icon');
30 30
         }
31 31
 
Please login to merge, or discard this patch.
src/Subcommands/Sessionize/Command.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Copyright (c) 2015-2016 Andreas Heigl<[email protected]>
Please login to merge, or discard this patch.
src/Command/AbstractParseEvents.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,16 +83,16 @@
 block discarded – undo
83 83
 
84 84
         $start = new \DateTime($input->getOption('start'));
85 85
 
86
-        if (! $start instanceof \DateTime) {
86
+        if (!$start instanceof \DateTime) {
87 87
             throw new \InvalidArgumentException('The given date could not be parsed');
88 88
         }
89 89
 
90
-        $config = parse_ini_file(__DIR__ . '/../../config/callingallpapers.ini');
90
+        $config = parse_ini_file(__DIR__.'/../../config/callingallpapers.ini');
91 91
 
92 92
         $client = new Client([
93 93
             'headers' => [
94 94
                 'Accept' => 'application/json',
95
-                'Authorization' => 'token ' . $config['github.token'],
95
+                'Authorization' => 'token '.$config['github.token'],
96 96
             ],
97 97
         ]);
98 98
 
Please login to merge, or discard this patch.
src/Subcommands/Sessionize/Parser/EventUri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
21 21
         //$uriPath = $xpath->query('//div[contains(text()[2], "website")]/following-sibling::h2/a');
22 22
         $uriPath = $xpath->query('//div[contains(., "website")]');
23 23
 
24
-        if (! $uriPath || $uriPath->length == 0) {
24
+        if (!$uriPath || $uriPath->length == 0) {
25 25
             throw new \InvalidArgumentException('The CfP does not seem to have an EventUri');
26 26
         }
27 27
 
28 28
         $uriPath = $xpath->query('.//h2/a', $uriPath->item(0)->parentNode);
29 29
 
30
-        if (! $uriPath || $uriPath->length == 0) {
30
+        if (!$uriPath || $uriPath->length == 0) {
31 31
             throw new \InvalidArgumentException('The Event does not seem to have a location');
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Subcommands/Sessionize/Parser/Location.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
         // This expression does not work. It looks like the reason is the array-notation...
20 20
         //$locations = $xpath->query('//div[contains(text()[2], "location")]/following-sibling::h2/span');
21 21
         $locationMarker = $xpath->query("//div[contains(., 'location')]");
22
-        if (! $locationMarker || $locationMarker->length == 0) {
22
+        if (!$locationMarker || $locationMarker->length == 0) {
23 23
             throw new \InvalidArgumentException('The Event does not seem to have a locationMarker');
24 24
         }
25 25
 
26 26
         $locations = $xpath->query('.//h2/span', $locationMarker->item(0)->parentNode);
27 27
 
28
-        if (! $locations || $locations->length == 0) {
28
+        if (!$locations || $locations->length == 0) {
29 29
             throw new \InvalidArgumentException('The Event does not seem to have a location');
30 30
         }
31 31
         $locationArray = [];
Please login to merge, or discard this patch.
src/Parser/ConfsTech/ConferenceParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         if (isset($conference['country'])) {
40 40
             $geolocation = $this->geolocation->getLocationForAddress(
41
-                $conference['country'] . ', ' . $cfp->location
41
+                $conference['country'].', '.$cfp->location
42 42
             );
43 43
 
44 44
             $cfp->latitude = $geolocation->getLatitude();
@@ -52,19 +52,19 @@  discard block
 block discarded – undo
52 52
 
53 53
         $cfp->conferenceName = $conference['name'];
54 54
         $cfp->eventStartDate = new DateTimeImmutable(
55
-            $conference['startDate'] . ' 08:00:00',
55
+            $conference['startDate'].' 08:00:00',
56 56
             new DateTimeZone($cfp->timezone)
57 57
         );
58
-        if (! isset($conference['endDate'])) {
58
+        if (!isset($conference['endDate'])) {
59 59
             $conference['endDate'] = $conference['startDate'];
60 60
         }
61 61
         $cfp->eventEndDate = new DateTimeImmutable(
62
-            $conference['endDate'] . ' 17:00:00',
62
+            $conference['endDate'].' 17:00:00',
63 63
             new DateTimeZone($cfp->timezone)
64 64
         );
65 65
 
66 66
         $cfp->dateEnd = new DateTimeImmutable(
67
-            $conference['cfpEndDate'] . ' 23:59:59',
67
+            $conference['cfpEndDate'].' 23:59:59',
68 68
             new DateTimeZone($cfp->timezone)
69 69
         );
70 70
 
Please login to merge, or discard this patch.
src/Subcommands/Sessionize/Parser/Sessionize.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
         foreach ($nodes as $node) {
51 51
             $priority = $node->getElementsByTagName('priority');
52 52
             $priority = $priority->item(0);
53
-            if ((float)$priority->textContent <= 0.6) {
53
+            if ((float) $priority->textContent <= 0.6) {
54 54
                 continue;
55 55
             }
56 56
 
57 57
             $loc = $node->getElementsByTagName('loc');
58 58
             $loc = $loc->item(0);
59 59
 
60
-            if (! $loc->textContent) {
60
+            if (!$loc->textContent) {
61 61
                 continue;
62 62
             }
63 63
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 $writer->write($cfp, 'Sessionize');
67 67
                 $cfpList->append($cfp);
68 68
             } catch (\Exception $e) {
69
-                error_log($e->getMEssage() . ' ' . $loc->textContent);
69
+                error_log($e->getMEssage().' '.$loc->textContent);
70 70
             }
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Subcommands/Sessionize/Parser/EventStartDate.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * Copyright Andrea Heigl <[email protected]>
@@ -29,23 +29,23 @@  discard block
 block discarded – undo
29 29
         //$startDate = $xpath->query('//div[contains(text()[2], "event starts")]/following-sibling::h2');
30 30
         $startDate = $xpath->query('//div[contains(., "event starts")]');
31 31
 
32
-        if (! $startDate || $startDate->length == 0) {
32
+        if (!$startDate || $startDate->length == 0) {
33 33
             // This expression does not work. It looks like the reason is the array-notation...
34 34
             //$startDate = $xpath->query('//div[contains(text()[2], "event date")]/following-sibling::h2');
35 35
             $startDate = $xpath->query('//div[contains(., "event date")]');
36 36
         }
37
-        if (! $startDate || $startDate->length == 0) {
37
+        if (!$startDate || $startDate->length == 0) {
38 38
             // This expression does not work. It looks like the reason is the array-notation...
39 39
             //$startDate = $xpath->query('//div[contains(text()[2], "event date")]/following-sibling::h2');
40 40
             $startDate = $xpath->query('//div[contains(., "planned future dates")]');
41 41
         }
42
-        if (! $startDate || $startDate->length == 0) {
42
+        if (!$startDate || $startDate->length == 0) {
43 43
             throw new \InvalidArgumentException('The Event does not seem to have a start date-identifier');
44 44
         }
45 45
 
46
-        $startDate = $xpath->query('h2', $startDate->item($startDate->length-1)->parentNode);
46
+        $startDate = $xpath->query('h2', $startDate->item($startDate->length - 1)->parentNode);
47 47
 
48
-        if (! $startDate || $startDate->length == 0) {
48
+        if (!$startDate || $startDate->length == 0) {
49 49
             throw new \InvalidArgumentException('The Event does not seem to have a start date');
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/Subcommands/SessionizeApi/Parser/Sessionize.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,12 +109,12 @@
 block discarded – undo
109 109
             }
110 110
 
111 111
             // We are not interersted in events without a CFP-Url
112
-            if (($event['cfpLink']??'') === '') {
112
+            if (($event['cfpLink'] ?? '') === '') {
113 113
                 continue;
114 114
             }
115 115
 
116 116
             // We are not interested in Events without a website
117
-            if (($event['website']??'') === '') {
117
+            if (($event['website'] ?? '') === '') {
118 118
                 continue;
119 119
             }
120 120
 
Please login to merge, or discard this patch.