Completed
Push — master ( 359f1d...544858 )
by Casey
01:25
created
src/Phpoaipmh/HttpAdapter/CurlAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function __construct(array $curlOpts = [])
38 38
     {
39
-        if (! is_callable('curl_exec')) {
39
+        if (!is_callable('curl_exec')) {
40 40
             throw new \Exception("OAI-PMH CurlAdapter HTTP HttpAdapterInterface requires the CURL PHP Extension");
41 41
         }
42 42
 
Please login to merge, or discard this patch.
example/src/Example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function __construct()
42 42
     {
43
-        $oaiUrl   = 'http://openscholarship.wustl.edu/do/oai/';
43
+        $oaiUrl = 'http://openscholarship.wustl.edu/do/oai/';
44 44
         $client = new Client($oaiUrl);
45 45
         $this->endpoint = new Endpoint($client);
46 46
     }
Please login to merge, or discard this patch.
src/Phpoaipmh/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@
 block discarded – undo
87 87
      */
88 88
     public function request($verb, array $params = array())
89 89
     {
90
-        if (! $this->url) {
90
+        if (!$this->url) {
91 91
             throw new RuntimeException("Cannot perform request when URL not set.  Use setUrl() method");
92 92
         }
93 93
 
94 94
         //Build the URL
95 95
         $params = array_merge(array('verb' => $verb), $params);
96
-        $url = $this->url . (parse_url($this->url, PHP_URL_QUERY) ? '&' : '?') . http_build_query($params);
96
+        $url = $this->url.(parse_url($this->url, PHP_URL_QUERY) ? '&' : '?').http_build_query($params);
97 97
 
98 98
         //Do the request
99 99
         try {
Please login to merge, or discard this patch.
src/Phpoaipmh/RecordIterator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
         $this->resumptionToken  = $resumptionToken;
97 97
 
98 98
         //Node name error?
99
-        if (! $this->getItemNodeName()) {
100
-            throw new BaseOaipmhException('Cannot determine item name for verb: ' . $this->verb);
99
+        if (!$this->getItemNodeName()) {
100
+            throw new BaseOaipmhException('Cannot determine item name for verb: '.$this->verb);
101 101
         }
102 102
     }
103 103
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $this->numRequests++;
202 202
 
203 203
         //Result format error?
204
-        if (! isset($resp->$verb->$nodeName)) {
204
+        if (!isset($resp->$verb->$nodeName)) {
205 205
             throw new MalformedResponseException(sprintf("Expected XML element list '%s' missing for verb '%s'", $nodeName, $verb));
206 206
         }
207 207
 
Please login to merge, or discard this patch.
src/Phpoaipmh/Exception/OaipmhException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function __toString()
41 41
     {
42 42
         $refl = new \ReflectionClass($this);
43
-        return $refl->getShortName() . ": [{$this->code}]: ({$this->oaiErrorCode}) {$this->message}";
43
+        return $refl->getShortName().": [{$this->code}]: ({$this->oaiErrorCode}) {$this->message}";
44 44
     }
45 45
 
46 46
     public function getOaiErrorCode()
Please login to merge, or discard this patch.