Skip to content

Commit 73c4c7a

Browse files
author
Lawri van Buël
committed
Tweaks
1 parent 28dabaa commit 73c4c7a

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

modules/rocket_chat_api/src/RocketChat/RocketChatConfigInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<?php
2+
3+
namespace Drupal\rocket_chat_api\RocketChat {
4+
25
/*
36
* Created by 040lab b.v. using PhpStorm from Jetbrains.
47
* User: Lawri van Buël
58
* Date: 20/06/17
69
* Time: 16:33
710
*/
811

9-
namespace Drupal\rocket_chat_api\RocketChat {
1012

1113
/**
1214
* Interface to make an Arbitrary storage backend for the config elements.

modules/rocket_chat_api/src/RocketChat/TestConfig.class.inc

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,7 @@ namespace Drupal\rocket_chat_api\RocketChat {
1515
private $server = "http://127.0.0.1:3000";
1616

1717
/**
18-
* Retrieves the Storage from a Drupal 7 Variables container
19-
* @param string $elementName
20-
* Name of the Variable to get.
21-
* @param string $default
22-
* A Optional default for when none is found.
23-
*
24-
* @return string
25-
* The value stored or the default or NUll.
18+
* {@inheritdoc}
2619
*/
2720
public function getElement($elementName, $default = NULL) {
2821
switch($elementName) {
@@ -33,16 +26,16 @@ namespace Drupal\rocket_chat_api\RocketChat {
3326
}
3427
}
3528

29+
/**
30+
* {@inheritdoc}
31+
*/
3632
public function getJsonDecoder() {
3733
// TODO: Change the autogenerated stub
3834
return parent::getJsonDecoder();
3935
}
4036

4137
/**
42-
* @param string $elementName
43-
* Key value to set in the RocketChatConfigInterface Backend.
44-
* @param string $newValue
45-
* the new Value to store.
38+
* {@inheritdoc}
4639
*/
4740
public function setElement($elementName, $newValue) {
4841
switch($elementName) {
@@ -57,27 +50,21 @@ namespace Drupal\rocket_chat_api\RocketChat {
5750
}
5851

5952
/**
60-
* is this a Debug / verbose Run.
61-
*
62-
* @return bool
53+
* {@inheritdoc}
6354
*/
6455
public function isDebug() {
6556
return FALSE;
6657
}
6758

6859
/**
69-
* @param string $message
70-
* Message to report back.
71-
* @param string $type
72-
* Type or Level of the Message
73-
*
74-
* @return mixed
75-
* Notification Result.
60+
* {@inheritdoc}
7661
*/
7762
public function notify($message, $type) {
78-
return fwrite(STDERR,"Message [$type=>$message]\n");
63+
return fwrite(STDERR, "Message [$type=>$message]\n");
7964
}
65+
8066
}
67+
8168
}
8269

8370
namespace {

0 commit comments

Comments
 (0)