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

@@ 357-368 (lines=12) @@
354
		);
355
	}
356
357
	public function dataTestShouldEncrypt() {
358
		return array(
359
			array('/user1/files/foo.txt', true),
360
			array('/user1/files_versions/foo.txt', true),
361
			array('/user1/files_trashbin/foo.txt', true),
362
			array('/user1/some_folder/foo.txt', false),
363
			array('/user1/foo.txt', false),
364
			array('/user1/files', false),
365
			array('/user1/files_trashbin', false),
366
			array('/user1/files_versions', false),
367
		);
368
	}
369
370
	/**
371
	 * @expectedException \OC\Encryption\Exceptions\DecryptionFailedException