Completed
Push — master ( 6aead6...d2648f )
by Andreas
17s
created
src/Parser/JoindinCfpParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
         $content = json_decode($content, true);
48 48
 
49 49
         foreach ($content['events'] as $event) {
50
-            if (! $event['cfp_url']) {
50
+            if (!$event['cfp_url']) {
51 51
                 continue;
52 52
             }
53 53
             $info = new Cfp();
54 54
             $info->conferenceName = $event['name'];
55 55
             $info->conferenceUri = $event['href'];
56 56
             if ($event['icon']) {
57
-                $info->iconUri = 'https://joind.in/inc/img/event_icons/' . $event['icon'];
57
+                $info->iconUri = 'https://joind.in/inc/img/event_icons/'.$event['icon'];
58 58
             }
59 59
             $info->eventEndDate = new \DateTimeImmutable($event['end_date']);
60 60
             $info->eventStartDate = new \DateTimeImmutable($event['start_date']);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $info->longitude = $event['longitude'];
67 67
             $info->tags = $event['tags'];
68 68
             $info->uri = $event['cfp_url'];
69
-            $info->timezone = $event['tz_continent'] . '/' . $event['tz_place'];
69
+            $info->timezone = $event['tz_continent'].'/'.$event['tz_place'];
70 70
 
71 71
             $writer->write($info, 'joind.in');
72 72
         }
Please login to merge, or discard this patch.
src/Service/WriterFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 class WriterFactory
31 31
 {
32
-    public $configFile = __DIR__ . '/../../config/callingallpapers.ini';
32
+    public $configFile = __DIR__.'/../../config/callingallpapers.ini';
33 33
 
34 34
     public function getWriter()
35 35
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             throw new UnknownWriterException('The requested writer could not be created');
43 43
         }
44 44
         
45
-        if (! $writer instanceof WriterInterface) {
45
+        if (!$writer instanceof WriterInterface) {
46 46
             throw new InvalidWriterException('The requested writer is not of the expected type');
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Service/TimezoneService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
         $values = json_decode($result->getBody()->getContents(), true);
65 65
 
66
-        if (! isset($values['status']) || $values['status'] !== 'OK') {
66
+        if (!isset($values['status']) || $values['status'] !== 'OK') {
67 67
             return 'UTC';
68 68
         }
69 69
 
Please login to merge, or discard this patch.
src/Entity/Cfp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
     public function addTag($tag)
107 107
     {
108
-        if (! in_array($tag, $this->tags)) {
108
+        if (!in_array($tag, $this->tags)) {
109 109
             $this->tags[] = $tag;
110 110
         }
111 111
     }
Please login to merge, or discard this patch.
src/Command/NotifyClosingCfps.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@
 block discarded – undo
66 66
 
67 67
         $start = new \DateTime($input->getOption('start'));
68 68
 
69
-        if (! $start instanceof \DateTime) {
69
+        if (!$start instanceof \DateTime) {
70 70
             throw new \InvalidArgumentException('The given date could not be parsed');
71 71
         }
72 72
 
73
-        $config = parse_ini_file(__DIR__ . '/../../config/callingallpapers.ini');
73
+        $config = parse_ini_file(__DIR__.'/../../config/callingallpapers.ini');
74 74
         $reader = new ApiCfpReader($config['event_api_url'], $config['event_api_token']);
75 75
         $cfps = $reader->getCfpsEndingWithinInterval(
76 76
             new \DateInterval('PT1H'),
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -47,18 +47,18 @@
 block discarded – undo
47 47
     protected function configure()
48 48
     {
49 49
         $this->setName("notifyClosingCfps")
50
-             ->setDescription("Notify about CfPs that close within 24 hours")
51
-             ->setDefinition(array(
52
-                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
53
-             ))
54
-             ->setHelp(<<<EOT
50
+                ->setDescription("Notify about CfPs that close within 24 hours")
51
+                ->setDefinition(array(
52
+                    new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
53
+                ))
54
+                ->setHelp(<<<EOT
55 55
 Notify about CfPs that are closing within 24 hours
56 56
 
57 57
 Usage:
58 58
 
59 59
 <info>callingallpapers notifyClosingCfp</info>
60 60
 EOT
61
-             );
61
+                );
62 62
     }
63 63
 
64 64
     protected function execute(InputInterface $input, OutputInterface $output): int
Please login to merge, or discard this patch.
src/Parser/PapercallIo/Location.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $xpath = new DOMXPath($dom);
44 44
         $titlePath = $xpath->query("//h1[contains(@class, 'subheader__subtitle')]");
45 45
 
46
-        if (! $titlePath || $titlePath->length == 0) {
46
+        if (!$titlePath || $titlePath->length == 0) {
47 47
             return $cfp;
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Parser/PapercallIo/EventName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $xpath = new DOMXPath($dom);
45 45
         $titlePath = $xpath->query("//h1[contains(@class, 'subheader__title')]");
46 46
 
47
-        if (! $titlePath || $titlePath->length == 0) {
47
+        if (!$titlePath || $titlePath->length == 0) {
48 48
             throw new \InvalidArgumentException('The CfP does not seem to have an eventname');
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Parser/PapercallIo/EventUri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $xpath = new DOMXPath($dom);
44 44
         $uriPath = $xpath->query("//h1/following-sibling::a");
45 45
 
46
-        if (! $uriPath || $uriPath->length == 0) {
46
+        if (!$uriPath || $uriPath->length == 0) {
47 47
             throw new \InvalidArgumentException('The CfP does not seem to have an EventUri');
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Parser/PapercallIo/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@
 block discarded – undo
43 43
         $xpath = new DOMXPath($dom);
44 44
         $titlePath = $xpath->query("//a[starts-with(@href, '/cfps/')]");
45 45
 
46
-        if (! $titlePath || $titlePath->length == 0) {
46
+        if (!$titlePath || $titlePath->length == 0) {
47 47
             throw new \InvalidArgumentException('The CfP does not seem to have a CfP-Uri');
48 48
         }
49 49
 
50
-        $cfp->uri = 'https://papercall.io' . trim($titlePath->item(0)->attributes->getNamedItem('href')->textContent);
50
+        $cfp->uri = 'https://papercall.io'.trim($titlePath->item(0)->attributes->getNamedItem('href')->textContent);
51 51
 
52 52
         return $cfp;
53 53
     }
Please login to merge, or discard this patch.