Skip to content

Commit

Permalink
Rename method arguments to use camelCase casing (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibra authored Dec 16, 2020
1 parent ac2cd71 commit f6e353a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ public function register()
/**
* Open the SessionHandler backend.
*
* @param string $save_path The path to the session object.
* @param string $session_name The name of the session.
* @param string $savePath The path to the session object.
* @param string $sessionName The name of the session.
*
* @return boolean True on success, false otherwise.
*
* @since 1.0
* @deprecated 2.0
*/
public function open($save_path, $session_name)
public function open($savePath, $sessionName)
{
return true;
}
Expand Down Expand Up @@ -151,15 +151,15 @@ public function read($id)
/**
* Write session data to the SessionHandler backend.
*
* @param string $id The session identifier.
* @param string $session_data The session data.
* @param string $id The session identifier.
* @param string $sessionData The session data.
*
* @return boolean True on success, false otherwise.
*
* @since 1.0
* @deprecated 2.0
*/
public function write($id, $session_data)
public function write($id, $sessionData)
{
return true;
}
Expand Down
8 changes: 4 additions & 4 deletions Storage/Apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ public function read($id)
/**
* Write session data to the SessionHandler backend.
*
* @param string $id The session identifier.
* @param string $session_data The session data.
* @param string $id The session identifier.
* @param string $sessionData The session data.
*
* @return boolean True on success, false otherwise.
*
* @since 1.0
* @deprecated 2.0
*/
public function write($id, $session_data)
public function write($id, $sessionData)
{
$sess_id = 'sess_' . $id;

return apc_store($sess_id, $session_data, ini_get('session.gc_maxlifetime'));
return apc_store($sess_id, $sessionData, ini_get('session.gc_maxlifetime'));
}

/**
Expand Down
8 changes: 4 additions & 4 deletions Storage/Apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ public function read($id)
/**
* Write session data to the SessionHandler backend.
*
* @param string $id The session identifier.
* @param string $session_data The session data.
* @param string $id The session identifier.
* @param string $sessionData The session data.
*
* @return boolean True on success, false otherwise.
*
* @since 1.4.0
*/
public function write($id, $session_data)
public function write($id, $sessionData)
{
$sess_id = 'sess_' . $id;

return apcu_store($sess_id, $session_data, ini_get('session.gc_maxlifetime'));
return apcu_store($sess_id, $sessionData, ini_get('session.gc_maxlifetime'));
}

/**
Expand Down
8 changes: 4 additions & 4 deletions Storage/Xcache.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ public function read($id)
/**
* Write session data to the SessionHandler backend.
*
* @param string $id The session identifier.
* @param string $session_data The session data.
* @param string $id The session identifier.
* @param string $sessionData The session data.
*
* @return boolean True on success, false otherwise.
*
* @since 1.0
* @deprecated 2.0
*/
public function write($id, $session_data)
public function write($id, $sessionData)
{
$sess_id = 'sess_' . $id;

return xcache_set($sess_id, $session_data, ini_get('session.gc_maxlifetime'));
return xcache_set($sess_id, $sessionData, ini_get('session.gc_maxlifetime'));
}

/**
Expand Down

0 comments on commit f6e353a

Please sign in to comment.