Skip to content

Commit cf15a52

Browse files
authored
Merge pull request #45 from SimpleSoftwareIO/analysis-XkYdJy
Applied fixes from StyleCI
2 parents 2399ef1 + 988a13e commit cf15a52

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

src/SimpleSoftwareIO/QrCode/BaconQrCodeGenerator.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace SimpleSoftwareIO\QrCode;
44

55
use BaconQrCode;
6-
use BaconQrCode\Writer;
6+
use BaconQrCode\Common\ErrorCorrectionLevel;
77
use BaconQrCode\Encoder\Encoder;
8-
use BaconQrCode\Renderer\Image\Svg;
8+
use BaconQrCode\Renderer\Color\Rgb;
99
use BaconQrCode\Renderer\Image\Eps;
1010
use BaconQrCode\Renderer\Image\Png;
11-
use BaconQrCode\Renderer\Color\Rgb;
12-
use BaconQrCode\Common\ErrorCorrectionLevel;
1311
use BaconQrCode\Renderer\Image\RendererInterface;
12+
use BaconQrCode\Renderer\Image\Svg;
13+
use BaconQrCode\Writer;
1414

1515
class BaconQrCodeGenerator implements QrCodeInterface
1616
{
@@ -124,9 +124,9 @@ public function mergeString($content, $percentage = .2)
124124
*
125125
* @param string $format The desired format.
126126
*
127-
* @return $this
128-
*
129127
* @throws \InvalidArgumentException
128+
*
129+
* @return $this
130130
*/
131131
public function format($format)
132132
{

src/SimpleSoftwareIO/QrCode/DataTypes/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private function buildEmailString()
6666
if (isset($this->subject) || isset($this->body)) {
6767
$data = [
6868
'subject' => $this->subject,
69-
'body' => $this->body,
69+
'body' => $this->body,
7070
];
7171
$email .= '?'.http_build_query($data);
7272
}

src/SimpleSoftwareIO/QrCode/Image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Image implements ImageInterface
1010
* @var resource
1111
*/
1212
protected $image;
13+
1314
/**
1415
* Creates a new Image object.
1516
*

src/SimpleSoftwareIO/QrCode/ImageMerge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function __construct(Image $sourceImage, Image $mergeImage)
9292
*
9393
* @param $percentage float The percentage of size relative to the entire QR of the merged image
9494
*
95-
* @return str
95+
* @return string
9696
*/
9797
public function merge($percentage)
9898
{

src/SimpleSoftwareIO/QrCode/QrCodeServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function register()
3030
*/
3131
public function provides()
3232
{
33-
return array('qrcode');
33+
return ['qrcode'];
3434
}
3535
}

tests/DataTypes/WiFiTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function test_it_generates_a_proper_format_for_a_ssid_that_is_hidden()
2626
{
2727
$this->wifi->create([
2828
0 => [
29-
'ssid' => 'foo',
29+
'ssid' => 'foo',
3030
'hidden' => 'true',
3131
],
3232
]);
@@ -40,9 +40,9 @@ public function test_it_generates_a_proper_format_for_a_ssid_encryption_and_pass
4040
{
4141
$this->wifi->create([
4242
0 => [
43-
'ssid' => 'foo',
43+
'ssid' => 'foo',
4444
'encryption' => 'WPA',
45-
'password' => 'bar',
45+
'password' => 'bar',
4646
],
4747
]);
4848

@@ -55,10 +55,10 @@ public function test_it_generates_a_proper_format_for_a_ssid_encryption_password
5555
{
5656
$this->wifi->create([
5757
0 => [
58-
'ssid' => 'foo',
58+
'ssid' => 'foo',
5959
'encryption' => 'WPA',
60-
'password' => 'bar',
61-
'hidden' => 'true',
60+
'password' => 'bar',
61+
'hidden' => 'true',
6262
],
6363
]);
6464

0 commit comments

Comments
 (0)