doctrine_annotation.test 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --TEST--
  2. Integration of doctrine_annotation_* fixers.
  3. --RULESET--
  4. {
  5. "doctrine_annotation_braces": true,
  6. "doctrine_annotation_indentation": true,
  7. "doctrine_annotation_spaces": true
  8. }
  9. --SETTINGS--
  10. {"checkPriority": false}
  11. --EXPECT--
  12. <?php
  13. /**
  14. * Foo class.
  15. *
  16. * @Foo(
  17. * "foo"=true,
  18. * "bar"={"baz" = 1}
  19. * )
  20. * @Bar
  21. */
  22. class Foo
  23. {
  24. /**
  25. * foo property.
  26. *
  27. * @var string[]
  28. *
  29. * @Bar("foo", "bar")
  30. */
  31. public $foo;
  32. /**
  33. * Returns foo.
  34. *
  35. * @param bool $bar
  36. *
  37. * @Baz\Bar
  38. */
  39. public function getFoo($bar)
  40. {
  41. }
  42. }
  43. --INPUT--
  44. <?php
  45. /**
  46. * Foo class.
  47. *
  48. * @Foo
  49. * (
  50. * "foo" = true ,
  51. * "bar" = {"baz"= 1}
  52. * )
  53. * @Bar( )
  54. */
  55. class Foo
  56. {
  57. /**
  58. * foo property.
  59. *
  60. * @var string[]
  61. *
  62. * @Bar ( "foo" ,"bar" )
  63. */
  64. public $foo;
  65. /**
  66. * Returns foo.
  67. *
  68. * @param bool $bar
  69. *
  70. * @Baz\Bar ( )
  71. */
  72. public function getFoo($bar)
  73. {
  74. }
  75. }