Test Failed
Push — master ( 647c72...cd42b5 )
by
unknown
10:25
created
plugins/archive/php/plugin.archive.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 	 * @param mixed $data object(s) related to the hook
19 19
 	 */
20 20
 	function execute($eventID, &$data) {
21
-		switch($eventID) {
21
+		switch ($eventID) {
22 22
 			case 'server.core.settings.init.before' :
23 23
 				$this->injectPluginSettings($data);
24 24
 				break;
Please login to merge, or discard this patch.
plugins/passwd/php/plugin.passwd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	 * @param mixed $data object(s) related to the hook
24 24
 	 */
25 25
 	function execute($eventID, &$data) {
26
-		switch($eventID) {
26
+		switch ($eventID) {
27 27
 			case 'server.core.settings.init.before' :
28 28
 				$this->injectPluginSettings($data);
29 29
 				break;
Please login to merge, or discard this patch.
plugins/passwd/php/class.passwdmodule.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 	 */
11 11
 	public function execute()
12 12
 	{
13
-		foreach($this->data as $actionType => $actionData)
13
+		foreach ($this->data as $actionType => $actionData)
14 14
 		{
15
-			if(isset($actionType)) {
15
+			if (isset($actionType)) {
16 16
 				try {
17
-					switch($actionType)
17
+					switch ($actionType)
18 18
 					{
19 19
 						case 'save':
20 20
 							$this->save($actionData);
@@ -40,27 +40,27 @@  discard block
 block discarded – undo
40 40
 		$errorMessage = '';
41 41
 
42 42
 		// some sanity checks
43
-		if(empty($data)) {
43
+		if (empty($data)) {
44 44
 			$errorMessage = _('No data received.');
45 45
 		}
46 46
 
47
-		if(empty($data['username'])) {
47
+		if (empty($data['username'])) {
48 48
 			$errorMessage = _('Account is empty.');
49 49
 		}
50 50
 
51
-		if(empty($data['current_password'])) {
51
+		if (empty($data['current_password'])) {
52 52
 			$errorMessage = _('Current password is empty.');
53 53
 		}
54 54
 
55
-		if(empty($data['new_password']) || empty($data['new_password_repeat'])) {
55
+		if (empty($data['new_password']) || empty($data['new_password_repeat'])) {
56 56
 			$errorMessage = _('New password is empty.');
57 57
 		}
58 58
 
59
-		if($data['new_password'] !== $data['new_password_repeat']) {
59
+		if ($data['new_password'] !== $data['new_password_repeat']) {
60 60
 			$errorMessage = _('New passwords do not match.');
61 61
 		}
62 62
 
63
-		if(empty($errorMessage)) {
63
+		if (empty($errorMessage)) {
64 64
 			$this->saveInDB($data);
65 65
 		} else {
66 66
 			$this->sendFeedback(false, array(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 		// if this plugin is used on a webapp version with EncryptionStore,
89 89
 		// $_SESSION['password'] is no longer available. Uses EncryptionStore
90 90
 		// in this case.
91
-		if(class_exists("EncryptionStore")) {
91
+		if (class_exists("EncryptionStore")) {
92 92
 			$encryptionStore = EncryptionStore::getInstance();
93 93
 			$sessionPass = $encryptionStore->get("password");
94 94
 		}
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 			}
160 160
 		}
161 161
 
162
-		if(!empty($errorMessage)) {
162
+		if (!empty($errorMessage)) {
163 163
 			$this->sendFeedback(false, array(
164 164
 				'type' => ERROR_ZARAFA,
165 165
 				'info' => array(
Please login to merge, or discard this patch.
plugins/intranet/php/plugin.intranet.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * @param mixed $data object(s) related to the hook
19 19
 	 */
20 20
 	function execute($eventID, &$data) {
21
-		switch($eventID) {
21
+		switch ($eventID) {
22 22
 			case 'server.core.settings.init.before' :
23 23
 				$this->injectPluginSettings($data);
24 24
 				break;
@@ -42,12 +42,12 @@  discard block
 block discarded – undo
42 42
 			'icon' => defined('PLUGIN_INTRANET_ICON') ? PATH_PLUGIN_DIR. '/intranet/' . PLUGIN_INTRANET_ICON : $defaultIcon
43 43
 		);
44 44
 
45
-		$i=1;
46
-		while ( defined('PLUGIN_INTRANET_URL_'.$i) ){
47
-			$pluginData['button-title-'.$i] = constant('PLUGIN_INTRANET_BUTTON_TITLE_'.$i);
48
-			$pluginData['url-'.$i] = constant('PLUGIN_INTRANET_URL_'.$i);
49
-			$pluginData['autostart-'.$i] = defined('PLUGIN_INTRANET_AUTOSTART_'.$i) ? !!constant('PLUGIN_INTRANET_AUTOSTART_'.$i) : false;
50
-			$pluginData['icon-'.$i] = defined('PLUGIN_INTRANET_ICON_'.$i) ? PATH_PLUGIN_DIR . '/intranet/' .constant('PLUGIN_INTRANET_ICON_'.$i) : $defaultIcon;
45
+		$i = 1;
46
+		while (defined('PLUGIN_INTRANET_URL_' . $i)) {
47
+			$pluginData['button-title-' . $i] = constant('PLUGIN_INTRANET_BUTTON_TITLE_' . $i);
48
+			$pluginData['url-' . $i] = constant('PLUGIN_INTRANET_URL_' . $i);
49
+			$pluginData['autostart-' . $i] = defined('PLUGIN_INTRANET_AUTOSTART_' . $i) ? !!constant('PLUGIN_INTRANET_AUTOSTART_' . $i) : false;
50
+			$pluginData['icon-' . $i] = defined('PLUGIN_INTRANET_ICON_' . $i) ? PATH_PLUGIN_DIR . '/intranet/' . constant('PLUGIN_INTRANET_ICON_' . $i) : $defaultIcon;
51 51
 			$i++;
52 52
 		}
53 53
 
Please login to merge, or discard this patch.
plugins/meet/php/settings.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-class Pluginmeet extends Plugin{
2
+class Pluginmeet extends Plugin {
3 3
 
4
-  function init(){
4
+  function init() {
5 5
     $this->registerHook('server.core.settings.init.before');
6 6
   }
7 7
 
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
    * @param string $eventID the id of the triggered hook
12 12
    * @param mixed $data object(s) related to the hook
13 13
    */
14
-  function execute($eventID, &$data){
15
-    if($eventID == 'server.core.settings.init.before'){
14
+  function execute($eventID, &$data) {
15
+    if ($eventID == 'server.core.settings.init.before') {
16 16
       $this->injectPluginSettings($data);
17 17
     }
18 18
   }
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
    * settings.
24 24
    * @param Array $data Reference to the data of the triggered hook
25 25
    */
26
-  function injectPluginSettings(&$data){
27
-    if(defined('MEET_DEFAULTS') && is_array(MEET_DEFAULTS)){
26
+  function injectPluginSettings(&$data) {
27
+    if (defined('MEET_DEFAULTS') && is_array(MEET_DEFAULTS)) {
28 28
       $data['settingsObj']->addSysAdminDefaults(
29 29
         Array(
30 30
           'zarafa' => Array(
Please login to merge, or discard this patch.
plugins/files/php/Files/Backend/Webdav/class.backend.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 		} else {
223 223
 			// For backward compatibility we will check if the Encryption store exists. If not,
224 224
 			// we will fall back to the old way of retrieving the password from the session.
225
-			if ( class_exists('EncryptionStore') ) {
225
+			if (class_exists('EncryptionStore')) {
226 226
 				// Get the username and password from the Encryption store
227 227
 				$encryptionStore = \EncryptionStore::getInstance();
228 228
 				$this->set_user($encryptionStore->get('username'));
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 			} else {
231 231
 				$this->set_user($GLOBALS['mapisession']->getUserName());
232 232
 				$password = $_SESSION['password'];
233
-				if(function_exists('openssl_decrypt')) {
233
+				if (function_exists('openssl_decrypt')) {
234 234
 					$this->set_pass(openssl_decrypt($password, "des-ede3-cbc", PASSWORD_KEY, 0, PASSWORD_IV));
235 235
 				}
236 236
 			}
@@ -448,14 +448,14 @@  discard block
 block discarded – undo
448 448
 			$e->setTitle($this->backendTransName . _('Sabre error'));
449 449
 			throw $e;
450 450
 		} catch (Exception $e) {
451
-			$this->log('ls general exception: ' . $e->getMessage() . " [" . $e->getHTTPCode() .  "]");
451
+			$this->log('ls general exception: ' . $e->getMessage() . " [" . $e->getHTTPCode() . "]");
452 452
 			// THIS IS A FIX FOR OWNCLOUD - It does return 500 instead of 401...
453 453
 			$err_code = $e->getHTTPCode();
454 454
 			// check if code is 500 - then we should try to parse the error message
455
-			if($err_code === 500) {
455
+			if ($err_code === 500) {
456 456
 				// message example: HTTP-Code: 401
457 457
 				$regx = '/[0-9]{3}/';
458
-				if(preg_match($regx, $e->getMessage(), $found)) {
458
+				if (preg_match($regx, $e->getMessage(), $found)) {
459 459
 					$err_code = $found[0];
460 460
 				}
461 461
 			}
Please login to merge, or discard this patch.
plugins/files/php/Files/Backend/Webdav/sabredav/FilesWebDavClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
 		curl_setopt($curl, CURLOPT_USERPWD, $this->userName . ":" . $this->password);
60 60
 		curl_setopt($curl, CURLOPT_FILE, $file_handle);
61 61
 		curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
62
-		curl_setopt($curl, CURLOPT_PROTOCOLS,  CURLPROTO_HTTP | CURLPROTO_HTTPS);
63
-		curl_setopt($curl, CURLOPT_REDIR_PROTOCOLS,  CURLPROTO_HTTP | CURLPROTO_HTTPS);
62
+		curl_setopt($curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
63
+		curl_setopt($curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
64 64
 
65 65
 		curl_exec($curl);
66 66
 
Please login to merge, or discard this patch.
plugins/files/php/Files/Backend/class.backendstore.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 require_once __DIR__ . "/../Core/Util/class.stringutil.php";
6 6
 
7 7
 // For backward compatibility we must check if the file exists
8
-if ( file_exists(BASE_PATH . 'server/includes/core/class.encryptionstore.php') ) {
8
+if (file_exists(BASE_PATH . 'server/includes/core/class.encryptionstore.php')) {
9 9
 	require_once(BASE_PATH . 'server/includes/core/class.encryptionstore.php');
10 10
 }
11 11
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 */
65 65
 	public function initialize()
66 66
 	{
67
-		$list = array();    // this hold our plugin folders
67
+		$list = array(); // this hold our plugin folders
68 68
 		$workdir = __DIR__ . self::BACKEND_DIR;
69 69
 
70 70
 		// Populate the list of directories to check against
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function initializeExternal()
93 93
 	{
94
-		$list = array();    // this hold our plugin folders
94
+		$list = array(); // this hold our plugin folders
95 95
 		$workdir = $this->EXTERNAL_BACKEND_DIR;
96 96
 
97 97
 		// Populate the list of directories to check against
Please login to merge, or discard this patch.
plugins/files/php/Files/Core/Util/class.stringutil.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 	static function human_filesize($bytes, $decimals = 2)
24 24
 	{
25 25
 		$sz = ' KMGTP';
26
-		$factor = (int)floor((strlen($bytes) - 1) / 3);
26
+		$factor = (int) floor((strlen($bytes) - 1) / 3);
27 27
 		return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . " " . @$sz[$factor] . "B";
28 28
 	}
29 29
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 		// $chars - all allowed characters
55 55
 		$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
56 56
 
57
-		srand((double)microtime() * 1000000);
57
+		srand((double) microtime() * 1000000);
58 58
 		$i = 0;
59 59
 		$pass = "";
60 60
 		while ($i < $length) {
Please login to merge, or discard this patch.