diff --git a/assets/src/js/index.js b/assets/src/js/index.js index cb93d5d9478b60a7f4421f58a68b840a4359c6bf..980a49ed0b2fb70123e4ef3db2fde0868487a925 100644 --- a/assets/src/js/index.js +++ b/assets/src/js/index.js @@ -14,10 +14,9 @@ const slug = 'external-permalinks-redux'; /** * Render panel view. * - * @param {Object} props Component props. + * @param {Object} props Component props. * @param {string} props.postType Post type. - * @returns {JSX.Element|null} - * @constructor + * @return {JSX.Element|null} Sidebar panel. */ const View = ( { postType } ) => { if ( ! postType ) { diff --git a/tests/test-class-external-permalinks-redux-block-editor.php b/tests/test-class-external-permalinks-redux-block-editor.php index 9f3c2ef91ef7cdc5ee78195b4cedb7ff361214be..43fd0819afbc887bbe9548317c028b3327534544 100644 --- a/tests/test-class-external-permalinks-redux-block-editor.php +++ b/tests/test-class-external-permalinks-redux-block-editor.php @@ -137,7 +137,7 @@ class TestClassExternalPermalinksReduxBlockEditor extends WP_UnitTestCase { */ public function test__get_status_codes() { $class = External_Permalinks_Redux_Block_Editor::get_instance(); - $reflection = new \ReflectionClass( $class ); + $reflection = new ReflectionClass( $class ); $method = $reflection->getMethod( '_get_status_codes' ); $method->setAccessible( true );