Skip to content

Commit

Permalink
Tidy comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Nov 11, 2016
1 parent 1b35561 commit 3c9a26b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ public function __construct(&$storage = null)
*/
public function addMessage($key, $message)
{
//Create Array for this key
// Create Array for this key
if (!isset($this->storage[$this->storageKey][$key])) {
$this->storage[$this->storageKey][$key] = [];
}

//Push onto the array
// Push onto the array
$this->storage[$this->storageKey][$key][] = $message;
}

Expand All @@ -98,12 +98,12 @@ public function addMessage($key, $message)
*/
public function addMessageNow($key, $message)
{
//Create Array for this key
// Create Array for this key
if (!isset($this->forNow[$key])) {
$this->forNow[$key] = [];
}

//Push onto the array
// Push onto the array
$this->forNow[$key][] = $message;
}

Expand Down Expand Up @@ -138,7 +138,8 @@ public function getMessages()
public function getMessage($key)
{
$messages = $this->getMessages();
//If the key exists then return all messages or null

// If the key exists then return all messages or null
return (isset($messages[$key])) ? $messages[$key] : null;
}

Expand Down

0 comments on commit 3c9a26b

Please sign in to comment.