Completed
Push — master ( 5e5808...f0e2f4 )
by
unknown
14:22
created
app/container.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -314,6 +314,9 @@
 block discarded – undo
314 314
 
315 315
 	}
316 316
 
317
+	/**
318
+	 * @param string $param
319
+	 */
317 320
 	public function query($param){
318 321
 		return $this->getContainer()->query($param);
319 322
 	}
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
 use OCA\Chat\OCH\OCH;
37 37
 use OCA\Chat\XMPP\XMPP;
38 38
 use OCA\Chat\BackendManager;
39
-use OCA\Chat\IBackend;
40 39
 use OCA\Chat\Middleware\ErrorMiddleware;
41 40
 
42 41
 /**
Please login to merge, or discard this patch.
lib/och/db/attachmentmapper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 namespace OCA\Chat\OCH\Db;
9 9
 
10 10
 use OCP\AppFramework\Db\DoesNotExistException;
11
-use OCA\Chat\OCH\Commands\AttachFile;
12 11
 use \OCP\AppFramework\Db\Mapper;
13 12
 use \OCP\IDb;
14 13
 
Please login to merge, or discard this patch.
lib/och/db/usermapper.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
 		return $result;
44 44
 	}
45 45
 
46
+	/**
47
+	 * @param string $user
48
+	 */
46 49
 	public function findByUser($user){
47 50
 		$sql = <<<SQL
48 51
 			SELECT
@@ -56,6 +59,9 @@  discard block
 block discarded – undo
56 59
 		return $result;
57 60
 	}
58 61
 	
62
+	 /**
63
+	  * @param string $user
64
+	  */
59 65
 	 public function findConvsIdByUser($user){
60 66
 		$sql = 'SELECT conversation_id FROM `' . $this->getTableName() . '` ' .
61 67
 				'WHERE `user` = ? ';
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace OCA\Chat\OCH\Db;
9 9
 
10
-use Doctrine\DBAL\Sharding\SQLAzure\SQLAzureFederationsSynchronizer;
11 10
 use \OCP\AppFramework\Db\Mapper;
12 11
 use \OCP\IDb;
13 12
 use \OCP\AppFramework\Db\Entity;
Please login to merge, or discard this patch.
tests/unit/lib/och/commands/Join.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use OCA\Chat\OCH\Db\InitConv;
18 18
 use OCA\Chat\OCH\Db\PushMessage;
19 19
 use \OCA\Chat\OCH\Db\UserOnline;
20
-use OCA\Chat\Db\DBException;
21 20
 use OCA\Chat\OCH\Exceptions\RequestDataInvalid;
22 21
 use OCA\Chat\OCH\Db\User;
23 22
 
Please login to merge, or discard this patch.
tests/unit/lib/och/commands/SendChatMsg.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,8 @@
 block discarded – undo
14 14
 use OCA\Chat\Core\API;
15 15
 use OCA\Chat\OCH\Commands\SendChatMsg;
16 16
 use OCA\Chat\App\Chat;
17
-use OCA\Chat\Db\DBException;
18 17
 use OCA\Chat\OCH\Exceptions\RequestDataInvalid;
19
-use OCA\Chat\OCH\Db\UserOnline;
20 18
 use OCA\Chat\OCH\Db\User;
21
-use OCA\Chat\OCH\Db\PushMessage;
22 19
 
23 20
 // DONE
24 21
 class SendChatMsgTest extends \PHPUnit_Framework_TestCase {
Please login to merge, or discard this patch.
tests/unit/lib/och/commands/StartConv.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 
13 13
 
14 14
 use OCA\Chat\Core\API;
15
-use OCA\Chat\OCH\Commands\StartConv;
16 15
 use OCA\Chat\App\Chat;
17 16
 use \OCA\Chat\OCH\Db\UserOnline;
18 17
 
Please login to merge, or discard this patch.
tests/unit/lib/och/commands/SyncOnline.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use OCA\Chat\OCH\Commands\SyncOnline;
16 16
 use OCA\Chat\App\Chat;
17 17
 use OCA\Chat\Db\DBException;
18
-use OCA\Chat\OCH\Exceptions\RequestDataInvalid;
19 18
 use OCA\Chat\OCH\Db\UserOnline;
20 19
 
21 20
 // DONE
Please login to merge, or discard this patch.
utility/controllertestutility.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,10 @@
 block discarded – undo
25 25
 
26 26
 	/**
27 27
 	 * Checks if a controllermethod has the expected annotations
28
-	 * @param Controller/string $controller name or instance of the controller
29
-	 * @param array $expected an array containing the expected annotations
28
+	 * @param \OCA\Chat\Controller\OCH\ApiController $controller name or instance of the controller
29
+	 * @param string[] $expected an array containing the expected annotations
30 30
 	 * @param array $valid if you define your own annotations, pass them here
31
+	 * @param string $method
31 32
 	 */
32 33
 	protected function assertAnnotations($controller, $method, array $expected,
33 34
 										 array $valid=array()){
Please login to merge, or discard this patch.