Completed
Push — master ( 068c90...e4afe1 )
by Nazar
04:06
created
core/traits/CRUD.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 				)",
68 68
 			$prepared_arguments
69 69
 		);
70
-		$id      = $insert_id !== false ? $insert_id : $this->db_prime()->id();
70
+		$id = $insert_id !== false ? $insert_id : $this->db_prime()->id();
71 71
 		/**
72 72
 		 * Id might be 0 if insertion failed or if we insert duplicate entry (which is fine since we use 'INSERT IGNORE'
73 73
 		 */
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 				$language_field_condition",
275 275
 			$id
276 276
 		) ?: [];
277
-		$language_field           = isset($model['language_field']) ? $model['language_field'] : null;
277
+		$language_field = isset($model['language_field']) ? $model['language_field'] : null;
278 278
 		/**
279 279
 		 * If no rows found for current language - find another language that should contain some rows
280 280
 		 */
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 			return false;
350 350
 		}
351 351
 		list($prepared_arguments, $joined_tables) = $this->crud_arguments_preparation(array_slice($data_model, 1), $prepared_arguments, $id);
352
-		$columns              = implode(
352
+		$columns = implode(
353 353
 			',',
354 354
 			array_map(
355 355
 				function ($column) {
Please login to merge, or discard this patch.