Completed
Push — intl ( 51e284 )
by Fabio
06:51
created
framework/Data/ActiveRecord/Relations/TActiveRecordRelationContext.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 	public function getPropertyValue()
50 50
 	{
51
-		$obj = $this->getSourceRecord();
51
+		$obj=$this->getSourceRecord();
52 52
 		return $obj->getColumnValue($this->getProperty());
53 53
 	}
54 54
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 */
112 112
 	public function getCondition()
113 113
 	{
114
-		return isset($this->_relation[3])?$this->_relation[3]:null;
114
+		return isset($this->_relation[3]) ? $this->_relation[3] : null;
115 115
 	}
116 116
 
117 117
 	/**
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 */
121 121
 	public function getParameters()
122 122
 	{
123
-		return isset($this->_relation[4])?$this->_relation[4]:array();
123
+		return isset($this->_relation[4]) ? $this->_relation[4] : array();
124 124
 	}
125 125
 
126 126
 	/**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 */
130 130
 	public function hasFkField()
131 131
 	{
132
-		$notManyToMany = $this->getRelationType() !== TActiveRecord::MANY_TO_MANY;
132
+		$notManyToMany=$this->getRelationType()!==TActiveRecord::MANY_TO_MANY;
133 133
 		return $notManyToMany && isset($this->_relation[2]) && !empty($this->_relation[2]);
134 134
 	}
135 135
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 */
147 147
 	public function hasAssociationTable()
148 148
 	{
149
-		$isManyToMany = $this->getRelationType() === TActiveRecord::MANY_TO_MANY;
149
+		$isManyToMany=$this->getRelationType()===TActiveRecord::MANY_TO_MANY;
150 150
 		return $isManyToMany && isset($this->_relation[2]) && !empty($this->_relation[2]);
151 151
 	}
152 152
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 				$this->_property, get_class($this->_record), 'RELATIONS');
175 175
 		}
176 176
 		if($criteria===null)
177
-			$criteria = new TActiveRecordCriteria($this->getCondition(), $this->getParameters());
177
+			$criteria=new TActiveRecordCriteria($this->getCondition(), $this->getParameters());
178 178
 		switch($this->getRelationType())
179 179
 		{
180 180
 			case TActiveRecord::HAS_MANY:
@@ -202,15 +202,15 @@  discard block
 block discarded – undo
202 202
 		$success=true;
203 203
 		foreach($this->_record->getRecordRelations() as $data)
204 204
 		{
205
-			list($property, $relation) = $data;
206
-			$belongsTo = $relation[0]==TActiveRecord::BELONGS_TO;
205
+			list($property, $relation)=$data;
206
+			$belongsTo=$relation[0]==TActiveRecord::BELONGS_TO;
207 207
 			if(($updateBelongsTo && $belongsTo) || (!$updateBelongsTo && !$belongsTo))
208 208
 			{
209
-				$obj = $this->getSourceRecord();
209
+				$obj=$this->getSourceRecord();
210 210
 				if(!$this->isEmptyFkObject($obj->getColumnValue($property)))
211 211
 				{
212
-					$context = new TActiveRecordRelationContext($this->getSourceRecord(),$property,$relation);
213
-					$success = $context->getRelationHandler()->updateAssociatedRecords() && $success;
212
+					$context=new TActiveRecordRelationContext($this->getSourceRecord(), $property, $relation);
213
+					$success=$context->getRelationHandler()->updateAssociatedRecords() && $success;
214 214
 				}
215 215
 			}
216 216
 		}
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	protected function isEmptyFkObject($obj)
221 221
 	{
222 222
 		if(is_object($obj))
223
-			return $obj instanceof TList ? $obj->count() === 0 : false;
223
+			return $obj instanceof TList ? $obj->count()===0 : false;
224 224
 		else if(is_array($obj))
225 225
 			return count($obj)===0;
226 226
 		else
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
 	private $_relation; //data from an entry of TActiveRecord::$RELATION
36 36
 	private $_fkeys;
37 37
 
38
+	/**
39
+	 * @param TActiveRecord $record
40
+	 */
38 41
 	public function __construct($record, $property=null, $relation=null)
39 42
 	{
40 43
 		$this->_record=$record;
@@ -168,6 +171,7 @@  discard block
 block discarded – undo
168 171
 	 * An instance of TActiveRecordHasOne, TActiveRecordBelongsTo, TActiveRecordHasMany,
169 172
 	 * or TActiveRecordHasManyAssocation will be returned.
170 173
 	 * @param TActiveRecordCriteria search criteria
174
+	 * @param \Prado\Data\DataGateway\TSqlCriteria $criteria
171 175
 	 * @return TActiveRecordRelation record relationship handler instnace.
172 176
 	 * @throws TActiveRecordException if property is not defined or missing.
173 177
 	 */
@@ -196,7 +200,7 @@  discard block
 block discarded – undo
196 200
 	}
197 201
 
198 202
 	/**
199
-	 * @return TActiveRecordRelationCommand
203
+	 * @return boolean
200 204
 	 */
201 205
 	public function updateAssociatedRecords($updateBelongsTo=false)
202 206
 	{
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordHasMany.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -75,14 +75,14 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	protected function collectForeignObjects(&$results)
77 77
 	{
78
-		$fkeys = $this->getRelationForeignKeys();
78
+		$fkeys=$this->getRelationForeignKeys();
79 79
 
80
-		$properties = array_values($fkeys);
81
-		$fields = array_keys($fkeys);
80
+		$properties=array_values($fkeys);
81
+		$fields=array_keys($fkeys);
82 82
 
83
-		$indexValues = $this->getIndexValues($properties, $results);
84
-		$fkObjects = $this->findForeignObjects($fields,$indexValues);
85
-		$this->populateResult($results,$properties,$fkObjects,$fields);
83
+		$indexValues=$this->getIndexValues($properties, $results);
84
+		$fkObjects=$this->findForeignObjects($fields, $indexValues);
85
+		$this->populateResult($results, $properties, $fkObjects, $fields);
86 86
 	}
87 87
 
88 88
 	/**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function getRelationForeignKeys()
93 93
 	{
94
-		$fkObject = $this->getContext()->getForeignRecordFinder();
94
+		$fkObject=$this->getContext()->getForeignRecordFinder();
95 95
 		return $this->findForeignKeys($fkObject, $this->getSourceRecord());
96 96
 	}
97 97
 
@@ -101,18 +101,18 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	public function updateAssociatedRecords()
103 103
 	{
104
-		$obj = $this->getContext()->getSourceRecord();
105
-		$fkObjects = &$obj->{$this->getContext()->getProperty()};
104
+		$obj=$this->getContext()->getSourceRecord();
105
+		$fkObjects=&$obj->{$this->getContext()->getProperty()};
106 106
 		$success=true;
107
-		if(($total = count($fkObjects))> 0)
107
+		if(($total=count($fkObjects)) > 0)
108 108
 		{
109
-			$source = $this->getSourceRecord();
110
-			$fkeys = $this->findForeignKeys($fkObjects[0], $source);
111
-			for($i=0;$i<$total;$i++)
109
+			$source=$this->getSourceRecord();
110
+			$fkeys=$this->findForeignKeys($fkObjects[0], $source);
111
+			for($i=0; $i < $total; $i++)
112 112
 			{
113 113
 				foreach($fkeys as $fKey => $srcKey)
114 114
 					$fkObjects[$i]->setColumnValue($fKey, $source->getColumnValue($srcKey));
115
-				$success = $fkObjects[$i]->save() && $success;
115
+				$success=$fkObjects[$i]->save() && $success;
116 116
 			}
117 117
 		}
118 118
 		return $success;
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordHasOne.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	protected function collectForeignObjects(&$results)
94 94
 	{
95
-		$fkeys = $this->getRelationForeignKeys();
96
-		$properties = array_values($fkeys);
97
-		$fields = array_keys($fkeys);
95
+		$fkeys=$this->getRelationForeignKeys();
96
+		$properties=array_values($fkeys);
97
+		$fields=array_keys($fkeys);
98 98
 
99
-		$indexValues = $this->getIndexValues($properties, $results);
100
-		$fkObjects = $this->findForeignObjects($fields,$indexValues);
101
-		$this->populateResult($results,$properties,$fkObjects,$fields);
99
+		$indexValues=$this->getIndexValues($properties, $results);
100
+		$fkObjects=$this->findForeignObjects($fields, $indexValues);
101
+		$this->populateResult($results, $properties, $fkObjects, $fields);
102 102
 	}
103 103
 
104 104
 	/**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function getRelationForeignKeys()
109 109
 	{
110
-		$fkObject = $this->getContext()->getForeignRecordFinder();
110
+		$fkObject=$this->getContext()->getForeignRecordFinder();
111 111
 		return $this->findForeignKeys($fkObject, $this->getSourceRecord());
112 112
 	}
113 113
 
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	protected function setObjectProperty($source, $properties, &$collections)
120 120
 	{
121
-		$hash = $this->getObjectHash($source, $properties);
122
-		$prop = $this->getContext()->getProperty();
121
+		$hash=$this->getObjectHash($source, $properties);
122
+		$prop=$this->getContext()->getProperty();
123 123
 		if(isset($collections[$hash]) && count($collections[$hash]) > 0)
124 124
 		{
125 125
 			if(count($collections[$hash]) > 1)
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
 	 */
135 135
 	public function updateAssociatedRecords()
136 136
 	{
137
-		$fkObject = $this->getContext()->getPropertyValue();
138
-		$source = $this->getSourceRecord();
139
-		$fkeys = $this->findForeignKeys($fkObject, $source);
137
+		$fkObject=$this->getContext()->getPropertyValue();
138
+		$source=$this->getSourceRecord();
139
+		$fkeys=$this->findForeignKeys($fkObject, $source);
140 140
 		foreach($fkeys as $fKey => $srcKey)
141 141
 			$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));
142 142
 		return $fkObject->save();
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/TScaffoldBase.php 4 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 	 */
41 41
 	protected function getTableInfo()
42 42
 	{
43
-		$finder = $this->getRecordFinder();
44
-		$gateway = $finder->getRecordManager()->getRecordGateWay();
43
+		$finder=$this->getRecordFinder();
44
+		$gateway=$finder->getRecordManager()->getRecordGateWay();
45 45
 		return $gateway->getRecordTableInfo($finder);
46 46
 	}
47 47
 
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 	 */
52 52
 	protected function getRecordPropertyValues($record)
53 53
 	{
54
-		$data = array();
54
+		$data=array();
55 55
 		foreach($this->getTableInfo()->getColumns() as $name=>$column)
56
-			$data[] = $record->getColumnValue($name);
56
+			$data[]=$record->getColumnValue($name);
57 57
 		return $data;
58 58
 	}
59 59
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 		foreach($this->getTableInfo()->getColumns() as $name=>$column)
68 68
 		{
69 69
 			if($column->getIsPrimaryKey())
70
-				$data[] = $record->getColumnValue($name);
70
+				$data[]=$record->getColumnValue($name);
71 71
 		}
72 72
 		return $data;
73 73
 	}
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	protected function copyFrom(TScaffoldBase $obj)
98 98
 	{
99
-		$this->_record = $obj->_record;
99
+		$this->_record=$obj->_record;
100 100
 		$this->setRecordClass($obj->getRecordClass());
101 101
 		$this->setEnableDefaultStyle($obj->getEnableDefaultStyle());
102 102
 	}
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
 			}
129 129
 			else
130 130
 			{
131
-				$class = $this->getRecordClass();
131
+				$class=$this->getRecordClass();
132 132
 				if($class!==null)
133 133
 					$this->_record=Prado::createComponent($class);
134 134
 				else
135 135
 				{
136 136
 					throw new TConfigurationException('scaffold_invalid_record_class',
137
-						$this->getRecordClass(),$this->getID());
137
+						$this->getRecordClass(), $this->getID());
138 138
 				}
139 139
 			}
140 140
 		}
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
 		parent::onPreRender($param);
198 198
 		if($this->getEnableDefaultStyle())
199 199
 		{
200
-			$url = $this->publishAsset($this->getDefaultStyle().'.css');
201
-			$this->getPage()->getClientScript()->registerStyleSheetFile($url,$url);
200
+			$url=$this->publishAsset($this->getDefaultStyle().'.css');
201
+			$this->getPage()->getClientScript()->registerStyleSheetFile($url, $url);
202 202
 		}
203 203
 	}
204 204
 }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
 	/**
92 92
 	 * Name of the Active Record class to be viewed or scaffolded.
93 93
 	 * @param string Active Record class name.
94
+	 * @param string $value
94 95
 	 */
95 96
 	public function setRecordClass($value)
96 97
 	{
@@ -190,6 +191,7 @@  discard block
 block discarded – undo
190 191
 
191 192
 	/**
192 193
 	 * @param boolean enable default stylesheet, default is true.
194
+	 * @param boolean $value
193 195
 	 */
194 196
 	public function setEnableDefaultStyle($value)
195 197
 	{
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * @link https://github.com/pradosoft/prado
7 7
  * @copyright Copyright &copy; 2005-2016 The PRADO Group
8 8
  * @license https://github.com/pradosoft/prado/blob/master/LICENSE
9
-  * @package Prado\Data\ActiveRecord\Scaffold
9
+ * @package Prado\Data\ActiveRecord\Scaffold
10 10
  */
11 11
 
12 12
 namespace Prado\Data\ActiveRecord\Scaffold;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
  * file explicitly.
33 33
  *
34 34
  * @author Wei Zhuo <weizho[at]gmail[dot]com>
35
-  * @package Prado\Data\ActiveRecord\Scaffold
35
+ * @package Prado\Data\ActiveRecord\Scaffold
36 36
  * @since 3.1
37 37
  */
38 38
 abstract class TScaffoldBase extends TTemplateControl
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,8 +132,7 @@
 block discarded – undo
132 132
 				if($this->_record===null)
133 133
 					throw new TConfigurationException('scaffold_invalid_record_pk',
134 134
 						$this->getRecordClass(), $pk);
135
-			}
136
-			else
135
+			} else
137 136
 			{
138 137
 				$class = $this->getRecordClass();
139 138
 				if($class!==null)
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php 3 patches
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	protected function initializeSort()
55 55
 	{
56
-		$table = $this->getTableInfo();
57
-		$sorts = array('Sort By', str_repeat('-',15));
58
-		$headers = array();
56
+		$table=$this->getTableInfo();
57
+		$sorts=array('Sort By', str_repeat('-', 15));
58
+		$headers=array();
59 59
 		foreach($table->getColumns() as $name=>$colum)
60 60
 		{
61
-			$fname = ucwords(str_replace('_', ' ', $name));
62
-			$sorts[$name.' ASC'] = $fname .' Ascending';
63
-			$sorts[$name.' DESC'] = $fname .' Descending';
64
-			$headers[] = $fname ;
61
+			$fname=ucwords(str_replace('_', ' ', $name));
62
+			$sorts[$name.' ASC']=$fname.' Ascending';
63
+			$sorts[$name.' DESC']=$fname.' Descending';
64
+			$headers[]=$fname;
65 65
 		}
66 66
 		$this->_sort->setDataSource($sorts);
67 67
 		$this->_sort->dataBind();
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 	 */
89 89
 	protected function loadRecordData()
90 90
 	{
91
-		$search = new TActiveRecordCriteria($this->getSearchCondition(), $this->getSearchParameters());
91
+		$search=new TActiveRecordCriteria($this->getSearchCondition(), $this->getSearchParameters());
92 92
 		$this->_list->setVirtualItemCount($this->getRecordFinder()->count($search));
93
-		$finder = $this->getRecordFinder();
94
-		$criteria = $this->getRecordCriteria();
93
+		$finder=$this->getRecordFinder();
94
+		$criteria=$this->getRecordCriteria();
95 95
 		$this->_list->setDataSource($finder->findAll($criteria));
96 96
 		$this->_list->dataBind();
97 97
 	}
@@ -101,21 +101,21 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	protected function getRecordCriteria()
103 103
 	{
104
-		$total = $this->_list->getVirtualItemCount();
105
-		$limit = $this->_list->getPageSize();
106
-		$offset = $this->_list->getCurrentPageIndex()*$limit;
104
+		$total=$this->_list->getVirtualItemCount();
105
+		$limit=$this->_list->getPageSize();
106
+		$offset=$this->_list->getCurrentPageIndex() * $limit;
107 107
 		if($offset + $limit > $total)
108
-			$limit = $total - $offset;
109
-		$criteria = new TActiveRecordCriteria($this->getSearchCondition(), $this->getSearchParameters());
108
+			$limit=$total - $offset;
109
+		$criteria=new TActiveRecordCriteria($this->getSearchCondition(), $this->getSearchParameters());
110 110
 		if($limit > 0)
111 111
 		{
112 112
 			$criteria->setLimit($limit);
113 113
 			if($offset <= $total)
114 114
 				$criteria->setOffset($offset);
115 115
 		}
116
-		$order = explode(' ',$this->_sort->getSelectedValue(), 2);
117
-		if(is_array($order) && count($order) === 2)
118
-			$criteria->OrdersBy[$order[0]] = $order[1];
116
+		$order=explode(' ', $this->_sort->getSelectedValue(), 2);
117
+		if(is_array($order) && count($order)===2)
118
+			$criteria->OrdersBy[$order[0]]=$order[1];
119 119
 		return $criteria;
120 120
 	}
121 121
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 */
141 141
 	public function setSearchParameters($value)
142 142
 	{
143
-		$this->setViewState('SearchParameters', TPropertyValue::ensureArray($value),array());
143
+		$this->setViewState('SearchParameters', TPropertyValue::ensureArray($value), array());
144 144
 	}
145 145
 
146 146
 	/**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 		{
177 177
 			if($param instanceof TRepeaterCommandEventParameter)
178 178
 			{
179
-				$pk = $param->getItem()->getCustomData();
179
+				$pk=$param->getItem()->getCustomData();
180 180
 				$ctrl->setRecordPk($pk);
181 181
 				$ctrl->initializeEditForm();
182 182
 			}
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	{
191 191
 		if($param instanceof TRepeaterCommandEventParameter)
192 192
 		{
193
-			$pk = $param->getItem()->getCustomData();
193
+			$pk=$param->getItem()->getCustomData();
194 194
 			$this->getRecordFinder()->deleteByPk($pk);
195 195
 		}
196 196
 	}
@@ -200,10 +200,10 @@  discard block
 block discarded – undo
200 200
 	 */
201 201
 	protected function listItemCreated($sender, $param)
202 202
 	{
203
-		$item = $param->getItem();
203
+		$item=$param->getItem();
204 204
 		if($item instanceof IItemDataRenderer)
205 205
 		{
206
-			$type = $item->getItemType();
206
+			$type=$item->getItemType();
207 207
 			if($type==TListItemType::Item || $type==TListItemType::AlternatingItem)
208 208
 				$this->populateField($sender, $param);
209 209
 		}
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
 	 */
216 216
 	protected function populateField($sender, $param)
217 217
 	{
218
-		$item = $param->getItem();
219
-		if(($data = $item->getData()) !== null)
218
+		$item=$param->getItem();
219
+		if(($data=$item->getData())!==null)
220 220
 		{
221 221
 			$item->setCustomData($this->getRecordPkValues($data));
222
-			if(($prop = $item->findControl('_properties'))!==null)
222
+			if(($prop=$item->findControl('_properties'))!==null)
223 223
 			{
224 224
 				$item->_properties->setDataSource($this->getRecordPropertyValues($data));
225 225
 				$item->_properties->dataBind();
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 	{
295 295
 		if(($id=$this->getEditViewID())!==null)
296 296
 		{
297
-			$ctrl = $this->getParent()->findControl($id);
297
+			$ctrl=$this->getParent()->findControl($id);
298 298
 			if($ctrl===null)
299 299
 				throw new TConfigurationException('scaffold_unable_to_find_edit_view', $id);
300 300
 			return $ctrl;
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
  * Parameters property of TActiveRecordCriteria.
53 53
  *
54 54
  * @author Wei Zhuo <weizho[at]gmail[dot]com>
55
-  * @package Prado\Data\ActiveRecord\Scaffold
55
+ * @package Prado\Data\ActiveRecord\Scaffold
56 56
  * @since 3.1
57 57
  */
58 58
 class TScaffoldListView extends TScaffoldBase
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -130,6 +130,7 @@
 block discarded – undo
130 130
 
131 131
 	/**
132 132
 	 * @param string search condition, the SQL string after the WHERE clause.
133
+	 * @param string $value
133 134
 	 */
134 135
 	public function setSearchCondition($value)
135 136
 	{
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/TScaffoldView.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
 	 * Handle the "edit" and "new" commands by displaying the edit view.
91 91
 	 * Default command shows the list view.
92 92
 	 */
93
-	public function bubbleEvent($sender,$param)
93
+	public function bubbleEvent($sender, $param)
94 94
 	{
95 95
 		switch(strtolower($param->getCommandName()))
96 96
 		{
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
  * the Active Record class to be displayed/edited/added.
35 35
  *
36 36
  * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
37
-  * @package Prado\Data\ActiveRecord\Scaffold
37
+ * @package Prado\Data\ActiveRecord\Scaffold
38 38
  * @since 3.0
39 39
  */
40 40
 class TScaffoldView extends TScaffoldBase
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TIbmScaffoldInput.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			case 'char': case 'varchar':
30 30
 				return $this->createMultiLineControl($container, $column, $record);
31 31
 			default:
32
-				return $this->createDefaultControl($container,$column, $record);
32
+				return $this->createDefaultControl($container, $column, $record);
33 33
 		}
34 34
 	}
35 35
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 			case 'timestamp':
45 45
 				return $this->getDateTimeValue($container, $column, $record);
46 46
 			default:
47
-				return $this->getDefaultControlValue($container,$column, $record);
47
+				return $this->getDefaultControlValue($container, $column, $record);
48 48
 		}
49 49
 	}
50 50
 }
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TMssqlScaffoldInput.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 			case 'datetime': case 'smalldatetime':
27 27
 				return $this->createDateTimeControl($container, $column, $record);
28 28
 			default:
29
-				$control = $this->createDefaultControl($container,$column, $record);
29
+				$control=$this->createDefaultControl($container, $column, $record);
30 30
 				if($column->getIsExcluded())
31 31
 					$control->setEnabled(false);
32 32
 				return $control;
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
 			case 'boolean':
41 41
 				return $container->findControl(self::DEFAULT_ID)->getChecked();
42 42
 			case 'datetime': case 'smalldatetime':
43
-				return $this->getDateTimeValue($container,$column, $record);
43
+				return $this->getDateTimeValue($container, $column, $record);
44 44
 			default:
45
-				$value = $this->getDefaultControlValue($container,$column, $record);
45
+				$value=$this->getDefaultControlValue($container, $column, $record);
46 46
 				if(trim($value)==='' && $column->getAllowNull())
47 47
 					return null;
48 48
 				else
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/InputBuilder/TPgsqlScaffoldInput.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 			case 'timestamp without time zone':
31 31
 				return $this->createDateTimeControl($container, $column, $record);
32 32
 			default:
33
-				return $this->createDefaultControl($container,$column, $record);
33
+				return $this->createDefaultControl($container, $column, $record);
34 34
 		}
35 35
 	}
36 36
 
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 			case 'time without time zone':
46 46
 				return $this->getTimeValue($container, $column, $record);
47 47
 			case 'timestamp without time zone':
48
-				return $this->getDateTimeValue($container,$column, $record);
48
+				return $this->getDateTimeValue($container, $column, $record);
49 49
 			default:
50
-				return $this->getDefaultControlValue($container,$column, $record);
50
+				return $this->getDefaultControlValue($container, $column, $record);
51 51
 		}
52 52
 	}
53 53
 }
Please login to merge, or discard this patch.