Passed
Pull Request — developer (#16159)
by Arkadiusz
16:31
created
app/Utils/Completions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	public static function decodeCustomTag(string $text): string
108 108
 	{
109 109
 		if (false !== strpos($text, '<yetiforce')) {
110
-			$text = preg_replace_callback('/<yetiforce\s(.*)><\/yetiforce>/', function (array $matches) {
110
+			$text = preg_replace_callback('/<yetiforce\s(.*)><\/yetiforce>/', function(array $matches) {
111 111
 				$attributes = \App\TextUtils::getTagAttributes($matches[0]);
112 112
 				$return = '';
113 113
 				if (!empty($attributes['type'])) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 		);
145 145
 		return \preg_replace_callback(
146 146
 			static::ROW_REGEX,
147
-			function (array $matches) {
147
+			function(array $matches) {
148 148
 				$type = $matches[1];
149 149
 				$id = (int) $matches[2];
150 150
 				if (self::OWNER_SEPARATOR === $type) {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 	{
203 203
 		return \preg_replace_callback(
204 204
 			"/<a\\s+[^>]*data-id=(?:\"|')(.)(\\d+)(?:\"|')[^>]*>[^<]+<\\/a>/i",
205
-			function (array $matches) {
205
+			function(array $matches) {
206 206
 				$type = $matches[1];
207 207
 				$recordName = strip_tags($matches[0]);
208 208
 				return "{$type}{$type}{$matches[2]}_{$recordName}{$type}{$type}";
Please login to merge, or discard this patch.
config/Components/ConfigTemplates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 		'BACKUP_PATH' => [
92 92
 			'default' => '',
93 93
 			'description' => 'Backup catalog path.',
94
-			'validation' => function () {
94
+			'validation' => function() {
95 95
 				$arg = func_get_arg(0);
96 96
 				return '' === $arg || \App\Fields\File::isAllowedDirectory($arg);
97 97
 			},
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 		'watchdogUrl' => [
204 204
 			'default' => '',
205 205
 			'description' => 'YetiForce watchdog monitor URL',
206
-			'validation' => function () {
206
+			'validation' => function() {
207 207
 				$arg = func_get_arg(0);
208 208
 				return empty($arg) || \App\Validator::url($arg);
209 209
 			},
Please login to merge, or discard this patch.
modules/OSSMail/models/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 					foreach ($params as $key => $value) {
112 112
 						$textParser->setParam($key, $value);
113 113
 					}
114
-					if ('Calendar' === $moduleName && !$recordModel->isEmpty('meeting_url') && !\array_key_exists('meetingUrl', $params) ) {
114
+					if ('Calendar' === $moduleName && !$recordModel->isEmpty('meeting_url') && !\array_key_exists('meetingUrl', $params)) {
115 115
 						$textParser->setParam('meetingUrl', $recordModel->get('meeting_url'));
116 116
 					}
117 117
 					$subject = $textParser->setContent($templateModel->get('subject'))->parse()->getContent();
Please login to merge, or discard this patch.
modules/Settings/PickListDependency/models/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 			$dataReader = (new App\Db\Query())->from('s_#__picklist_dependency_data')->where(['id' => $this->getId()])->createCommand()->query();
145 145
 			$this->mapping = [];
146 146
 			while ($row = $dataReader->read()) {
147
-				['source_id' => $sourceId,'conditions' => $conditions] = $row;
147
+				['source_id' => $sourceId, 'conditions' => $conditions] = $row;
148 148
 				$this->mapping[$sourceId] = $conditions;
149 149
 			}
150 150
 			$dataReader->close();
Please login to merge, or discard this patch.