13 Commits

Author SHA1 Message Date
Christian Flothmann dcd7d839d9 Merge branch '2.x' into 3.0
* 2.x:
  make StyleCI happy
2020-08-27 19:17:25 +02:00
Christian Flothmann a0b93f481c make StyleCI happy 2020-08-27 11:36:43 +02:00
Christian Flothmann 957717e2f1 clean up @internal annotations 2020-03-28 10:18:10 +01:00
Christian Flothmann 568238e22a Merge branch '2.x'
* 2.x:
  mark normalizer classes as internal
2020-03-28 10:17:44 +01:00
Christian Flothmann 6d524c927c mark normalizer classes as internal 2020-03-28 10:11:31 +01:00
Christian Flothmann d71f1fc376 add type declarations where possible 2020-03-18 19:48:39 +01:00
Christian Flothmann aa38645cd0 remove not needed docblocks 2020-03-06 09:40:57 +01:00
Christian Flothmann 9154e592d9 code style fixes 2020-03-02 17:09:07 +01:00
Christian Flothmann 8f30161057 ignore leading underscores in base normalizer
In #1267, a new normalizer class was introduced that ignores underscores
when converting snake case to camel case. However, the same change was
made to the base class. This means that both classes act in exactly the
same way. Furthermore, this change was a BC break as the behavior of the
base normalizer class was changed without fixing an actual bug.
2016-05-04 22:11:28 +02:00
Lukas Kahwe Smith 612f40fe44 moved special handling of leading underscores in the camel key normalizer to a separate class/service 2015-12-16 22:47:31 +01:00
Lukas Kahwe Smith f39577474f ignore any number of leading underscores when converting from snake case to camel case (ie. leave '_username' unchanged) 2015-12-15 15:49:57 +01:00
Sullivan SENECHAL 372fa1e8ef Fix CS
1) Tests/EventListener/BodyListenerTest.php (phpdoc_scalar, phpdoc_short_description, phpdoc_params)
   2) Tests/EventListener/MimeTypeListenerTest.php (phpdoc_short_description)
   3) Tests/EventListener/ParamFetcherListenerTest.php (phpdoc_short_description)
   4) Tests/EventListener/AccessDeniedListenerTest.php (phpdoc_short_description, phpdoc_separation, unalign_double_arrow)
   5) Tests/EventListener/ViewResponseListenerTest.php (phpdoc_short_description)
   6) Tests/EventListener/FormatListenerTest.php (single_array_no_trailing_comma, phpdoc_short_description, trim_array_spaces, function_call_space)
   7) Tests/Decoder/JsonToFormDecoderTest.php (phpdoc_short_description)
   8) Tests/Fixtures/Controller/AnnotatedUsersController.php (single_line_after_imports, phpdoc_trim, braces)
   9) Tests/Fixtures/Controller/OrdersController.php (braces)
  10) Tests/Fixtures/Controller/MediaController.php (braces)
  11) Tests/Fixtures/Controller/AnnotatedConditionalUsersController.php (single_line_after_imports, phpdoc_trim, braces)
  12) Tests/Fixtures/Controller/ArticleController.php (braces)
  13) Tests/Fixtures/Controller/AnnotatedPrefixedController.php (single_line_after_imports, braces)
  14) Tests/Fixtures/Controller/UserTopicCommentsController.php (braces)
  15) Tests/Fixtures/Controller/ReportController.php (phpdoc_no_package, phpdoc_short_description, no_blank_lines_after_class_opening, phpdoc_trim)
  16) Tests/Fixtures/Controller/UsersController.php (braces)
  17) Tests/Fixtures/Controller/UserTopicsController.php (braces)
  18) Tests/Fixtures/Controller/InformationController.php (braces)
  19) Tests/Fixtures/Controller/ParamFetcherController.php (phpdoc_short_description, header_comment, braces)
  20) Tests/View/ViewTest.php (phpdoc_short_description, multiline_array_trailing_comma, function_declaration)
  21) Tests/View/ViewHandlerTest.php (single_quote, phpdoc_short_description, phpdoc_separation, return, multiline_array_trailing_comma, unalign_double_arrow, function_declaration, braces)
  22) Tests/View/JsonpHandlerTest.php (phpdoc_short_description, unalign_double_arrow)
  23) Tests/Routing/Loader/RestRouteLoaderTest.php (phpdoc_short_description, unalign_equals, method_argument_space, braces)
  24) Tests/Routing/Loader/RestYamlCollectionLoaderTest.php (unalign_equals, unalign_double_arrow)
  25) Tests/Routing/Loader/LoaderTest.php (phpdoc_short_description)
  26) Tests/Routing/Loader/RestXmlCollectionLoaderTest.php (unalign_equals, unalign_double_arrow)
  27) Tests/Request/ParamFetcherTest.php (single_quote, phpdoc_short_description, phpdoc_separation, unalign_equals, multiline_array_trailing_comma, method_argument_space, braces)
  28) Tests/Controller/Annotations/QueryParamTest.php (phpdoc_short_description, braces, eof_ending)
  29) Tests/Controller/Annotations/RequestParamTest.php (phpdoc_short_description)
  30) Tests/DependencyInjection/Compiler/FormatListenerRulesPassTest.php (parenthesis)
  31) Tests/DependencyInjection/Compiler/SerializerConfigurationPassTest.php (phpdoc_short_description, multiline_array_trailing_comma, extra_empty_lines)
  32) Tests/DependencyInjection/Compiler/ConfigurationCheckPassTest.php (phpdoc_short_description)
  33) Tests/DependencyInjection/FOSRestExtensionTest.php (unalign_equals, multiline_array_trailing_comma, unalign_double_arrow)
  34) Tests/Util/ViolationFormatterTest.php (single_quote)
  35) Tests/bootstrap.php (single_line_after_imports)
  36) Tests/FOSRestBundleTest.php (phpdoc_short_description)
  37) Tests/Functional/app/JMSSerializer/bundles.php (multiline_array_trailing_comma, header_comment)
  38) Tests/Functional/app/Serializer/bundles.php (multiline_array_trailing_comma, header_comment)
  39) Tests/Functional/app/RequestBodyParamConverter/bundles.php (header_comment)
  40) Tests/Functional/app/AppKernel.php (header_comment)
  41) Tests/Functional/WebTestCase.php (header_comment)
  42) Tests/Functional/SerializerErrorTest.php (return, header_comment)
  43) Tests/Functional/Bundle/TestBundle/Controller/SerializerErrorController.php (multiline_array_trailing_comma)
  44) EventListener/BodyListener.php (phpdoc_short_description, phpdoc_separation)
  45) EventListener/AccessDeniedListener.php (phpdoc_short_description)
  46) EventListener/MimeTypeListener.php (phpdoc_short_description)
  47) EventListener/FormatListener.php (single_quote, phpdoc_short_description, braces)
  48) EventListener/AllowedMethodsListener.php (phpdoc_short_description, braces)
  49) EventListener/ParamFetcherListener.php (return)
  50) Decoder/JsonToFormDecoder.php (phpdoc_short_description, header_comment)
  51) Decoder/DecoderProviderInterface.php (phpdoc_short_description, header_comment)
  52) Decoder/XmlDecoder.php (empty_return, header_comment)
  53) Decoder/JsonDecoder.php (header_comment)
  54) Decoder/DecoderInterface.php (phpdoc_short_description, header_comment)
  55) View/ViewHandlerInterface.php (phpdoc_short_description)
  56) View/JsonpHandler.php (phpdoc_short_description, unalign_equals)
  57) View/ConfigurableViewHandlerInterface.php (phpdoc_short_description)
  58) View/View.php (phpdoc_short_description, phpdoc_params)
  59) View/ViewHandler.php (phpdoc_short_description, unalign_double_arrow, braces)
  60) Normalizer/CamelKeysNormalizer.php (header_comment)
  61) Normalizer/ArrayNormalizerInterface.php (header_comment)
  62) Normalizer/Exception/NormalizationException.php (header_comment)
  63) Routing/RestRouteCollection.php (unary_operators_spaces, parenthesis, braces)
  64) Routing/Loader/RestYamlCollectionLoader.php (single_quote, unalign_equals, phpdoc_params, braces)
  65) Routing/Loader/Reader/RestActionReader.php (single_quote, operators_spaces, unalign_equals, multiline_array_trailing_comma, parenthesis, braces)
  66) Routing/Loader/Reader/RestControllerReader.php (unalign_equals)
  67) Routing/Loader/RestRouteLoader.php (pre_increment, unalign_equals, list_commas)
  68) Routing/Loader/RestXmlCollectionLoader.php (pre_increment, phpdoc_inline_tag, unalign_equals)
  69) Request/RequestBodyParamConverter.php (phpdoc_inline_tag)
  70) Request/ParamReaderInterface.php (phpdoc_short_description, phpdoc_trim)
  71) Request/ParamFetcherInterface.php (phpdoc_no_empty_return, phpdoc_trim)
  72) Request/AbstractRequestBodyParamConverter.php (phpdoc_params, eof_ending)
  73) Request/ParamFetcher.php (single_quote, phpdoc_short_description, phpdoc_inline_tag, return, unalign_equals, multiline_array_trailing_comma, phpdoc_params, braces)
  74) Request/RequestBodyParamConverter20.php (phpdoc_short_description, phpdoc_inline_tag)
  75) Request/ParamReader.php (phpdoc_short_description, phpdoc_inline_tag, phpdoc_trim)
  76) Controller/Annotations/Link.php (phpdoc_separation)
  77) Controller/Annotations/NoRoute.php (phpdoc_short_description, phpdoc_separation)
  78) Controller/Annotations/Prefix.php (phpdoc_separation)
  79) Controller/Annotations/Post.php (phpdoc_separation)
  80) Controller/Annotations/RouteResource.php (phpdoc_separation)
  81) Controller/Annotations/Patch.php (phpdoc_separation)
  82) Controller/Annotations/Route.php (empty_return, phpdoc_separation)
  83) Controller/Annotations/Delete.php (phpdoc_separation)
  84) Controller/Annotations/Options.php (phpdoc_separation)
  85) Controller/Annotations/RequestParam.php (phpdoc_separation)
  86) Controller/Annotations/Put.php (phpdoc_separation)
  87) Controller/Annotations/QueryParam.php (phpdoc_separation)
  88) Controller/Annotations/Head.php (phpdoc_separation)
  89) Controller/Annotations/View.php (phpdoc_var_without_name, phpdoc_separation)
  90) Controller/Annotations/NamePrefix.php (phpdoc_separation)
  91) Controller/Annotations/Get.php (phpdoc_separation)
  92) Controller/Annotations/Unlink.php (phpdoc_separation)
  93) Controller/ExceptionController.php (phpdoc_to_comment, single_quote, phpdoc_short_description, unalign_equals)
  94) Form/Transformer/EntityToIdObjectTransformer.php (single_quote, phpdoc_short_description, empty_return, phpdoc_separation, no_blank_lines_after_class_opening, phpdoc_params, braces)
  95) Form/Extension/DisableCSRFExtension.php (phpdoc_short_description)
  96) Response/AllowedMethodsLoader/AllowedMethodsLoaderInterface.php (phpdoc_short_description)
  97) Response/AllowedMethodsLoader/AllowedMethodsRouterLoader.php (phpdoc_short_description, unalign_equals, unalign_double_arrow, braces)
  98) DependencyInjection/Compiler/CsrfExtensionPass.php (braces)
  99) DependencyInjection/Compiler/TwigExceptionPass.php (phpdoc_short_description)
 100) DependencyInjection/FOSRestExtension.php (phpdoc_short_description, phpdoc_inline_tag, braces)
 101) DependencyInjection/Configuration.php (trailing_spaces, phpdoc_short_description, return, function_declaration, braces)
 102) Resources/doc/examples/RssHandler.php (single_quote, phpdoc_separation, unalign_double_arrow, header_comment, parenthesis)
 103) Util/ViolationFormatter.php (header_comment, braces)
 104) Util/FormatNegotiatorInterface.php (header_comment)
 105) Util/ViolationFormatterInterface.php (phpdoc_short_description, header_comment)
 106) Util/StopFormatListenerException.php (phpdoc_short_description, header_comment)
 107) Util/FormatNegotiator.php (empty_return, header_comment)
 108) Util/MediaTypeNegotiatorInterface.php (header_comment)
 109) Util/Inflector/DoctrineInflector.php (phpdoc_short_description, header_comment)
 110) Util/Inflector/InflectorInterface.php (phpdoc_short_description, header_comment)
 111) Util/Codes.php (header_comment)
2015-10-12 11:43:40 +02:00
florianv bdbc621849 Added an option to normalize between underscore and camel case in the body listener 2014-04-20 23:42:22 +02:00