Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Fix code style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaprajescu committed Mar 14, 2013
1 parent ca67002 commit d1016ca
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/joomla/linkedin/communications.php
Expand Up @@ -36,6 +36,7 @@ class JLinkedinCommunications extends JLinkedinObject
public function inviteByEmail($oauth, $email, $first_name, $last_name, $subject, $body, $connection = 'friend')
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -94,6 +95,7 @@ public function inviteByEmail($oauth, $email, $first_name, $last_name, $subject,
public function inviteById($oauth, $id, $first_name, $last_name, $subject, $body, $connection = 'friend')
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -179,6 +181,7 @@ public function inviteById($oauth, $id, $first_name, $last_name, $subject, $body
public function sendMessage($oauth, $recipient, $subject, $body)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down
8 changes: 8 additions & 0 deletions libraries/joomla/linkedin/companies.php
Expand Up @@ -42,6 +42,7 @@ public function getCompanies($oauth, $id = null, $name = null, $domain = null, $
}

$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -101,6 +102,7 @@ public function getCompanies($oauth, $id = null, $name = null, $domain = null, $
public function getUpdates($oauth, $id, $type = null, $count = 0, $start = 0)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -161,6 +163,7 @@ public function getUpdates($oauth, $id, $type = null, $count = 0, $start = 0)
public function search($oauth, $fields = null, $keywords = null, $hq = false, $facets = null, $facet = null, $start = 0, $count = 0, $sort = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -270,6 +273,7 @@ public function search($oauth, $fields = null, $keywords = null, $hq = false, $f
public function getFollowed($oauth, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -307,6 +311,7 @@ public function getFollowed($oauth, $fields = null)
public function follow($oauth, $id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -345,6 +350,7 @@ public function follow($oauth, $id)
public function unfollow($oauth, $id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -380,6 +386,7 @@ public function unfollow($oauth, $id)
public function getSuggested($oauth, $fields = null, $start = 0, $count = 0)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -432,6 +439,7 @@ public function getSuggested($oauth, $fields = null, $start = 0, $count = 0)
public function getProducts($oauth, $id, $fields = null, $start = 0, $count = 0)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down
20 changes: 20 additions & 0 deletions libraries/joomla/linkedin/groups.php
Expand Up @@ -34,6 +34,7 @@ class JLinkedinGroups extends JLinkedinObject
public function getGroup($oauth, $id, $fields = null, $start = 0, $count = 5)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -88,6 +89,7 @@ public function getGroup($oauth, $id, $fields = null, $start = 0, $count = 5)
public function getMemberships($oauth, $id = null, $fields = null, $start = 0, $count = 5, $membership_state = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -157,6 +159,7 @@ public function getMemberships($oauth, $id = null, $fields = null, $start = 0, $
public function getSettings($oauth, $person_id = null, $group_id = null, $fields = null, $start = 0, $count = 5)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -228,6 +231,7 @@ public function changeSettings($oauth, $group_id, $show_logo = null, $digest_fre
$allow_messages = null, $new_post = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -296,6 +300,7 @@ public function joinGroup($oauth, $group_id, $show_logo = null, $digest_frequenc
$allow_messages = null, $new_post = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -361,6 +366,7 @@ public function joinGroup($oauth, $group_id, $show_logo = null, $digest_frequenc
public function leaveGroup($oauth, $group_id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -400,6 +406,7 @@ public function leaveGroup($oauth, $group_id)
public function getDiscussions($oauth, $id, $fields = null, $start = 0, $count = 0, $order = null, $category = 'discussion', $modified_since = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -477,6 +484,7 @@ public function getUserPosts($oauth, $group_id, $role, $person_id = null, $field
$order = null, $category = 'discussion', $modified_since = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -559,6 +567,7 @@ public function getUserPosts($oauth, $group_id, $role, $person_id = null, $field
public function getPost($oauth, $post_id, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -600,6 +609,7 @@ public function getPost($oauth, $post_id, $fields = null)
public function getPostComments($oauth, $post_id, $fields = null, $start = 0, $count = 0)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -652,6 +662,7 @@ public function getPostComments($oauth, $post_id, $fields = null, $start = 0, $c
public function createPost($oauth, $group_id, $title, $summary)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -693,6 +704,7 @@ public function createPost($oauth, $group_id, $title, $summary)
private function _likeUnlike($oauth, $post_id, $like)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -762,6 +774,7 @@ public function unlikePost($oauth, $post_id)
private function _followUnfollow($oauth, $post_id, $follow)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -831,6 +844,7 @@ public function unfollowPost($oauth, $post_id)
public function flagPost($oauth, $post_id, $flag)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -869,6 +883,7 @@ public function flagPost($oauth, $post_id, $flag)
public function deletePost($oauth, $post_id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -903,6 +918,7 @@ public function deletePost($oauth, $post_id)
public function getComment($oauth, $comment_id, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -942,6 +958,7 @@ public function getComment($oauth, $comment_id, $fields = null)
public function addComment($oauth, $post_id, $comment)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -982,6 +999,7 @@ public function addComment($oauth, $post_id, $comment)
public function deleteComment($oauth, $comment_id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -1016,6 +1034,7 @@ public function deleteComment($oauth, $comment_id)
public function getSuggested($oauth, $person_id = null, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -1065,6 +1084,7 @@ public function getSuggested($oauth, $person_id = null, $fields = null)
public function deleteSuggestion($oauth, $suggestion_id, $person_id = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down
6 changes: 6 additions & 0 deletions libraries/joomla/linkedin/jobs.php
Expand Up @@ -32,6 +32,7 @@ class JLinkedinJobs extends JLinkedinObject
public function getJob($oauth, $id, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -70,6 +71,7 @@ public function getJob($oauth, $id, $fields = null)
public function getBookmarked($oauth, $fields = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -108,6 +110,7 @@ public function getBookmarked($oauth, $fields = null)
public function bookmark($oauth, $id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -145,6 +148,7 @@ public function bookmark($oauth, $id)
public function deleteBookmark($oauth, $id)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -179,6 +183,7 @@ public function deleteBookmark($oauth, $id)
public function getSuggested($oauth, $fields = null, $start = 0, $count = 0)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -244,6 +249,7 @@ public function search($oauth, $fields = null, $keywords = null, $company_name =
$distance = null, $facets = null, $facet = null, $start = 0, $count = 0, $sort = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down
2 changes: 2 additions & 0 deletions libraries/joomla/linkedin/oauth.php
Expand Up @@ -30,6 +30,7 @@ class JLinkedinOauth extends JOauthV1aclient
*
* @param JRegistry $options JLinkedinOauth options object.
* @param JHttp $client The HTTP client object.
* @param JInput $input The input object
*
* @since 12.3
*/
Expand All @@ -56,6 +57,7 @@ public function __construct(JRegistry $options = null, JHttp $client = null, JIn
public function verifyCredentials()
{
$token = $this->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down
3 changes: 3 additions & 0 deletions libraries/joomla/linkedin/people.php
Expand Up @@ -35,6 +35,7 @@ class JLinkedinPeople extends JLinkedinObject
public function getProfile($oauth, $id = null, $url = null, $fields = null, $type = 'standard', $language = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -105,6 +106,7 @@ public function getProfile($oauth, $id = null, $url = null, $fields = null, $typ
public function getConnections($oauth, $fields = null, $start = 0, $count = 500, $modified = null, $modified_since = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down Expand Up @@ -191,6 +193,7 @@ public function search($oauth, $fields = null, $keywords = null, $first_name = n
$postal_code = null, $distance = null, $facets = null, $facet = null, $start = 0, $count = 10, $sort = null)
{
$token = $oauth->getToken();

// Set parameters.
$parameters = array(
'oauth_token' => $token['key']
Expand Down

0 comments on commit d1016ca

Please sign in to comment.