Test Failed
Push — master ( 647c72...cd42b5 )
by
unknown
10:25
created
plugins/passwd/php/class.passwdmodule.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,8 +140,7 @@
 block discarded – undo
140 140
 
141 141
 			if ($result === false) {
142 142
 				$errorMessage = _('Error changing password. Please contact the system administrator.');
143
-			}
144
-			else {
143
+			} else {
145 144
 				$this->sendFeedback(true, array(
146 145
 						'info' => array(
147 146
 							'display_message' => _('Password has been changed successfully.')
Please login to merge, or discard this patch.
plugins/files/php/modules/class.hierarchylistmodule.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
 					}
48 48
 				} catch (MAPIException $e) {
49 49
 					$this->sendFeedback(false, $this->errorDetailsFromException($e));
50
-				}
51
-				catch (AccountException $e) {
50
+				} catch (AccountException $e) {
52 51
 					$this->sendFeedback(false, array(
53 52
 						'type' => ERROR_GENERAL,
54 53
 						'info' => array(
Please login to merge, or discard this patch.
plugins/files/php/lib/phpfastcache/lib/Phpfastcache/Autoload/Autoload.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         if(\strpos($entity, PFC_TESTS_NS) === 0){
68 68
             $path = PFC_TESTS_DIR . \str_replace(str_replace('\\', '/', PFC_TESTS_NS), '', $entityPath) . '.' . PFC_PHP_EXT;
69
-        }else{
69
+        } else{
70 70
             $path = PFC_LIB_DIR . $entityPath . '.' . PFC_PHP_EXT;
71 71
         }
72 72
 
Please login to merge, or discard this patch.
plugins/files/php/lib/phpfastcache/lib/Phpfastcache/Util/Directory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@
 block discarded – undo
110 110
                 } elseif (unlink($realpath) === false) {
111 111
                     return false;
112 112
                 }
113
-            }
114
-            else{
113
+            } else{
115 114
                 return false;
116 115
             }
117 116
         }
Please login to merge, or discard this patch.
php/lib/phpfastcache/lib/Phpfastcache/Util/ClassNamespaceResolverTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                                 break;
107 107
                             }
108 108
                         }
109
-                    }else{
109
+                    } else{
110 110
                         while (isset($tokens[++$i][1])) {
111 111
                             if (\in_array($tokens[$i][0], [T_STRING, T_NS_SEPARATOR], true)) {
112 112
                                 $namespace .= $tokens[$i][1];
Please login to merge, or discard this patch.
files/php/lib/phpfastcache/lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
         if($this->getConfig()->isUseStaticItemCaching()){
68 68
             $stat->setData(implode(', ', \array_keys($this->itemInstances)));
69
-        }else{
69
+        } else{
70 70
             $stat->setData('No data available since static item caching option (useStaticItemCaching) is disabled.');
71 71
         }
72 72
 
Please login to merge, or discard this patch.
php/lib/phpfastcache/lib/Phpfastcache/Core/Pool/CacheItemPoolTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
                         $item->expiresAfter(abs((int)$this->getConfig()['defaultTtl']));
228 228
                     }
229 229
                 }
230
-            }else{
230
+            } else{
231 231
                 $item = $this->itemInstances[$key];
232 232
             }
233 233
 
Please login to merge, or discard this patch.
files/php/lib/phpfastcache/lib/Phpfastcache/Drivers/Files/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         try{
80 80
             $content = $this->readFile($file_path);
81
-        }catch (PhpfastcacheIOException $e){
81
+        } catch (PhpfastcacheIOException $e){
82 82
             return null;
83 83
         }
84 84
 
Please login to merge, or discard this patch.
plugins/mdm/php/class.pluginmdmmodule.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
 						// fallback for "old-style" states
57 57
 						if (isset($unserializedState->data->devices)) {
58 58
 							$devices[$unserializedState->data->devices->$username->data->deviceid] = $unserializedState->data->devices->$username->data;
59
-						}
60
-						else {
59
+						} else {
61 60
 							$devices[$unserializedState->data->deviceid] = $unserializedState->data;
62 61
 						}
63 62
 					}
@@ -95,8 +94,7 @@  discard block
 block discarded – undo
95 94
 					mapi_savechanges($devicedata);
96 95
 					return true;
97 96
 				}
98
-			}
99
-			catch(Exception $e) {
97
+			} catch(Exception $e) {
100 98
 				error_log(sprintf("mdm plugin resyncDevice Exception: %s", $e));
101 99
 				return false;
102 100
 			}
@@ -164,8 +162,7 @@  discard block
 block discarded – undo
164 162
 				];
165 163
 				$ret = file_get_contents(PLUGIN_MDM_ADMIN_API_WIPE_ENDPOINT . $GLOBALS["mapisession"]->getUserName() ."?devices=". $deviceid, false, stream_context_create($opts));
166 164
 				return $ret;
167
-			}
168
-			catch(Exception $e) {
165
+			} catch(Exception $e) {
169 166
 				error_log(sprintf("mdm plugin removeDevice Exception: %s", $e));
170 167
 				return false;
171 168
 			}
@@ -253,8 +250,7 @@  discard block
 block discarded – undo
253 250
 						default:
254 251
 							$this->handleUnknownActionType($actionType);
255 252
 					}
256
-				}
257
-				catch (Exception $e) {
253
+				} catch (Exception $e) {
258 254
 					$title = _('Mobile device management plugin');
259 255
 					$display_message = sprintf(_('Unexpected error occurred. Please contact your system administrator. Error code: %s'), $e->getMessage());
260 256
 					$this->sendFeedback(true, array("type" => ERROR_GENERAL, "info" => array('title' => $title, 'display_message' => $display_message)));
Please login to merge, or discard this patch.