Passed
Push — templating ( 0cf8c2...d1ec7e )
by Daniel
03:46
created
services/tree/display.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
 		for ($i = 0, $size = sizeof($data); $i < $size; $i++)
177 177
 		{
178 178
 			$row 		= $data[$i];
179
-			$this_depth	= $parental_depth[$row[$this->column_parent_id]] + 1;
179
+			$this_depth = $parental_depth[$row[$this->column_parent_id]] + 1;
180 180
 			$repeat		= (int) abs($prev_depth - $this_depth);
181 181
 
182 182
 			$nodes[]	= array_merge(array(
Please login to merge, or discard this patch.
services/members.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 		$sql_ary['WHERE'] .= ' AND u.user_lastvisit <> 0 AND u.user_id <> ' . (int) $this->user->data['user_id'];
168 168
 		$sql_ary['ORDER_BY'] = 'u.user_lastvisit DESC';
169 169
 
170
-        $this->sql_date_field = 'user_lastvisit';
170
+		$this->sql_date_field = 'user_lastvisit';
171 171
 	}
172 172
 
173 173
 	/**
Please login to merge, or discard this patch.
services/blocks/blocks.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -189,9 +189,9 @@  discard block
 block discarded – undo
189 189
 	 */
190 190
 	protected function block_has_content(array &$returned_data, $edit_mode)
191 191
 	{
192
-        if ($this->block_returns_nothing($returned_data))
193
-        {
194
-            return $this->set_edit_mode_content($returned_data, $edit_mode, 'BLOCK_NO_DATA');
192
+		if ($this->block_returns_nothing($returned_data))
193
+		{
194
+			return $this->set_edit_mode_content($returned_data, $edit_mode, 'BLOCK_NO_DATA');
195 195
 		}
196 196
 		else if ($this->block_is_missing_template($returned_data))
197 197
 		{
@@ -204,21 +204,21 @@  discard block
 block discarded – undo
204 204
 
205 205
 	/**
206 206
 	 * @param array $data
207
-     * @param bool $edit_mode
208
-     * @param string $lang_key
207
+	 * @param bool $edit_mode
208
+	 * @param string $lang_key
209 209
 	 * @return bool
210 210
 	 */
211 211
 	protected function set_edit_mode_content(array &$data, $edit_mode, $lang_key)
212 212
 	{
213
-        if ($edit_mode)
214
-        {
215
-            $data['status'] = 0;
216
-            $data['content'] = $this->translator->lang($lang_key);
213
+		if ($edit_mode)
214
+		{
215
+			$data['status'] = 0;
216
+			$data['content'] = $this->translator->lang($lang_key);
217 217
 
218
-            return true;
219
-        }
218
+			return true;
219
+		}
220 220
 
221
-        return false;
221
+		return false;
222 222
 	}
223 223
 
224 224
 	/**
@@ -230,14 +230,14 @@  discard block
 block discarded – undo
230 230
 		return !$returned_data['content'] && empty($returned_data['data']);
231 231
 	}
232 232
 
233
-    /**
234
-     * @param array $returned_data
235
-     * @return bool
236
-     */
237
-    protected function block_is_missing_template(array $returned_data)
238
-    {
239
-        return is_array($returned_data['data']) && !$returned_data['template'];
240
-    }
233
+	/**
234
+	 * @param array $returned_data
235
+	 * @return bool
236
+	 */
237
+	protected function block_is_missing_template(array $returned_data)
238
+	{
239
+		return is_array($returned_data['data']) && !$returned_data['template'];
240
+	}
241 241
 
242 242
 	/**
243 243
 	 * Should we display this block?
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 			);
124 124
 
125 125
 			// we get the template after running 'display()' above so template can be set dynamically
126
-			$returned_data['template']	= $block_instance->get_template();
126
+			$returned_data['template'] = $block_instance->get_template();
127 127
 
128 128
 			if ($this->block_has_content($returned_data, $edit_mode))
129 129
 			{
Please login to merge, or discard this patch.