Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0d8a97

Browse files
danmichaeloStyleCIBot
andauthored
Apply fixes from StyleCI (#27)
Co-authored-by: StyleCI Bot <bot@styleci.io>
1 parent 59f501d commit e0d8a97

File tree

14 files changed

+24
-23
lines changed

14 files changed

+24
-23
lines changed

‎spec/Bibs/PortfolioSpec.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use PhpSpec\ObjectBehavior;
66
use Scriptotek\Alma\Bibs\Bib;
77
use Scriptotek\Alma\Bibs\Portfolio;
8-
use Scriptotek\Alma\Bibs\Portfolios;
98
use Scriptotek\Alma\Client as AlmaClient;
109
use Scriptotek\Alma\Electronic\Collection;
1110
use spec\Scriptotek\Alma\SpecHelper;

‎spec/Bibs/RepresentationSpec.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Scriptotek\Alma\Bibs\Bib;
77
use Scriptotek\Alma\Bibs\File;
88
use Scriptotek\Alma\Bibs\Representation;
9-
use Scriptotek\Alma\Bibs\Representations;
109
use Scriptotek\Alma\Client as AlmaClient;
1110
use spec\Scriptotek\Alma\SpecHelper;
1211

‎spec/ClientSpec.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function it_can_be_configured_with_custom_base_url()
3535
$this->entrypoint->shouldBe('http://proxy.foxy');
3636
}
3737

38-
3938
protected function httpWithResponseBody($body, $statusCode = 200, $headers = [])
4039
{
4140
$http = $this->let();

‎spec/Conf/JobInstanceSpec.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ public function it_should_belong_to_a_job()
2525
{
2626
$this->job->shouldBeAnInstanceOf(Job::class);
2727
}
28-
}
28+
}

‎spec/SpecHelper.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace spec\Scriptotek\Alma;
44

55
use Danmichaelo\QuiteSimpleXMLElement\QuiteSimpleXMLElement;
6+
use function GuzzleHttp\Psr7\stream_for;
67
use Http\Client\Common\Exception\ClientErrorException;
78
use Http\Factory\Guzzle\RequestFactory;
89
use Http\Factory\Guzzle\ResponseFactory;
910
use Prophecy\Argument;
10-
use function GuzzleHttp\Psr7\stream_for;
1111

1212
class SpecHelper
1313
{

‎spec/Users/UserSpec.php‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function it_has_sms()
7676
{
7777
$this->getSmsNumber()->shouldBe('87654321');
7878
}
79-
79+
8080
public function it_can_change_sms()
8181
{
8282
$this->setSmsNumber('12345678');
@@ -94,5 +94,4 @@ public function it_can_remove_sms()
9494
$this->unsetSmsNumber();
9595
$this->getSmsNumber()->shouldBe(null);
9696
}
97-
9897
}

‎src/Analytics/Row.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function offsetGet($offset): mixed
5151
if (isset($this->byHeader[$offset])) {
5252
return $this->byHeader[$offset];
5353
}
54+
5455
return null;
5556
}
5657

‎src/Client.php‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Scriptotek\Alma;
44

55
use Danmichaelo\QuiteSimpleXMLElement\QuiteSimpleXMLElement;
6+
use function GuzzleHttp\Psr7\stream_for;
67
use Http\Client\Common\Plugin\ContentLengthPlugin;
78
use Http\Client\Common\Plugin\ErrorPlugin;
89
use Http\Client\Common\PluginClient;
@@ -34,7 +35,6 @@
3435
use Scriptotek\Alma\TaskLists\TaskLists;
3536
use Scriptotek\Alma\Users\Users;
3637
use Scriptotek\Sru\Client as SruClient;
37-
use function GuzzleHttp\Psr7\stream_for;
3838

3939
/**
4040
* Alma client.
@@ -220,7 +220,9 @@ public function setKey($key)
220220
* Set the Alma region code ('na' for North America, 'eu' for Europe, 'ap' for Asia Pacific).
221221
*
222222
* @param $regionCode
223+
*
223224
* @throws AlmaClientException
225+
*
224226
* @return $this
225227
*/
226228
public function setRegion($regionCode)
@@ -237,6 +239,7 @@ public function setRegion($regionCode)
237239
* Set the Alma API base url.
238240
*
239241
* @param string $url
242+
*
240243
* @return $this
241244
*/
242245
public function setEntryPoint(string $url)
@@ -250,6 +253,7 @@ public function setEntryPoint(string $url)
250253
* Set extra request headers.
251254
*
252255
* @param array $headers
256+
*
253257
* @return $this
254258
*/
255259
public function setExtraHeaders(array $headers)

‎src/Conf/Conf.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Scriptotek\Alma\Conf;
44

55
use Scriptotek\Alma\Client;
6-
use Scriptotek\Alma\Conf\Jobs;
76

87
class Conf
98
{

‎src/Conf/Job.php‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Scriptotek\Alma\Client;
66
use Scriptotek\Alma\Model\LazyResource;
7-
use Scriptotek\Alma\Conf\JobInstances;
87

98
/**
109
* A single Job resource.
@@ -31,13 +30,13 @@ public function __construct(Client $client, string $job_id)
3130
}
3231

3332
/**
34-
* Submit the job for running
33+
* Submit the job for running.
3534
*
3635
* @return string The API response body
3736
*/
3837
public function submit()
3938
{
40-
return $this->client->post($this->url().'?op=run', json_encode($this->jsonSerialize()));
39+
return $this->client->post($this->url() . '?op=run', json_encode($this->jsonSerialize()));
4140
}
4241

4342
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /