Completed
Push — master ( ebc672...3804bb )
by Casey
38s queued 12s
created
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.
example/src/ExampleCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function __construct(Example $example)
55 55
     {
56
-      $this->example = $example;
57
-      parent::__construct();
56
+        $this->example = $example;
57
+        parent::__construct();
58 58
     }
59 59
 
60 60
     /**
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
             $data = $this->example->getBasicInformation();
80 80
             $output->writeln("Basic information: ");
81 81
             foreach ($data as $key => $value) {
82
-              $line = $formatter->formatSection($key, $value);
83
-              $output->writeln($line);
82
+                $line = $formatter->formatSection($key, $value);
83
+                $output->writeln($line);
84 84
             }
85 85
         }
86 86
 
Please login to merge, or discard this patch.
src/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/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.
src/RecordIterator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
         $this->resumptionToken  = $resumptionToken;
96 96
 
97 97
         //Node name error?
98
-        if (! $this->getItemNodeName()) {
99
-            throw new BaseOaipmhException('Cannot determine item name for verb: ' . $this->verb);
98
+        if (!$this->getItemNodeName()) {
99
+            throw new BaseOaipmhException('Cannot determine item name for verb: '.$this->verb);
100 100
         }
101 101
     }
102 102
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         $this->numRequests++;
239 239
 
240 240
         //Result format error?
241
-        if (! isset($resp->$verb->$nodeName)) {
241
+        if (!isset($resp->$verb->$nodeName)) {
242 242
             throw new MalformedResponseException(sprintf(
243 243
                 "Expected XML element list '%s' missing for verb '%s'",
244 244
                 $nodeName,
Please login to merge, or discard this patch.
src/Granularity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $phpFormat = $phpFormats[$format];
50 50
 
51 51
         return (new DateTimeImmutable(
52
-            '@' . $dateTime->getTimestamp(),
52
+            '@'.$dateTime->getTimestamp(),
53 53
             new DateTimeZone("UTC")
54 54
         ))->format($phpFormat);
55 55
     }
Please login to merge, or discard this patch.