Skip to content

Commit b61c2c0

Browse files
author
pulkit
committed
styleci fix
1 parent d4cf2c3 commit b61c2c0

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ tools:
3131
excluded_dirs: [vendor, tests]
3232
php_cpd:
3333
enabled: true
34-
excluded_dirs: [vendor, tests]
34+
excluded_dirs: [vendor, tests]

src/Client.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(array $config)
4545
}
4646

4747
/**
48-
* Getter for the google client
48+
* Getter for the google client.
4949
*
5050
* @return \Google_Client
5151
*/
@@ -55,11 +55,13 @@ public function getClient()
5555
}
5656

5757
/**
58-
* Getter for the google service
58+
* Getter for the google service.
59+
*
60+
* @param string $service
5961
*
60-
* @param string $service
61-
* @return \Google_Service
6262
* @throws \Exception
63+
*
64+
* @return \Google_Service
6365
*/
6466
public function make($service)
6567
{
@@ -75,7 +77,7 @@ public function make($service)
7577
}
7678

7779
/**
78-
* Setup correct auth method based on type
80+
* Setup correct auth method based on type.
7981
*
8082
* @return void
8183
*/
@@ -97,7 +99,7 @@ protected function auth()
9799
}
98100

99101
/**
100-
* Determine and use credentials if user has set them
102+
* Determine and use credentials if user has set them.
101103
*
102104
* @return boolean used or not
103105
*/
@@ -120,7 +122,7 @@ protected function useAssertCredentials()
120122

121123
/**
122124
* Determine and use app engine credentials
123-
* if running on app engine
125+
* if running on app engine.
124126
*
125127
* @return boolean used or not
126128
*/
@@ -138,17 +140,19 @@ protected function useAppEngine()
138140
}
139141

140142
/**
141-
* Magic call method
143+
* Magic call method.
144+
*
145+
* @param string $method
146+
* @param array $parameters
142147
*
143-
* @param string $method
144-
* @param array $parameters
145-
* @return mixed
146148
* @throws \BadMethodCallException
149+
*
150+
* @return mixed
147151
*/
148152
public function __call($method, $parameters)
149153
{
150154
if (method_exists($this->client, $method)) {
151-
return call_user_func_array(array($this->client, $method), $parameters);
155+
return call_user_func_array([$this->client, $method], $parameters);
152156
}
153157

154158
throw new \BadMethodCallException(sprintf('Method [%s] does not exist.', $method));

src/config/config.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
| https://developers.google.com/console
1818
|
1919
*/
20-
'client_id' => '',
21-
'client_secret' => '',
22-
'redirect_uri' => '',
23-
'scopes' => [],
24-
'access_type' => 'online',
20+
'client_id' => '',
21+
'client_secret' => '',
22+
'redirect_uri' => '',
23+
'scopes' => [],
24+
'access_type' => 'online',
2525
'approval_prompt' => 'auto',
2626

2727
/*
@@ -60,5 +60,5 @@
6060
| Example storage_path().'/key/google.p12'
6161
*/
6262
'key' => '',
63-
]
63+
],
6464
];

tests/ClientTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PulkitJalan\Google\Tests;
3+
namespace PulkitJalan\Google\tests;
44

5-
use PHPUnit_Framework_TestCase;
65
use Mockery;
6+
use PHPUnit_Framework_TestCase;
77

88
class ClientTest extends PHPUnit_Framework_TestCase
99
{
@@ -47,8 +47,8 @@ public function testAssertCredentials()
4747
$client = new \PulkitJalan\Google\Client([
4848
'service' => [
4949
'account' => 'name',
50-
'scopes' => ['scope'],
51-
'key' => __DIR__.'/data/cert.p12',
50+
'scopes' => ['scope'],
51+
'key' => __DIR__.'/data/cert.p12',
5252
],
5353
]);
5454

0 commit comments

Comments
 (0)