|
@@ -78,23 +78,6 @@ function foo() {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * {@inheritdoc}
|
|
|
- */
|
|
|
- public function getConfigurationDefinition()
|
|
|
- {
|
|
|
- return new FixerConfigurationResolver([
|
|
|
- (new FixerOptionBuilder('only_booleans', 'whether to limit operators to only boolean ones'))
|
|
|
- ->setAllowedTypes(['bool'])
|
|
|
- ->setDefault(false)
|
|
|
- ->getOption(),
|
|
|
- (new FixerOptionBuilder('position', 'whether to place operators at the beginning or at the end of the line'))
|
|
|
- ->setAllowedValues(['beginning', 'end'])
|
|
|
- ->setDefault($this->position)
|
|
|
- ->getOption(),
|
|
|
- ]);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* {@inheritdoc}
|
|
|
*/
|
|
@@ -121,6 +104,23 @@ function foo() {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * {@inheritdoc}
|
|
|
+ */
|
|
|
+ protected function createConfigurationDefinition()
|
|
|
+ {
|
|
|
+ return new FixerConfigurationResolver([
|
|
|
+ (new FixerOptionBuilder('only_booleans', 'whether to limit operators to only boolean ones'))
|
|
|
+ ->setAllowedTypes(['bool'])
|
|
|
+ ->setDefault(false)
|
|
|
+ ->getOption(),
|
|
|
+ (new FixerOptionBuilder('position', 'whether to place operators at the beginning or at the end of the line'))
|
|
|
+ ->setAllowedValues(['beginning', 'end'])
|
|
|
+ ->setDefault($this->position)
|
|
|
+ ->getOption(),
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* {@inheritdoc}
|
|
|
*/
|