Code Duplication    Length = 12-12 lines in 2 locations

tests/lib/httphelper.php 1 location

@@ 30-41 (lines=12) @@
27
			->getMock();
28
	}
29
30
	public function isHttpTestData() {
31
		return array(
32
			array('http://wwww.owncloud.org/enterprise/', true),
33
			array('https://wwww.owncloud.org/enterprise/', true),
34
			array('HTTPS://WWW.OWNCLOUD.ORG', true),
35
			array('HTTP://WWW.OWNCLOUD.ORG', true),
36
			array('FILE://WWW.OWNCLOUD.ORG', false),
37
			array('file://www.owncloud.org', false),
38
			array('FTP://WWW.OWNCLOUD.ORG', false),
39
			array('ftp://www.owncloud.org', false),
40
		);
41
	}
42
43
	/**
44
	 * @dataProvider isHttpTestData

apps/encryption/tests/lib/crypto/encryptionTest.php 1 location

@@ 285-296 (lines=12) @@
282
		);
283
	}
284
285
	public function dataTestShouldEncrypt() {
286
		return array(
287
			array('/user1/files/foo.txt', true),
288
			array('/user1/files_versions/foo.txt', true),
289
			array('/user1/files_trashbin/foo.txt', true),
290
			array('/user1/some_folder/foo.txt', false),
291
			array('/user1/foo.txt', false),
292
			array('/user1/files', false),
293
			array('/user1/files_trashbin', false),
294
			array('/user1/files_versions', false),
295
		);
296
	}
297
298
	/**
299
	 * @expectedException \OC\Encryption\Exceptions\DecryptionFailedException