Passed
Pull Request — master (#123)
by Sebastian
03:55
created
Classes/Api/Viaf/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function __construct($viaf, RequestFactory $requestFactory)
67 67
     {
68 68
         $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class);
69
-        $this->viafUrl = 'http://viaf.org/viaf/' . $viaf;
69
+        $this->viafUrl = 'http://viaf.org/viaf/'.$viaf;
70 70
         $this->requestFactory = $requestFactory;
71 71
     }
72 72
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         try {
93 93
             $response = $this->requestFactory->request($url);
94 94
         } catch (\Exception $e) {
95
-            $this->logger->warning('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.');
95
+            $this->logger->warning('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.');
96 96
             return false;
97 97
         }
98 98
         return $response->getBody()->getContents();
@@ -105,6 +105,6 @@  discard block
 block discarded – undo
105 105
      **/
106 106
     protected function getApiEndpoint()
107 107
     {
108
-        return $this->viafUrl . '/' . $this->endpoint;
108
+        return $this->viafUrl.'/'.$this->endpoint;
109 109
     }
110 110
 }
Please login to merge, or discard this patch.
Classes/Api/Orcid/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         try {
106 106
             $response = $this->requestFactory->request($url);
107 107
         } catch (\Exception $e) {
108
-            $this->logger->warning('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.');
108
+            $this->logger->warning('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.');
109 109
             return false;
110 110
         }
111 111
         return $response->getBody()->getContents();
@@ -118,10 +118,10 @@  discard block
 block discarded – undo
118 118
      **/
119 119
     private function getApiEndpoint()
120 120
     {
121
-        $url  = 'https://' . $this->level . '.' . self::HOSTNAME;
122
-        $url .= '/v' . self::VERSION . '/';
121
+        $url  = 'https://'.$this->level.'.'.self::HOSTNAME;
122
+        $url .= '/v'.self::VERSION.'/';
123 123
         $url .= $this->orcid;
124
-        $url .= '/' . $this->endpoint;
124
+        $url .= '/'.$this->endpoint;
125 125
         return $url;
126 126
     }
127 127
 }
Please login to merge, or discard this patch.