Skip to content

Commit

Permalink
yegor256#11: indentation changed
Browse files Browse the repository at this point in the history
  • Loading branch information
popprem committed Apr 20, 2015
1 parent 2cebe53 commit cc7712f
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions src/main/java/org/takes/facets/auth/social/PsTwitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public Response exit(final Response response,
}

/**
* Get user name from Github, with the token provided.
* @param token Github access token
* @return The user found in Github
* Get user name from Twitter, with the token provided.
* @param token Twitter access token
* @return The user found in Twitter
* @throws IOException If fails
*/
private static Identity fetch(final String token) throws IOException {
Expand All @@ -110,7 +110,7 @@ private static Identity fetch(final String token) throws IOException {
}

/**
* Retrieve Github access token.
* Retrieve Twitter access token.
* @return The token
* @throws IOException If failed
*/
Expand All @@ -121,19 +121,17 @@ private String token()
.toString();
return new JdkRequest(uri)
.method("POST")
.header(
"Content-Type",
"application/x-www-form-urlencoded;charset=UTF-8"
)
.header(
"Authorization",
String.format(
"Basic %s", DatatypeConverter
.printBase64Binary(
String.format(
"%s:%s",
this.app, this.key
).getBytes()
.header(
"Content-Type",
"application/x-www-form-urlencoded;charset=UTF-8"
)
.header(
"Authorization",
String.format(
"Basic %s",
DatatypeConverter.printBase64Binary(
String.format("%s:%s", this.app, this.key)
.getBytes()
)
)
)
Expand All @@ -145,7 +143,7 @@ private String token()

/**
* Make identity from JSON object.
* @param json JSON received from Github
* @param json JSON received from Twitter
* @return Identity found
*/
private static Identity parse(final JsonObject json) {
Expand Down

0 comments on commit cc7712f

Please sign in to comment.