1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- --TEST--
- Integration of doctrine_annotation_* fixers.
- --RULESET--
- {
- "doctrine_annotation_braces": true,
- "doctrine_annotation_indentation": true,
- "doctrine_annotation_spaces": true
- }
- --SETTINGS--
- {"checkPriority": false}
- --EXPECT--
- <?php
- /**
- * Foo class.
- *
- * @Foo(
- * "foo"=true,
- * "bar"={"baz" = 1}
- * )
- * @Bar
- */
- class Foo
- {
- /**
- * foo property.
- *
- * @var string[]
- *
- * @Bar("foo", "bar")
- */
- public $foo;
- /**
- * Returns foo.
- *
- * @param bool $bar
- *
- * @Baz\Bar
- */
- public function getFoo($bar)
- {
- }
- }
- --INPUT--
- <?php
- /**
- * Foo class.
- *
- * @Foo
- * (
- * "foo" = true ,
- * "bar" = {"baz"= 1}
- * )
- * @Bar( )
- */
- class Foo
- {
- /**
- * foo property.
- *
- * @var string[]
- *
- * @Bar ( "foo" ,"bar" )
- */
- public $foo;
- /**
- * Returns foo.
- *
- * @param bool $bar
- *
- * @Baz\Bar ( )
- */
- public function getFoo($bar)
- {
- }
- }
|