Skip to content

Commit de4cec1

Browse files
committed
Fix code style
1 parent a6bb2f7 commit de4cec1

10 files changed

Lines changed: 33 additions & 32 deletions

File tree

‎src/Attribute/AttributeFactory.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function setServiceContainer(IMetaModelsServiceContainer $serviceContaine
8989
if ($deprecationNotice) {
9090
// @codingStandardsIgnoreStart
9191
@trigger_error(
92-
'"' .__METHOD__ . '" is deprecated and will get removed.',
92+
'"' . __METHOD__ . '" is deprecated and will get removed.',
9393
E_USER_DEPRECATED
9494
);
9595
// @codingStandardsIgnoreEnd
@@ -129,7 +129,7 @@ public function getServiceContainer()
129129
{
130130
// @codingStandardsIgnoreStart
131131
@trigger_error(
132-
'"' .__METHOD__ . '" is deprecated - use the services from the service container.',
132+
'"' . __METHOD__ . '" is deprecated - use the services from the service container.',
133133
E_USER_DEPRECATED
134134
);
135135
// @codingStandardsIgnoreEnd

‎src/Attribute/Base.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function hookAdditionalFormatters($arrBaseFormatted, $arrRowData, $strOut
238238
if (isset($GLOBALS['METAMODEL_HOOKS']['parseValue']) && \is_array($GLOBALS['METAMODEL_HOOKS']['parseValue'])) {
239239
// @codingStandardsIgnoreStart
240240
@trigger_error(
241-
'"' .__METHOD__ . '" is deprecated and will get removed.',
241+
'"' . __METHOD__ . '" is deprecated and will get removed.',
242242
E_USER_DEPRECATED
243243
);
244244
// @codingStandardsIgnoreEnd

‎src/CoreBundle/Contao/InsertTag/ResolveLanguageTag.php‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function resolve(string $queryString): string
6565
return $queryString;
6666
}
6767

68-
if (false === ($tags = \preg_split('~{{(ifn?lng[^{}]*)}}~', $queryString, -1, PREG_SPLIT_DELIM_CAPTURE ))) {
68+
if (false === ($tags = \preg_split('~{{(ifn?lng[^{}]*)}}~', $queryString, -1, PREG_SPLIT_DELIM_CAPTURE))) {
6969
return $queryString;
7070
}
7171

@@ -75,10 +75,10 @@ public function resolve(string $queryString): string
7575
for ($_rit = 0, $_cnt = \count($tags); $_rit < $_cnt; $_rit += 2) {
7676
$strBuffer .= $tags[$_rit];
7777

78-
if (!isset($tags[$_rit+1])) {
78+
if (!isset($tags[$_rit + 1])) {
7979
continue;
8080
}
81-
$strTag = $tags[$_rit+1];
81+
$strTag = $tags[$_rit + 1];
8282

8383
if (!$strTag) {
8484
continue;
@@ -94,13 +94,14 @@ public function resolve(string $queryString): string
9494
'' !== $elements[1] &&
9595
$this->languageMatches($elements[1]) === (\strtolower($elements[0]) === 'ifnlng')
9696
) {
97-
for (; $_rit<$_cnt; $_rit+=2) {
97+
for (; $_rit < $_cnt; $_rit += 2) {
9898
if (
9999
1 === \preg_match(
100-
'/^' . \preg_quote($elements[0], '/') . '(?:$|::|\|)/i', $tags[$_rit+3] ?? ''
100+
'/^' . \preg_quote($elements[0], '/') . '(?:$|::|\|)/i',
101+
$tags[$_rit + 3] ?? ''
101102
)
102103
) {
103-
$tags[$_rit+2] = '';
104+
$tags[$_rit + 2] = '';
104105
break;
105106
}
106107
}

‎src/FrontendIntegration/MetaModelHybrid.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getServiceContainer()
105105
{
106106
// @codingStandardsIgnoreStart
107107
@trigger_error(
108-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
108+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
109109
E_USER_DEPRECATED
110110
);
111111
// @codingStandardsIgnoreEnd

‎src/Helper/PaginationLimitCalculator.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public function setCurrentPage(int $currentPage): self
329329

330330
// @codingStandardsIgnoreStart
331331
@trigger_error(
332-
'"' .__METHOD__ . '" is deprecated - the page is determined automatically from the current request.',
332+
'"' . __METHOD__ . '" is deprecated - the page is determined automatically from the current request.',
333333
E_USER_DEPRECATED
334334
);
335335
// @codingStandardsIgnoreEnd

‎src/Item.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getServiceContainer()
111111
{
112112
// @codingStandardsIgnoreStart
113113
@trigger_error(
114-
'"' .__METHOD__ . '" is deprecated and will get removed in MetaModels 3.0.',
114+
'"' . __METHOD__ . '" is deprecated and will get removed in MetaModels 3.0.',
115115
E_USER_DEPRECATED
116116
);
117117
// @codingStandardsIgnoreEnd

‎src/ItemList.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ public function setMetaModel(string|int $intMetaModel, string|int $intView): sel
526526
$intMetaModel = (string) $intMetaModel;
527527
// @codingStandardsIgnoreStart Silencing errors is discouraged
528528
@trigger_error(
529-
'Parameter $intMetaModel in "' . __CLASS__ . '::' .__METHOD__. '" has been changed from int to string.',
529+
'Parameter $intMetaModel in "' . __CLASS__ . '::' . __METHOD__ . '" has been changed from int to string.',
530530
E_USER_DEPRECATED
531531
);
532532
// @codingStandardsIgnoreEnd
@@ -536,7 +536,7 @@ public function setMetaModel(string|int $intMetaModel, string|int $intView): sel
536536
$intView = (string) $intView;
537537
// @codingStandardsIgnoreStart Silencing errors is discouraged
538538
@trigger_error(
539-
'Parameter $intView in "' . __CLASS__ . '::' .__METHOD__. '" has been changed from int to string.',
539+
'Parameter $intView in "' . __CLASS__ . '::' . __METHOD__ . '" has been changed from int to string.',
540540
E_USER_DEPRECATED
541541
);
542542
// @codingStandardsIgnoreEnd
@@ -702,7 +702,7 @@ public function setFilterSettings(string|int $intFilter): self
702702
$intFilter = (string) $intFilter;
703703
// @codingStandardsIgnoreStart Silencing errors is discouraged
704704
@trigger_error(
705-
'Parameter $intFilter in "' . __CLASS__ . '::' .__METHOD__. '" has been changed from int to string.',
705+
'Parameter $intFilter in "' . __CLASS__ . '::' . __METHOD__ . '" has been changed from int to string.',
706706
E_USER_DEPRECATED
707707
);
708708
// @codingStandardsIgnoreEnd
@@ -1017,7 +1017,7 @@ public function getObjItems(): IItems
10171017
{
10181018
// @codingStandardsIgnoreStart
10191019
@trigger_error(
1020-
'"' .__METHOD__ . '" is deprecated - use \'getItems()\'.',
1020+
'"' . __METHOD__ . '" is deprecated - use \'getItems()\'.',
10211021
E_USER_DEPRECATED
10221022
);
10231023
// @codingStandardsIgnoreEnd

‎src/MetaModel.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getServiceContainer()
171171
{
172172
// @codingStandardsIgnoreStart
173173
@trigger_error(
174-
'"' .__METHOD__ . '" is deprecated and will get removed.',
174+
'"' . __METHOD__ . '" is deprecated and will get removed.',
175175
E_USER_DEPRECATED
176176
);
177177
// @codingStandardsIgnoreEnd
@@ -203,7 +203,7 @@ public function setServiceContainer($serviceContainer, $deprecationNotice = true
203203
if ($deprecationNotice) {
204204
// @codingStandardsIgnoreStart
205205
@trigger_error(
206-
'"' .__METHOD__ . '" is deprecated and will get removed.',
206+
'"' . __METHOD__ . '" is deprecated and will get removed.',
207207
E_USER_DEPRECATED
208208
);
209209
// @codingStandardsIgnoreEnd
@@ -224,7 +224,7 @@ protected function getDatabase()
224224
{
225225
// @codingStandardsIgnoreStart
226226
@trigger_error(
227-
'"' .__METHOD__ . '" is deprecated and will get removed.',
227+
'"' . __METHOD__ . '" is deprecated and will get removed.',
228228
E_USER_DEPRECATED
229229
);
230230
// @codingStandardsIgnoreEnd
@@ -786,7 +786,7 @@ public function getAvailableLanguages()
786786
// @codingStandardsIgnoreStart
787787
@\trigger_error(
788788
\sprintf('The method "%s" is deprecated since MetaModels 2.2 and to be removed in 3.0. ' .
789-
'Please test for "instanceof "\MetaModels\ITranslatedMetaModel" and use '.
789+
'Please test for "instanceof "\MetaModels\ITranslatedMetaModel" and use ' .
790790
'"\MetaModels\ITranslatedMetaModel::getLanguages" instead.', __METHOD__),
791791
E_USER_DEPRECATED
792792
);
@@ -1328,7 +1328,7 @@ public function saveItem($objItem, $timestamp = null)
13281328
} elseif ($this->isTranslated(false)) {
13291329
// @codingStandardsIgnoreStart
13301330
@\trigger_error(
1331-
\sprintf('Support for translated MetaModels not implementing "\MetaModels\ITranslatedMetaModel" '.
1331+
\sprintf('Support for translated MetaModels not implementing "\MetaModels\ITranslatedMetaModel" ' .
13321332
'is %s deprecated since MetaModels 2.2 and to be removed in 3.0. ' .
13331333
'Please implement interface "\MetaModels\ITranslatedMetaModel".', __METHOD__),
13341334
E_USER_DEPRECATED

‎src/MetaModelsServiceContainer.php‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function getFactory()
130130
{
131131
// @codingStandardsIgnoreStart
132132
@trigger_error(
133-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
133+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
134134
E_USER_DEPRECATED
135135
);
136136
// @codingStandardsIgnoreEnd
@@ -167,7 +167,7 @@ public function getAttributeFactory()
167167
{
168168
// @codingStandardsIgnoreStart
169169
@trigger_error(
170-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
170+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
171171
E_USER_DEPRECATED
172172
);
173173
// @codingStandardsIgnoreEnd
@@ -204,7 +204,7 @@ public function getFilterFactory()
204204
{
205205
// @codingStandardsIgnoreStart
206206
@trigger_error(
207-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
207+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
208208
E_USER_DEPRECATED
209209
);
210210
// @codingStandardsIgnoreEnd
@@ -241,7 +241,7 @@ public function getRenderSettingFactory()
241241
{
242242
// @codingStandardsIgnoreStart
243243
@trigger_error(
244-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
244+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
245245
E_USER_DEPRECATED
246246
);
247247
// @codingStandardsIgnoreEnd
@@ -278,7 +278,7 @@ public function getEventDispatcher()
278278
{
279279
// @codingStandardsIgnoreStart
280280
@trigger_error(
281-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
281+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
282282
E_USER_DEPRECATED
283283
);
284284
// @codingStandardsIgnoreEnd
@@ -314,7 +314,7 @@ public function getDatabase()
314314
{
315315
// @codingStandardsIgnoreStart
316316
@trigger_error(
317-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
317+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
318318
E_USER_DEPRECATED
319319
);
320320
// @codingStandardsIgnoreEnd
@@ -338,7 +338,7 @@ public function getCache()
338338
{
339339
// @codingStandardsIgnoreStart
340340
@trigger_error(
341-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
341+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
342342
E_USER_DEPRECATED
343343
);
344344
// @codingStandardsIgnoreEnd
@@ -376,7 +376,7 @@ public function setService($service, $serviceName = null)
376376
{
377377
// @codingStandardsIgnoreStart
378378
@trigger_error(
379-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
379+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
380380
E_USER_DEPRECATED
381381
);
382382
// @codingStandardsIgnoreEnd
@@ -408,7 +408,7 @@ public function getService($serviceName)
408408
{
409409
// @codingStandardsIgnoreStart
410410
@trigger_error(
411-
'"' .__METHOD__ . '" is deprecated as the service container will get removed.',
411+
'"' . __METHOD__ . '" is deprecated as the service container will get removed.',
412412
E_USER_DEPRECATED
413413
);
414414
// @codingStandardsIgnoreEnd

‎src/Render/Setting/RenderSettingFactory.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function setServiceContainer(IMetaModelsServiceContainer $serviceContaine
125125
if ($deprecationNotice) {
126126
// @codingStandardsIgnoreStart
127127
@trigger_error(
128-
'"' .__METHOD__ . '" is deprecated and will get removed.',
128+
'"' . __METHOD__ . '" is deprecated and will get removed.',
129129
E_USER_DEPRECATED
130130
);
131131
// @codingStandardsIgnoreEnd
@@ -170,7 +170,7 @@ public function getServiceContainer()
170170
{
171171
// @codingStandardsIgnoreStart
172172
@trigger_error(
173-
'"' .__METHOD__ . '" is deprecated - use the services from the service container.',
173+
'"' . __METHOD__ . '" is deprecated - use the services from the service container.',
174174
E_USER_DEPRECATED
175175
);
176176
// @codingStandardsIgnoreEnd

0 commit comments

Comments
 (0)