Completed
Pull Request — master (#37)
by Andreas
05:11
created
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
         $location = [];
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.