Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
automated-typo3-update
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Automated-TYPO3-Update
automated-typo3-update
Commits
e7dbac4d
Unverified
Commit
e7dbac4d
authored
7 years ago
by
Daniel Siepmann
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Cleanup php code
* Adjust variable name, as this is generic and not about constants.
parent
896117aa
1 merge request
!74
Feature/54 add checks for typoscript
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
+8
-8
8 additions, 8 deletions
...dards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
with
8 additions
and
8 deletions
src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
+
8
−
8
View file @
e7dbac4d
...
...
@@ -45,7 +45,7 @@ abstract class AbstractGenericUsage implements PhpCsSniff
protected
$configured
=
[];
/**
*
Constant for the
current sniff
instance
.
*
Entries removed in
current sniff.
* @var array
*/
protected
$removed
=
[];
...
...
@@ -203,16 +203,16 @@ abstract class AbstractGenericUsage implements PhpCsSniff
*/
protected
function
addMessage
(
PhpCsFile
$phpcsFile
,
$tokenPosition
)
{
foreach
(
$this
->
removed
as
$
constant
)
{
foreach
(
$this
->
removed
as
$
removed
)
{
$phpcsFile
->
addWarning
(
'Legacy calls are not allowed; found %s. Removed in %s. %s. See: %s'
,
$tokenPosition
,
$this
->
getIdentifier
(
$
constant
),
$this
->
getIdentifier
(
$
removed
),
[
$this
->
getOldUsage
(
$
constant
),
$this
->
getRemovedVersion
(
$
constant
),
$this
->
getReplacement
(
$
constant
),
$this
->
getDocsUrl
(
$
constant
),
$this
->
getOldUsage
(
$
removed
),
$this
->
getRemovedVersion
(
$
removed
),
$this
->
getReplacement
(
$
removed
),
$this
->
getDocsUrl
(
$
removed
),
]
);
}
...
...
@@ -283,7 +283,7 @@ abstract class AbstractGenericUsage implements PhpCsSniff
/**
* Allow user to lookup the official docs related to this deprecation / breaking change.
*
* @param array $config
The converted structure for a single constant.
* @param array $config
*
* @return string
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment