Passed
Push — master ( 902adb...3cf321 )
by Christoph
10:44 queued 11s
created
apps/contactsinteraction/lib/AddressBook.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
 			return new Card(
88 88
 				$this->mapper->find(
89 89
 					$this->getUid(),
90
-					(int)$name
90
+					(int) $name
91 91
 				),
92 92
 				$this->principalUri,
93 93
 				$this->getACL()
94 94
 			);
95 95
 		} catch (DoesNotExistException $ex) {
96
-			throw new NotFound("Contact does not exist: " . $ex->getMessage(), 0, $ex);
96
+			throw new NotFound("Contact does not exist: ".$ex->getMessage(), 0, $ex);
97 97
 		}
98 98
 	}
99 99
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function getChildren(): array {
104 104
 		return array_map(
105
-			function (RecentContact $contact) {
105
+			function(RecentContact $contact) {
106 106
 				return new Card(
107 107
 					$contact,
108 108
 					$this->principalUri,
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		try {
121 121
 			$this->mapper->find(
122 122
 				$this->getUid(),
123
-				(int)$name
123
+				(int) $name
124 124
 			);
125 125
 			return true;
126 126
 		} catch (DoesNotExistException $e) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		return [
150 150
 			'principaluri' => $this->principalUri,
151 151
 			'{DAV:}displayname' => $this->l10n->t('Recently contacted'),
152
-			'{' . Plugin::NS_OWNCLOUD . '}read-only' => true,
152
+			'{'.Plugin::NS_OWNCLOUD.'}read-only' => true,
153 153
 		];
154 154
 	}
155 155
 
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Migration/Version010000Date20200304152605.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,17 +75,17 @@
 block discarded – undo
75 75
 		]);
76 76
 		$table->setPrimaryKey(['id']);
77 77
 		// To find all recent entries
78
-		$table->addIndex(['actor_uid'], RecentContactMapper::TABLE_NAME . '_actor_uid');
78
+		$table->addIndex(['actor_uid'], RecentContactMapper::TABLE_NAME.'_actor_uid');
79 79
 		// To find a specific entry
80
-		$table->addIndex(['id', 'actor_uid'], RecentContactMapper::TABLE_NAME . '_id_uid');
80
+		$table->addIndex(['id', 'actor_uid'], RecentContactMapper::TABLE_NAME.'_id_uid');
81 81
 		// To find all recent entries with a given UID
82
-		$table->addIndex(['uid'], RecentContactMapper::TABLE_NAME . '_uid');
82
+		$table->addIndex(['uid'], RecentContactMapper::TABLE_NAME.'_uid');
83 83
 		// To find all recent entries with a given email address
84
-		$table->addIndex(['email'], RecentContactMapper::TABLE_NAME . '_email');
84
+		$table->addIndex(['email'], RecentContactMapper::TABLE_NAME.'_email');
85 85
 		// To find all recent entries with a give federated cloud id
86
-		$table->addIndex(['federated_cloud_id'], RecentContactMapper::TABLE_NAME . '_fed_id');
86
+		$table->addIndex(['federated_cloud_id'], RecentContactMapper::TABLE_NAME.'_fed_id');
87 87
 		// For the cleanup
88
-		$table->addIndex(['last_contact'], RecentContactMapper::TABLE_NAME . '_last_contact');
88
+		$table->addIndex(['last_contact'], RecentContactMapper::TABLE_NAME.'_last_contact');
89 89
 
90 90
 		return $schema;
91 91
 	}
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Db/CardSearchDao.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 		}
68 68
 		$addressbooksQuery->selectDistinct('id')
69 69
 			->from('addressbooks')
70
-			->where($addressbooksQuery->expr()->eq('principaluri', $cardQuery->createNamedParameter("principals/users/" . $user->getUID())));
70
+			->where($addressbooksQuery->expr()->eq('principaluri', $cardQuery->createNamedParameter("principals/users/".$user->getUID())));
71 71
 		$propQuery->selectDistinct('cardid')
72 72
 			->from('cards_properties')
73 73
 			->where($propQuery->expr()->in('addressbookid', $propQuery->createFunction($addressbooksQuery->getSQL()), IQueryBuilder::PARAM_INT_ARRAY))
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Listeners/ContactInteractionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
 				$contact->setCard($parsed->serialize());
127 127
 			} catch (Throwable $e) {
128 128
 				$this->logger->logException($e, [
129
-					'message' => 'Could not parse card to add recent category: ' . $e->getMessage(),
129
+					'message' => 'Could not parse card to add recent category: '.$e->getMessage(),
130 130
 					'level' => ILogger::WARN,
131 131
 				]);
132 132
 				$contact->setCard($copy);
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 // autoload.php @generated by Composer
4 4
 
5
-require_once __DIR__ . '/composer/autoload_real.php';
5
+require_once __DIR__.'/composer/autoload_real.php';
6 6
 
7 7
 return ComposerAutoloaderInitContactsInteraction::getLoader();
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/composer/autoload_classmap.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\ContactsInteraction\\AddressBook' => $baseDir . '/../lib/AddressBook.php',
10
-    'OCA\\ContactsInteraction\\AddressBookProvider' => $baseDir . '/../lib/AddressBookProvider.php',
11
-    'OCA\\ContactsInteraction\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
12
-    'OCA\\ContactsInteraction\\BackgroundJob\\CleanupJob' => $baseDir . '/../lib/BackgroundJob/CleanupJob.php',
13
-    'OCA\\ContactsInteraction\\Card' => $baseDir . '/../lib/Card.php',
14
-    'OCA\\ContactsInteraction\\Db\\CardSearchDao' => $baseDir . '/../lib/Db/CardSearchDao.php',
15
-    'OCA\\ContactsInteraction\\Db\\RecentContact' => $baseDir . '/../lib/Db/RecentContact.php',
16
-    'OCA\\ContactsInteraction\\Db\\RecentContactMapper' => $baseDir . '/../lib/Db/RecentContactMapper.php',
17
-    'OCA\\ContactsInteraction\\Listeners\\ContactInteractionListener' => $baseDir . '/../lib/Listeners/ContactInteractionListener.php',
18
-    'OCA\\ContactsInteraction\\Migration\\Version010000Date20200304152605' => $baseDir . '/../lib/Migration/Version010000Date20200304152605.php',
9
+    'OCA\\ContactsInteraction\\AddressBook' => $baseDir.'/../lib/AddressBook.php',
10
+    'OCA\\ContactsInteraction\\AddressBookProvider' => $baseDir.'/../lib/AddressBookProvider.php',
11
+    'OCA\\ContactsInteraction\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
12
+    'OCA\\ContactsInteraction\\BackgroundJob\\CleanupJob' => $baseDir.'/../lib/BackgroundJob/CleanupJob.php',
13
+    'OCA\\ContactsInteraction\\Card' => $baseDir.'/../lib/Card.php',
14
+    'OCA\\ContactsInteraction\\Db\\CardSearchDao' => $baseDir.'/../lib/Db/CardSearchDao.php',
15
+    'OCA\\ContactsInteraction\\Db\\RecentContact' => $baseDir.'/../lib/Db/RecentContact.php',
16
+    'OCA\\ContactsInteraction\\Db\\RecentContactMapper' => $baseDir.'/../lib/Db/RecentContactMapper.php',
17
+    'OCA\\ContactsInteraction\\Listeners\\ContactInteractionListener' => $baseDir.'/../lib/Listeners/ContactInteractionListener.php',
18
+    'OCA\\ContactsInteraction\\Migration\\Version010000Date20200304152605' => $baseDir.'/../lib/Migration/Version010000Date20200304152605.php',
19 19
 );
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\ContactsInteraction\\' => array($baseDir . '/../lib'),
9
+    'OCA\\ContactsInteraction\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/composer/ClassLoader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath . '\\';
380
+                $search = $subPath.'\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
383 383
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
-                        if (file_exists($file = $dir . $pathEnd)) {
384
+                        if (file_exists($file = $dir.$pathEnd)) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.
apps/contactsinteraction/composer/composer/autoload_static.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -6,36 +6,36 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitContactsInteraction
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\ContactsInteraction\\' => 24,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\ContactsInteraction\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'OCA\\ContactsInteraction\\AddressBook' => __DIR__ . '/..' . '/../lib/AddressBook.php',
25
-        'OCA\\ContactsInteraction\\AddressBookProvider' => __DIR__ . '/..' . '/../lib/AddressBookProvider.php',
26
-        'OCA\\ContactsInteraction\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
27
-        'OCA\\ContactsInteraction\\BackgroundJob\\CleanupJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupJob.php',
28
-        'OCA\\ContactsInteraction\\Card' => __DIR__ . '/..' . '/../lib/Card.php',
29
-        'OCA\\ContactsInteraction\\Db\\CardSearchDao' => __DIR__ . '/..' . '/../lib/Db/CardSearchDao.php',
30
-        'OCA\\ContactsInteraction\\Db\\RecentContact' => __DIR__ . '/..' . '/../lib/Db/RecentContact.php',
31
-        'OCA\\ContactsInteraction\\Db\\RecentContactMapper' => __DIR__ . '/..' . '/../lib/Db/RecentContactMapper.php',
32
-        'OCA\\ContactsInteraction\\Listeners\\ContactInteractionListener' => __DIR__ . '/..' . '/../lib/Listeners/ContactInteractionListener.php',
33
-        'OCA\\ContactsInteraction\\Migration\\Version010000Date20200304152605' => __DIR__ . '/..' . '/../lib/Migration/Version010000Date20200304152605.php',
23
+    public static $classMap = array(
24
+        'OCA\\ContactsInteraction\\AddressBook' => __DIR__.'/..'.'/../lib/AddressBook.php',
25
+        'OCA\\ContactsInteraction\\AddressBookProvider' => __DIR__.'/..'.'/../lib/AddressBookProvider.php',
26
+        'OCA\\ContactsInteraction\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
27
+        'OCA\\ContactsInteraction\\BackgroundJob\\CleanupJob' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupJob.php',
28
+        'OCA\\ContactsInteraction\\Card' => __DIR__.'/..'.'/../lib/Card.php',
29
+        'OCA\\ContactsInteraction\\Db\\CardSearchDao' => __DIR__.'/..'.'/../lib/Db/CardSearchDao.php',
30
+        'OCA\\ContactsInteraction\\Db\\RecentContact' => __DIR__.'/..'.'/../lib/Db/RecentContact.php',
31
+        'OCA\\ContactsInteraction\\Db\\RecentContactMapper' => __DIR__.'/..'.'/../lib/Db/RecentContactMapper.php',
32
+        'OCA\\ContactsInteraction\\Listeners\\ContactInteractionListener' => __DIR__.'/..'.'/../lib/Listeners/ContactInteractionListener.php',
33
+        'OCA\\ContactsInteraction\\Migration\\Version010000Date20200304152605' => __DIR__.'/..'.'/../lib/Migration/Version010000Date20200304152605.php',
34 34
     );
35 35
 
36 36
     public static function getInitializer(ClassLoader $loader)
37 37
     {
38
-        return \Closure::bind(function () use ($loader) {
38
+        return \Closure::bind(function() use ($loader) {
39 39
             $loader->prefixLengthsPsr4 = ComposerStaticInitContactsInteraction::$prefixLengthsPsr4;
40 40
             $loader->prefixDirsPsr4 = ComposerStaticInitContactsInteraction::$prefixDirsPsr4;
41 41
             $loader->classMap = ComposerStaticInitContactsInteraction::$classMap;
Please login to merge, or discard this patch.