Completed
Push — master ( 6aead6...d2648f )
by Andreas
17s
created
src/Parser/PapercallIo/Tags.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
 
45 45
         $tagsPath = $xpath->query("//h1/following-sibling::a/following-sibling::span");
46
-        if (! $tagsPath || $tagsPath->length == 0) {
46
+        if (!$tagsPath || $tagsPath->length == 0) {
47 47
             return $cfp;
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Parser/PapercallIo/OpeningDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         }
47 47
 
48 48
         $openingDate = $xpath->query("//span[text()='Openend on:']/following-sibling::strong");
49
-        if (! $openingDate || $openingDate->length == 0) {
49
+        if (!$openingDate || $openingDate->length == 0) {
50 50
             throw new \UnexpectedValueException('No CfP-Open Date found');
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Parser/PapercallIo/ClosingDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         }
55 55
         $xpath = new DOMXPath($node->ownerDocument);
56 56
         $closingDate = $xpath->query(".//time/@datetime", $node);
57
-        if (! $closingDate || $closingDate->length == 0) {
57
+        if (!$closingDate || $closingDate->length == 0) {
58 58
             throw new InvalidArgumentException('The CfP does not seem to have a closing date');
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Entity/Geolocation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,6 @@
 block discarded – undo
53 53
 
54 54
     public function __toString() : string
55 55
     {
56
-        return $this->getLatitude() . ' ' . $this->getLongitude();
56
+        return $this->getLatitude().' '.$this->getLongitude();
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/Writer/TestCfpWriter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,15 +60,15 @@
 block discarded – undo
60 60
     {
61 61
         /** @var \Callingallpapers\Entity\Cfp $cfp */
62 62
         foreach ($this->cfps as $cfp) {
63
-            if (! $cfp->uri) {
63
+            if (!$cfp->uri) {
64 64
                 return false;
65 65
             }
66 66
 
67
-            if (! $cfp->conferenceName) {
67
+            if (!$cfp->conferenceName) {
68 68
                 return false;
69 69
             }
70 70
 
71
-            if (! $cfp->dateEnd) {
71
+            if (!$cfp->dateEnd) {
72 72
                 return false;
73 73
             }
74 74
         }
Please login to merge, or discard this patch.
src/Parser/PapercallIo/PapercallIoParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         do {
67 67
             $dom = new DOMDocument('1.0', 'UTF-8');
68 68
             libxml_use_internal_errors(true);
69
-            $uri = sprintf($this->uri, $i+1);
69
+            $uri = sprintf($this->uri, $i + 1);
70 70
             $dom->loadHTMLFile($uri);
71 71
             libxml_use_internal_errors(false);
72 72
             $dom->preserveWhiteSpace = false;
Please login to merge, or discard this patch.
src/Notification/TwitterNotifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         );
52 52
         $request = new Request(
53 53
             'POST',
54
-            'statuses/update.json?' . $this->formUrlEncode([
54
+            'statuses/update.json?'.$this->formUrlEncode([
55 55
                 'status'              => $notificationString,
56 56
                 'lat'                 => $cfp->latitude,
57 57
                 'long'                => $cfp->longitude,
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (strlen($name) < 70) {
72 72
             return $name;
73 73
         }
74
-        return substr($name, 0, 69) . '…';
74
+        return substr($name, 0, 69).'…';
75 75
     }
76 76
 
77 77
     protected function shortenUri($uri)
Please login to merge, or discard this patch.
src/Parser/PapercallIo/Icon.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("//div[contains(@class, 'subheader__logo')]/img");
46 46
 
47
-        if (! $titlePath || $titlePath->length == 0) {
47
+        if (!$titlePath || $titlePath->length == 0) {
48 48
             return $cfp;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Command/ParseEvents.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $start = new \DateTime($input->getOption('start'));
77 77
 
78
-        if (! $start instanceof \DateTime) {
78
+        if (!$start instanceof \DateTime) {
79 79
             throw new \InvalidArgumentException('The given date could not be parsed');
80 80
         }
81 81
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             ],
86 86
         ]);
87 87
 
88
-        $config = parse_ini_file(__DIR__ . '/../../config/callingallpapers.ini');
88
+        $config = parse_ini_file(__DIR__.'/../../config/callingallpapers.ini');
89 89
         $writer = new ApiCfpWriter($config['event_api_url'], $config['event_api_token'], $client);
90 90
         $writer->setOutput($output);
91 91
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
     protected function configure()
55 55
     {
56 56
         $this->setName("parseCfPs")
57
-             ->setDescription("Retrieve CfPs and parse them")
58
-             ->setDefinition(array(
59
-                 new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
60
-             ))
61
-             ->setHelp(<<<EOT
57
+                ->setDescription("Retrieve CfPs and parse them")
58
+                ->setDefinition(array(
59
+                    new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''),
60
+                ))
61
+                ->setHelp(<<<EOT
62 62
 Get details about CfPs from different sources
63 63
 
64 64
 Usage:
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 If you ommit the date the current date will be used instead
69 69
 <info>callingallpapers parseCfPs<env></info>
70 70
 EOT
71
-             );
71
+                );
72 72
     }
73 73
 
74 74
     protected function execute(InputInterface $input, OutputInterface $output): int
Please login to merge, or discard this patch.