Completed
Push — master ( 5d3339...574798 )
by Nazar
04:54
created
core/classes/Page/Assets_processing.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 			}
322 322
 			$filename = static::file_put_contents_with_hash($target_directory_path, 'js', $scripts_content);
323 323
 			// Add script with combined content file to the end
324
-			$data                     .= "<script src=\"./$filename\"></script>";
324
+			$data .= "<script src=\"./$filename\"></script>";
325 325
 			$not_embedded_resources[] = str_replace(getcwd(), '', "$target_directory_path/$filename");
326 326
 		} else {
327 327
 			// Add combined content inline script to the end
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 				/**
374 374
 				 * If content is link to CSS file
375 375
 				 */
376
-				$css  = static::css(
376
+				$css = static::css(
377 377
 					file_get_contents("$dir/$url"),
378 378
 					"$dir/$url",
379 379
 					$target_directory_path,
Please login to merge, or discard this patch.
modules/Photo_gallery/admin/galleries/add.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
 			).
25 25
 			h::label($L->gallery_title).
26 26
 			h::{'cs-input-text input[name=add[title]]'}().
27
-			($Config->core['simple_admin_mode'] ? '' :
28
-				h::label(h::info('photo_gallery_gallery_path')).
27
+			($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')).
29 28
 				h::{'cs-input-text input[name=add[path]]'}()
30 29
 			).
31 30
 			h::label($L->gallery_description).
Please login to merge, or discard this patch.
modules/Photo_gallery/admin/galleries/edit.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
 					'value' => $gallery['title']
31 31
 				]
32 32
 			).
33
-			($Config->core['simple_admin_mode'] ? '' :
34
-				h::label(h::info('photo_gallery_gallery_path')).
33
+			($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')).
35 34
 				h::{'cs-input-text input[name=edit[path]]'}(
36 35
 					[
37 36
 						'value' => $gallery['path']
Please login to merge, or discard this patch.
core/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
 		 * Try to load classes from different places. If not found in one place - try in another.
79 79
 		 */
80 80
 		if (
81
-			file_exists($file = CORE."/classes/$namespace/$class_name.php") ||    //Core classes
81
+			file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes
82 82
 			file_exists($file = CORE."/thirdparty/$namespace/$class_name.php") || //Third party classes
83
-			file_exists($file = CORE."/traits/$namespace/$class_name.php") ||     //Core traits
84
-			file_exists($file = CORE."/drivers/$namespace/$class_name.php") ||    //Core drivers
83
+			file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits
84
+			file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers
85 85
 			file_exists($file = MODULES."/../$namespace/$class_name.php")         //Classes in modules
86 86
 		) {
87 87
 			$cache[$class] = realpath($file);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	foreach ($units as $time_frame => $key) {
198 198
 		if ($time >= $time_frame) {
199 199
 			$time_full = floor($time / $time_frame);
200
-			$time      -= $time_full * $time_frame;
200
+			$time -= $time_full * $time_frame;
201 201
 			$res[]     = $L->time($time_full, $key);
202 202
 		}
203 203
 	}
Please login to merge, or discard this patch.