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

Commit

Permalink
Some small clean-up. Bracket arrays. Docblock improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradEstey committed Nov 16, 2014
1 parent 3945eee commit fc9dde2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/HipSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ public function __construct(
* return the web client URL to the room.
*
* @param array $options
* @return mixed
* @return stdClass|boolean
*/
public function init($options = array())
public function init(array $options = [])
{
if (!$this->isOnline()) {
return false;
Expand Down Expand Up @@ -84,7 +84,7 @@ public function init($options = array())
*
* @param string $name
* @param integer $owner_user_id
* @return object
* @return stdClass
*/
public function createRoom($name, $owner_user_id = null)
{
Expand Down Expand Up @@ -204,14 +204,14 @@ protected function getHashFromUrl($url)
*/
protected function appendUrlOptions($url, $options)
{
$options = array_only($options, array(
$options = array_only($options, [
'welcome_msg',
'timezone',
'anonymous',
'minimal'
));
]);

$boolean_keys = array('minimal', 'anonymous');
$boolean_keys = ['minimal', 'anonymous'];
foreach ($boolean_keys as $key) {
if (isset($options[$key])) {
$options[$key] = $this->booleanToString($options[$key]);
Expand Down
8 changes: 4 additions & 4 deletions src/HipSupportOnlineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ public function fire()
*/
protected function getArguments()
{
return array(
array(
return [
[
'minutes',
InputArgument::OPTIONAL,
'The number of minutes to bring HipSupport online.'
)
);
]
];
}
}
1 change: 1 addition & 0 deletions src/HipSupportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function register()

/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
Expand Down

0 comments on commit fc9dde2

Please sign in to comment.