Add strict types

This commit is contained in:
Miguel 2024-07-08 15:47:14 +07:00
parent 8fb1e7a6fa
commit 4bf4fb9af2
226 changed files with 227 additions and 1 deletions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Atrium functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: 404

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: archive

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: Comments

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: footer-minimal

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: footer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: header

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: Hidden No Results Content

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: home

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: index

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: page-collection

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: page-exhibitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: page

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: search

1
balasana/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Balasana */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors: Balasana

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<footer id="colophon" class="site-footer responsive-max-width">
<?php
if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<header id="masthead" class="site-header responsive-max-width">
<?php
$template = new A8C\FSE\WP_Template();

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<header id="masthead" class="site-header responsive-max-width">
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
<?php get_template_part( 'template-parts/header/site', 'navigation' ); ?>

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php if ( has_nav_menu( 'menu-1' ) ) : ?>
<nav id="site-navigation" class="main-navigation" aria-label="<?php esc_attr_e( 'Main Navigation', 'balasana' ); ?>">
<input type="checkbox" role="button" aria-haspopup="true" id="toggle" class="hide-visually">

1
barnsbury/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Barnsbury */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors: Barnsbury

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Displays header site branding

1
brompton/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Brompton */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors: Brompton

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content. ?>
<footer class="fse-template-part fse-footer entry-content">
<?php

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Calm (Twenty Nineteen) functions and definitions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Change the label of the Site Title option.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Jetpack Compatibility File.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* WPcom Compatibility File.

1
coutoire/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Coutoire */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<header id="masthead" class="site-header alignfull">
<?php get_template_part( 'template-parts/header/site', 'branding' ); ?>
<?php get_template_part( 'template-parts/header/site', 'navigation' ); ?>

1
dalston/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Dalston */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php if ( class_exists( 'A8C\FSE\WP_Template' ) ) : // If the FSE plugin is active, use the Header template for content. ?>
<footer class="fse-template-part fse-footer entry-content">
<?php

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<header id="masthead" class="site-header site-branding entry-content">
<?php
$template = new A8C\FSE\WP_Template();

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
$has_primary_nav = has_nav_menu( 'menu-1' );
$header_classes = 'site-header';

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Displays header site branding

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Elegant Business functions and definitions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Custom functions that act independently of the theme templates.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Custom functions that act independently of the theme templates.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Jetpack Compatibility File.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* WordPress.com-specific functions and definitions.

1
exford/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Exford */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Friendly Business functions and definitions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Friendly Business: Customizer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Jetpack Compatibility File.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,2 +1,3 @@
<?php declare( strict_types = 1 ); ?>
<?php
require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* WordPress.com-specific functions and definitions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Displays header site branding

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* hola functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: 404

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: Comments

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: footer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: header-large

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: header-minimal

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: Hidden No Results Content

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: post-meta

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: single

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Inversum functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: 404

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: Comments

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: footer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: header

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Title: single

1
leven/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Leven */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors: Varia

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Displays header site branding

1
mayland/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Mayland */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

1
maywood/functions.php Executable file → Normal file
View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Child Theme Functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/* Custom Colors: Maywood */

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/*
* Custom Editor Colors

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?
/**
* Adds support for wp.com-specific theme functions.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* The template for displaying the footer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Modern Business functions and definitions

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* The header for our theme

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Modern Business: Customizer

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Template data inserter file.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
/**
* Jetpack Compatibility File.

View file

@ -1,3 +1,4 @@
<?php declare( strict_types = 1 ); ?>
<?php
// Our filter callback function

Some files were not shown because too many files have changed in this diff Show more