Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Rewrite plugin #83

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function register_assets_handler() {
*
* @return Assets_Handler
*/
public function get_assets_handler() : Assets_Handler {
public function get_assets_handler() {
return $this->assets_handler;
}
/**
Expand All @@ -162,7 +162,7 @@ public function get_assets_handler() : Assets_Handler {
* @param array $links Array of plugin action links.
* @return array Modified array of plugin action links.
*/
public function plugin_settings_link( $links ) {
public function plugin_settings_link( array $links ) : array {
$settings_page_link = '<a href="' . admin_url( 'admin.php?page=theme-sniffer' ) . '">' . esc_attr__( 'Theme Sniffer Page', 'theme-sniffer' ) . '</a>';
array_unshift( $links, $settings_page_link );

Expand All @@ -178,7 +178,7 @@ public function plugin_settings_link( $links ) {
*
* @return array List of extra headers.
*/
public static function add_headers( $extra_headers ) {
public static function add_headers( array $extra_headers ) : array {
$extra_headers[] = 'License';
$extra_headers[] = 'License URI';
$extra_headers[] = 'Template Version';
Expand Down Expand Up @@ -240,7 +240,7 @@ private function instantiate_service( $class ) {
*
* @return array<string> Array of fully qualified class names.
*/
private function get_service_classes() {
private function get_service_classes() : array {
return [
i18n\Internationalization::class,
Admin_Menus\Sniff_Page::class,
Expand Down