Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,9 @@
 block discarded – undo
137 137
 		$fkObject = $this->getContext()->getPropertyValue();
138 138
 		$source = $this->getSourceRecord();
139 139
 		$fkeys = $this->findForeignKeys($fkObject, $source);
140
-		foreach($fkeys as $fKey => $srcKey)
141
-			$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));
140
+		foreach($fkeys as $fKey => $srcKey) {
141
+					$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));
142
+		}
142 143
 		return $fkObject->save();
143 144
 	}
144 145
 }
Please login to merge, or discard this patch.
framework/Data/SqlMap/TSqlMapConfig.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
 				$manager->configureXml($file);
69 69
 				$this->cacheSqlMapManager($manager);
70 70
 			}
71
-		}
72
-		elseif($this->getConnectionID() !== '') {
71
+		} elseif($this->getConnectionID() !== '') {
73 72
 			$manager->setDbConnection($this->getDbConnection());
74 73
 		}
75 74
 		return $manager;
Please login to merge, or discard this patch.
framework/Data/SqlMap/Configuration/TParameterMap.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,8 +177,7 @@
 block discarded – undo
177 177
 		try
178 178
 		{
179 179
 			return TPropertyAccess::get($object, $property->getProperty());
180
-		}
181
-		catch (TInvalidPropertyException $e)
180
+		} catch (TInvalidPropertyException $e)
182 181
 		{
183 182
 			throw new TSqlMapException(
184 183
 				'sqlmap_unable_to_get_property_for_parameter',
Please login to merge, or discard this patch.
framework/Data/SqlMap/Configuration/TResultMap.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,8 +164,7 @@
 block discarded – undo
164 164
 				return $handler->createNewInstance();
165 165
 			else
166 166
 				return $registry->createInstanceOf($this->getClass());
167
-		}
168
-		catch (TSqlMapException $e)
167
+		} catch (TSqlMapException $e)
169 168
 		{
170 169
 			throw new TSqlMapException(
171 170
 				'sqlmap_unable_to_create_new_instance',
Please login to merge, or discard this patch.
framework/Data/SqlMap/TSqlMapManager.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -265,8 +265,9 @@
 block discarded – undo
265 265
 	 */
266 266
 	public function flushCacheModels()
267 267
 	{
268
-		foreach($this->_cacheModels as $cache)
269
-			$cache->flush();
268
+		foreach($this->_cacheModels as $cache) {
269
+					$cache->flush();
270
+		}
270 271
 	}
271 272
 }
272 273
 
Please login to merge, or discard this patch.
framework/Data/SqlMap/Statements/TPreparedStatementFactory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,9 @@
 block discarded – undo
40 40
 
41 41
 	protected function createParametersForTextCommand()
42 42
 	{
43
-		foreach($this->_statement->ParameterMap()->getProperties() as $prop)
44
-			$this->_preparedStatement->getParameterNames()->add($prop->getProperty());
43
+		foreach($this->_statement->ParameterMap()->getProperties() as $prop) {
44
+					$this->_preparedStatement->getParameterNames()->add($prop->getProperty());
45
+		}
45 46
 	}
46 47
 }
47 48
 
Please login to merge, or discard this patch.
framework/I18N/TDateFormat.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@
 block discarded – undo
112 112
 			&& strlen($datetime[1]) == 1)
113 113
 		{
114 114
 			$pattern = $datetime;
115
-		}
116
-		else //no subpattern, try the presets
115
+		} else //no subpattern, try the presets
117 116
 			$pattern = $this->getPreset($string);
118 117
 
119 118
 		//no presets found, use the string as the pattern
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackResponseAdapter.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,9 @@
 block discarded – undo
55 55
 	 */
56 56
 	public function flushContent()
57 57
 	{
58
-		foreach($this->_writers as $writer)
59
-			echo $writer->flush();
58
+		foreach($this->_writers as $writer) {
59
+					echo $writer->flush();
60
+		}
60 61
 		parent::flushContent();
61 62
 	}
62 63
 
Please login to merge, or discard this patch.
framework/Web/Services/TXmlRpcProtocol.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,16 +72,13 @@
 block discarded – undo
72 72
 		try
73 73
 		{
74 74
 			return xmlrpc_server_call_method($this->_xmlrpcServer, $requestPayload, null);
75
-		}
76
-		catch(TRpcException $e)
75
+		} catch(TRpcException $e)
77 76
 		{
78 77
 			return $this->createErrorResponse($e);
79
-		}
80
-		catch(THttpException $e)
78
+		} catch(THttpException $e)
81 79
 		{
82 80
 			throw $e;
83
-		}
84
-		catch(\Exception $e)
81
+		} catch(\Exception $e)
85 82
 		{
86 83
 			return $this->createErrorResponse(new TRpcException('An internal error occured'));
87 84
 		}
Please login to merge, or discard this patch.