diff --git a/typo3/sysext/dashboard/Classes/Controller/DashboardController.php b/typo3/sysext/dashboard/Classes/Controller/DashboardController.php index b7bbc131e5f744031c6ada0abffffbf38314d6a3..0ab83cad876b736569b628f67cba29c3a4486d51 100644 --- a/typo3/sysext/dashboard/Classes/Controller/DashboardController.php +++ b/typo3/sysext/dashboard/Classes/Controller/DashboardController.php @@ -431,7 +431,7 @@ class DashboardController extends AbstractController } /** - * Add the RequireJS modules some widgets need + * Add the RequireJS modules needed by some widgets * * @param RequireJsModuleInterface $widgetInstance */ diff --git a/typo3/sysext/dashboard/Classes/Dashboard.php b/typo3/sysext/dashboard/Classes/Dashboard.php index be57b5f8e62228ba479dda4726fb4604b3b2188a..e9ea58199151fa48a2e750930f4bd0cc4bf6a68f 100644 --- a/typo3/sysext/dashboard/Classes/Dashboard.php +++ b/typo3/sysext/dashboard/Classes/Dashboard.php @@ -99,7 +99,7 @@ class Dashboard /** * This will return a list of all widgets of the current dashboard object. It will only include available - * widgets and will add the initialised object of the widget itself + * widgets and will add the initialized object of the widget itself */ public function initializeWidgets(): void { diff --git a/typo3/sysext/dashboard/Classes/DependencyInjection/DashboardWidgetPass.php b/typo3/sysext/dashboard/Classes/DependencyInjection/DashboardWidgetPass.php index 4a3a63cd8d383bfcb3f302a816056650ca6db217..47f0b475d7dbb4627d8f9776bfbcc882c9896447 100644 --- a/typo3/sysext/dashboard/Classes/DependencyInjection/DashboardWidgetPass.php +++ b/typo3/sysext/dashboard/Classes/DependencyInjection/DashboardWidgetPass.php @@ -51,7 +51,7 @@ final class DashboardWidgetPass implements CompilerPassInterface foreach ($container->findTaggedServiceIds($this->tagName) as $serviceName => $tags) { $definition = $container->findDefinition($serviceName); $definition->setPublic(true); - // Widgets are handles like prototypes right now (will require state) + // Widgets are handled like prototypes right now (will require state) // @todo: Widgets should preferably be services, but that will require WidgetInterface // to change $definition->setShared(false); diff --git a/typo3/sysext/dashboard/Classes/Exception/NoDashboardAvailableException.php b/typo3/sysext/dashboard/Classes/Exception/NoDashboardAvailableException.php index 4ea3312fdc514200f3dadc57b418242b82532be4..267769c35ab8a654b491ef139eb228dc43088762 100644 --- a/typo3/sysext/dashboard/Classes/Exception/NoDashboardAvailableException.php +++ b/typo3/sysext/dashboard/Classes/Exception/NoDashboardAvailableException.php @@ -19,7 +19,7 @@ namespace TYPO3\CMS\Dashboard\Exception; use TYPO3\CMS\Core\Exception; /** - * Exception thrown if no dashboard is available for the current user + * Exception is thrown if no dashboard is available for the current user */ class NoDashboardAvailableException extends Exception { diff --git a/typo3/sysext/dashboard/Classes/Widgets/AbstractCtaButtonWidget.php b/typo3/sysext/dashboard/Classes/Widgets/AbstractCtaButtonWidget.php index 1766e27b7bade905276d3c262d3c062649f3cac7..e622e3ba7746da8f677de0355a24b002e2681668 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/AbstractCtaButtonWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/AbstractCtaButtonWidget.php @@ -17,7 +17,7 @@ namespace TYPO3\CMS\Dashboard\Widgets; /** * The AbstractCtaButtonWidget class is the basic widget class for simple CTA widgets. - * Is it possible to extends this class for own widgets. + * It is possible to extend this class for custom widgets. * Simply overwrite $this->link and $this->label to make use of this widget type. */ abstract class AbstractCtaButtonWidget extends AbstractWidget diff --git a/typo3/sysext/dashboard/Classes/Widgets/AbstractListWidget.php b/typo3/sysext/dashboard/Classes/Widgets/AbstractListWidget.php index 0cdb6319c3562e1c338b7df8595e2f58531298c3..bbe9c66242f905434290908890704c7aba4f988d 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/AbstractListWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/AbstractListWidget.php @@ -17,7 +17,7 @@ namespace TYPO3\CMS\Dashboard\Widgets; /** * The AbstractListWidget class is the basic widget class for structured content. - * Is it possible to extends this class for own widgets. + * It is possible to extend this class for custom widgets. * In your class you have to set $this->items with the data to display. */ abstract class AbstractListWidget extends AbstractWidget diff --git a/typo3/sysext/dashboard/Classes/Widgets/AbstractRssWidget.php b/typo3/sysext/dashboard/Classes/Widgets/AbstractRssWidget.php index c3bada11687647957bcdf4f72861c437fbdae542..f0430c9e52d2974366b89ab1b938c2ddd15c1a08 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/AbstractRssWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/AbstractRssWidget.php @@ -23,7 +23,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; /** * The AbstractRssWidget class is the basic widget class to display items from a RSS feed. - * Is it possible to extends this class for own widgets. + * It is possible to extend this class for custom widgets. * In your class you have to set $this->rssFile with the URL to the feed. */ abstract class AbstractRssWidget extends AbstractListWidget diff --git a/typo3/sysext/dashboard/Classes/Widgets/AbstractWidget.php b/typo3/sysext/dashboard/Classes/Widgets/AbstractWidget.php index d97e98ad50d8854aee6d329a1a460769c3729564..f19a2d88971ccca23ef9ce01d92a54ba4165ddfe 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/AbstractWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/AbstractWidget.php @@ -22,8 +22,8 @@ use TYPO3\CMS\Fluid\View\StandaloneView; use TYPO3Fluid\Fluid\View\ViewInterface; /** - * The AbstractWidget class is the basic widget class for all widgets - * It is possible to extends this class for own widgets, but EXT:dashboard provides + * The AbstractWidget class is the basic widget class for all widgets. + * It is possible to extend this class for custom widgets, but EXT:dashboard provides * some more specific types of widgets to extend from. For more details, please check: * @see AbstractCtaButtonWidget * @see AbstractListWidget diff --git a/typo3/sysext/dashboard/Classes/Widgets/DocumentationGettingStartedWidget.php b/typo3/sysext/dashboard/Classes/Widgets/DocumentationGettingStartedWidget.php index f3f438b889c2c35bd012ce77037171a334ea6982..f90d794c87bb9e211dcbc23c4dfef49474662c1c 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/DocumentationGettingStartedWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/DocumentationGettingStartedWidget.php @@ -17,7 +17,7 @@ namespace TYPO3\CMS\Dashboard\Widgets; /** * This widget will show a link to the documentation of TYPO3 to make it easier for people - * to find the right documentation + * to find the right documentation. */ class DocumentationGettingStartedWidget extends AbstractCtaButtonWidget { diff --git a/typo3/sysext/dashboard/Classes/Widgets/DocumentationTSconfigReferenceWidget.php b/typo3/sysext/dashboard/Classes/Widgets/DocumentationTSconfigReferenceWidget.php index 5b1018d477e4d57ebc8e5cd02654456b7e626a45..89bba82a126282dd166550e5cac770753db6bf9d 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/DocumentationTSconfigReferenceWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/DocumentationTSconfigReferenceWidget.php @@ -17,7 +17,7 @@ namespace TYPO3\CMS\Dashboard\Widgets; /** * This widget will show a link to the documentation of TYPO3 to make it easier for people - * to find the right documentation + * to find the right documentation. */ class DocumentationTSconfigReferenceWidget extends AbstractCtaButtonWidget { diff --git a/typo3/sysext/dashboard/Classes/Widgets/DocumentationTypoScriptReference.php b/typo3/sysext/dashboard/Classes/Widgets/DocumentationTypoScriptReference.php index 9e272d3c430e470cb96cfb5e523e0e1e387a9cf4..c3c20343945f2663e73fe9128f01eb1d5ca26688 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/DocumentationTypoScriptReference.php +++ b/typo3/sysext/dashboard/Classes/Widgets/DocumentationTypoScriptReference.php @@ -17,7 +17,7 @@ namespace TYPO3\CMS\Dashboard\Widgets; /** * This widget will show a link to the documentation of TYPO3 to make it easier for people - * to find the right documentation + * to find the right documentation. */ class DocumentationTypoScriptReference extends AbstractCtaButtonWidget { diff --git a/typo3/sysext/dashboard/Classes/Widgets/Interfaces/AdditionalJavaScriptInterface.php b/typo3/sysext/dashboard/Classes/Widgets/Interfaces/AdditionalJavaScriptInterface.php index a7ba56997da48cf7dd9b7f31e48cfddc2794d217..194b6ee801953d658365a08fcc5fe6e19286c7fd 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/Interfaces/AdditionalJavaScriptInterface.php +++ b/typo3/sysext/dashboard/Classes/Widgets/Interfaces/AdditionalJavaScriptInterface.php @@ -5,7 +5,7 @@ namespace TYPO3\CMS\Dashboard\Widgets\Interfaces; /** * Interface AdditionalJavaScriptInterface - * In case a widget should provide additional JavaScript files, the widget must be implemented. + * In case a widget should provide additional JavaScript files, the widget must implement this interface. */ interface AdditionalJavaScriptInterface { diff --git a/typo3/sysext/dashboard/Classes/Widgets/Interfaces/WidgetInterface.php b/typo3/sysext/dashboard/Classes/Widgets/Interfaces/WidgetInterface.php index 1c0aa89d3fc62370aefd77f0288de82733600e59..7c4baa7e9dd9c722198fab7aa2183ceb8710c64d 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/Interfaces/WidgetInterface.php +++ b/typo3/sysext/dashboard/Classes/Widgets/Interfaces/WidgetInterface.php @@ -42,7 +42,7 @@ interface WidgetInterface public function getWidth(): int; /** - * This method return the content of a widget. The returned markup will be delivered + * This method returns the content of a widget. The returned markup will be delivered * by an AJAX call and will not be escaped. * Be aware of XSS and ensure that the content is well encoded. * @return string diff --git a/typo3/sysext/dashboard/Classes/Widgets/T3GeneralInformation.php b/typo3/sysext/dashboard/Classes/Widgets/T3GeneralInformation.php index 3b6736750387e3f87ce033763ca10d5bdeac350d..7de1798a3820f081b1d72103f16dadea9e0220ab 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/T3GeneralInformation.php +++ b/typo3/sysext/dashboard/Classes/Widgets/T3GeneralInformation.php @@ -18,6 +18,9 @@ namespace TYPO3\CMS\Dashboard\Widgets; use TYPO3\CMS\Core\Information\Typo3Information; use TYPO3\CMS\Core\Information\Typo3Version; +/** + * This widget will show general information regarding TYPO3 + */ class T3GeneralInformation extends AbstractWidget { protected $title = 'LLL:EXT:dashboard/Resources/Private/Language/locallang.xlf:widgets.t3information.title'; diff --git a/typo3/sysext/dashboard/Classes/Widgets/T3NewsWidget.php b/typo3/sysext/dashboard/Classes/Widgets/T3NewsWidget.php index 34afb0cee8e8f3b2a1e86af261a284bb6caa289f..20fc71dc4a1abcb2d8581170b6c281fc33871f9e 100644 --- a/typo3/sysext/dashboard/Classes/Widgets/T3NewsWidget.php +++ b/typo3/sysext/dashboard/Classes/Widgets/T3NewsWidget.php @@ -16,8 +16,8 @@ namespace TYPO3\CMS\Dashboard\Widgets; */ /** - * This class will make it possible for users to show the latest news from the TYPO3 news RSS feed right on the - * dashboard. + * This widget will show the latest news from the TYPO3 news RSS feed right + * on the dashboard. */ class T3NewsWidget extends AbstractRssWidget { diff --git a/typo3/sysext/dashboard/Configuration/Backend/AjaxRoutes.php b/typo3/sysext/dashboard/Configuration/Backend/AjaxRoutes.php index 2a6e1a110d76528f7b74ef98666991613c73d964..c5c9221f59d77dad7c9a21fa40b0fc5a77ed64aa 100644 --- a/typo3/sysext/dashboard/Configuration/Backend/AjaxRoutes.php +++ b/typo3/sysext/dashboard/Configuration/Backend/AjaxRoutes.php @@ -1,6 +1,6 @@ <?php return [ - // Get the content of a widgets + // Get the content of a widget 'ext-dashboard-get-widget-content' => [ 'path' => '/ext/dashboard/widget/content', 'target' => TYPO3\CMS\Dashboard\Controller\WidgetAjaxController::class . '::getContent'