Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/Services/TRpcServer.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
 		try
70 70
 		{
71 71
 			return $this->handler->callMethod($this->getPayload());
72
-		}
73
-		catch(TRpcException $e)
72
+		} catch(TRpcException $e)
74 73
 		{
75 74
 			return $this->handler->createErrorResponse($e);
76 75
 		}
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 		{
71 71
 			return $this->handler->callMethod($this->getPayload());
72 72
 		}
73
-		catch(TRpcException $e)
73
+		catch (TRpcException $e)
74 74
 		{
75 75
 			return $this->handler->createErrorResponse($e);
76 76
 		}
Please login to merge, or discard this patch.
framework/Web/TSessionIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 */
70 70
 	public function current()
71 71
 	{
72
-		return isset($_SESSION[$this->_key])?$_SESSION[$this->_key]:null;
72
+		return isset($_SESSION[$this->_key]) ? $_SESSION[$this->_key] : null;
73 73
 	}
74 74
 
75 75
 	/**
Please login to merge, or discard this patch.
framework/Security/TAuthManager.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@
 block discarded – undo
102 102
 				throw new TConfigurationException('authmanager_usermanager_invalid', $this->_userManager);
103 103
 			$this->_userManager = $users;
104 104
 		}
105
-		$application->attachEventHandler('OnAuthentication', [$this,'doAuthentication']);
106
-		$application->attachEventHandler('OnEndRequest', [$this,'leave']);
107
-		$application->attachEventHandler('OnAuthorization', [$this,'doAuthorization']);
105
+		$application->attachEventHandler('OnAuthentication', [$this, 'doAuthentication']);
106
+		$application->attachEventHandler('OnEndRequest', [$this, 'leave']);
107
+		$application->attachEventHandler('OnAuthorization', [$this, 'doAuthorization']);
108 108
 		$this->_initialized = true;
109 109
 	}
110 110
 
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.