Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Security/TAuthManager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -430,8 +430,7 @@
 block discarded – undo
430 430
 				$this->getResponse()->getCookies()->add($cookie);
431 431
 			}
432 432
 			return true;
433
-		}
434
-		else
433
+		} else
435 434
 			return false;
436 435
 	}
437 436
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLiteral.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,7 @@
 block discarded – undo
106 106
 				$writer->write(THttpUtility::htmlEncode($text));
107 107
 			else
108 108
 				$writer->write($text);
109
-		}
110
-		else
109
+		} else
111 110
 			parent::render($writer);
112 111
 	}
113 112
 }
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataTypeValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				{
102 102
 					$formatter = new TSimpleDateFormatter($dateFormat);
103 103
 					return $formatter->isValidDate($value);
104
-				}
105
-				else
104
+				} else
106 105
 					return strtotime($value) > 0;
107 106
 		}
108 107
 		return true;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THyperLink.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
72 72
 				parent::renderContents($writer);
73 73
 			else
74 74
 				$writer->write(THttpUtility::htmlEncode($this->getNavigateUrl()));
75
-		}
76
-		else
75
+		} else
77 76
 		{
78 77
 			$this->createImage($imageUrl)->renderControl($writer);
79 78
 		}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveControlAdapter.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,7 @@
 block discarded – undo
76 76
 				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
77 77
 			else
78 78
 				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
79
-		}
80
-		else
79
+		} else
81 80
 			$this->_activeControlType = $type;
82 81
 	}
83 82
 
Please login to merge, or discard this patch.
framework/Web/UI/TForm.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,7 @@
 block discarded – undo
92 92
 
93 93
 			$cs->renderScriptFilesEnd($writer);
94 94
 			$cs->renderEndScripts($writer);
95
-		}
96
-		else
95
+		} else
97 96
 		{
98 97
 			$cs->renderHiddenFieldsBegin($writer);
99 98
 
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TSqliteScaffoldInput.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
101 101
 				$dt->format('j'),
102 102
 				$dt->format('Y')
103 103
 			);
104
-		}
105
-		else
104
+		} else
106 105
 			return parent::getDateTimeValue($container, $column, $record);
107 106
 	}
108 107
 }
Please login to merge, or discard this patch.
framework/Security/TSecurityManager.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -184,8 +184,7 @@  discard block
 block discarded – undo
184 184
 			$key = md5($this->getEncryptionKey());
185 185
 			$iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($this->_cryptAlgorithm));
186 186
 			return $iv . openssl_encrypt($data, $this->_cryptAlgorithm, $key, null, $iv);
187
-		}
188
-		else
187
+		} else
189 188
 			throw new TNotSupportedException('securitymanager_openssl_required');
190 189
 	}
191 190
 
@@ -202,8 +201,7 @@  discard block
 block discarded – undo
202 201
 			$key = md5($this->getEncryptionKey());
203 202
 			$iv = $this->substr($data, 0, openssl_cipher_iv_length($this->_cryptAlgorithm));
204 203
 			return openssl_decrypt($this->substr($data, $this->strlen($iv), $this->strlen($data)), $this->_cryptAlgorithm, $key, null, $iv);
205
-		}
206
-		else
204
+		} else
207 205
 			throw new TNotSupportedException('securitymanager_openssl_required');
208 206
 	}
209 207
 
Please login to merge, or discard this patch.
framework/Web/Services/TJsonRpcProtocol.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,16 +79,13 @@
 block discarded – undo
79 79
 					]);
80 80
 				}
81 81
 			}
82
-		}
83
-		catch(TRpcException $e)
82
+		} catch(TRpcException $e)
84 83
 		{
85 84
 			return $this->createErrorResponse($e);
86
-		}
87
-		catch(THttpException $e)
85
+		} catch(THttpException $e)
88 86
 		{
89 87
 			throw $e;
90
-		}
91
-		catch(\Exception $e)
88
+		} catch(\Exception $e)
92 89
 		{
93 90
 			return $this->createErrorResponse(new TRpcException('An internal error occured', '-32603'));
94 91
 		}
Please login to merge, or discard this patch.