Skip to content

Commit 1bf6e85

Browse files
committed
PHPCS fixes via PHP-CS-Fixer
1 parent 6158035 commit 1bf6e85

27 files changed

+69
-69
lines changed

src/AbstractGithubObject.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
use Joomla\Http\Exception\UnexpectedResponseException;
1212
use Joomla\Http\Http as BaseHttp;
1313
use Joomla\Http\Response;
14-
use Joomla\Uri\Uri;
1514
use Joomla\Registry\Registry;
15+
use Joomla\Uri\Uri;
1616

1717
/**
1818
* GitHub API object class for the Joomla Framework.
@@ -83,7 +83,7 @@ abstract class AbstractGithubObject
8383
public function __construct(Registry $options = null, BaseHttp $client = null)
8484
{
8585
$this->options = $options ?: new Registry;
86-
$this->client = $client ?: new Http($this->options);
86+
$this->client = $client ?: new Http($this->options);
8787

8888
$this->package = \get_class($this);
8989
$this->package = substr($this->package, strrpos($this->package, '\\') + 1);
@@ -159,7 +159,7 @@ protected function processResponse(Response $response, $expectedCode = 200)
159159
if ($response->code != $expectedCode)
160160
{
161161
// Decode the error response and throw an exception.
162-
$error = json_decode($response->body);
162+
$error = json_decode($response->body);
163163
$message = isset($error->message) ? $error->message : 'Invalid response received from GitHub.';
164164
throw new UnexpectedResponseException($response, $message, $response->code);
165165
}

src/Package/Activity/Notifications.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function markRead($unread = true, $read = true, \DateTime $lastReadAt = n
131131

132132
$data = array(
133133
'unread' => $unread,
134-
'read' => $read
134+
'read' => $read,
135135
);
136136

137137
if ($lastReadAt)
@@ -168,7 +168,7 @@ public function markReadRepository($owner, $repo, $unread, $read, \DateTime $las
168168

169169
$data = array(
170170
'unread' => $unread,
171-
'read' => $read
171+
'read' => $read,
172172
);
173173

174174
if ($lastReadAt)
@@ -219,7 +219,7 @@ public function markReadThread($id, $unread = true, $read = true)
219219

220220
$data = array(
221221
'unread' => $unread,
222-
'read' => $read
222+
'read' => $read,
223223
);
224224

225225
return $this->processResponse(
@@ -272,7 +272,7 @@ public function setThreadSubscription($id, $subscribed, $ignored)
272272

273273
$data = array(
274274
'subscribed' => $subscribed,
275-
'ignored' => $ignored
275+
'ignored' => $ignored,
276276
);
277277

278278
return $this->processResponse(

src/Package/Activity/Watching.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function setSubscription($owner, $repo, $subscribed, $ignored)
101101

102102
$data = array(
103103
'subscribed' => $subscribed,
104-
'ignored' => $ignored
104+
'ignored' => $ignored,
105105
);
106106

107107
return $this->processResponse(

src/Package/Authorization.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function edit($id, array $scopes = array(), array $addScopes = array(), a
145145
array(
146146
$scope => $scopeData,
147147
'note' => $note,
148-
'note_url' => $url
148+
'note_url' => $url,
149149
)
150150
);
151151

@@ -318,7 +318,7 @@ public function requestToken($clientId, $clientSecret, $code, $redirectUri = '',
318318
$data = array(
319319
'client_id' => $clientId,
320320
'client_secret' => $clientSecret,
321-
'code' => $code
321+
'code' => $code,
322322
);
323323

324324
if ($redirectUri)

src/Package/Data/Blobs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function create($owner, $repo, $content, $encoding = 'utf-8')
6363

6464
$data = array(
6565
'content' => $content,
66-
'encoding' => $encoding
66+
'encoding' => $encoding,
6767
);
6868

6969
return $this->processResponse(

src/Package/Data/Refs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function create($user, $repo, $ref, $sha)
9090
$data = json_encode(
9191
array(
9292
'ref' => $ref,
93-
'sha' => $sha
93+
'sha' => $sha,
9494
)
9595
);
9696

src/Package/Data/Tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public function create($owner, $repo, $tag, $message, $object, $type, $taggerNam
7777
'tagger' => array(
7878
'name' => $taggerName,
7979
'email' => $taggerEmail,
80-
'date' => $taggerDate
81-
)
80+
'date' => $taggerDate,
81+
),
8282
);
8383

8484
return $this->processResponse(

src/Package/Gists.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function create($files, $public = false, $description = null)
4545
array(
4646
'files' => $this->buildFileData((array) $files),
4747
'public' => (bool) $public,
48-
'description' => $description
48+
'description' => $description,
4949
)
5050
);
5151

@@ -350,7 +350,7 @@ public function isStarred($gistId)
350350
}
351351

352352
// Decode the error response and throw an exception.
353-
$error = json_decode($response->body);
353+
$error = json_decode($response->body);
354354
$message = isset($error->message) ? $error->message : 'Invalid response received from GitHub.';
355355
throw new UnexpectedResponseException($response, $message, $response->code);
356356
}

src/Package/Gists/Comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function edit($commentId, $body)
8484
// Build the request data.
8585
$data = json_encode(
8686
array(
87-
'body' => $body
87+
'body' => $body,
8888
)
8989
);
9090

src/Package/Gitignore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function get($name, $raw = false)
7171
if ($response->code != 200)
7272
{
7373
// Decode the error response and throw an exception.
74-
$error = json_decode($response->body);
74+
$error = json_decode($response->body);
7575
$message = isset($error->message) ? $error->message : 'Invalid response received from GitHub.';
7676
throw new UnexpectedResponseException($response, $message, $response->code);
7777
}

0 commit comments

Comments
 (0)