Fix indentations

This commit is contained in:
Ben Goldsworthy 2021-01-23 14:41:19 +00:00
parent f650e53d9b
commit 42ba13de1b
14 changed files with 364 additions and 368 deletions

View file

@ -6,7 +6,7 @@
* @since Omphaloskepsis 1.0
*/
/*
/**
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.

View file

@ -1,9 +1,7 @@
<?php
/**
* Template Name: Experience by Companies
* /
/**
*
* The template for displaying all items, indexed by organisation.
*
* @package Omphaloskepsis

View file

@ -1,9 +1,7 @@
<?php
/**
* Template Name: Experience Timeline
* /
/**
*
* The template for displaying all roles in a timeline.
*
* @package Omphaloskepsis
@ -13,7 +11,7 @@
get_header(); ?>
<?php
/**
/**
* Calculates wether a role is within the max. and min. dates
* for the timeline.
*
@ -114,7 +112,7 @@ function within_dates( $role_start_date, $role_end_date ) {
)
);
$role_title = htmlspecialchars_decode( strip_tags( get_the_title() ) );
$role_title = htmlspecialchars_decode( wp_strip_all_tags( get_the_title() ) );
$start = get_the_date();
$end = ( ! $end_date || ( $end_date && $end_date > gmdate( 'Y-m-d' ) ) ) ? gmdate( 'Y-m-d' ) : $end_date;
?>

View file

@ -1,5 +1,5 @@
<?php
/**
/**
* The template for displaying pages.
*
* @package Omphaloskepsis

View file

@ -1,5 +1,5 @@
<?php
/**
/**
* The template for the sidebar.
*
* @package Omphaloskepsis

View file

@ -1,5 +1,5 @@
<?php
/**
/**
* The template for displaying all single Pages.
*
* @package Omphaloskepsis

View file

@ -133,7 +133,7 @@
<section id="related" class="row">
<div id="parents" class="col-6 col-m-12">
<?php
if ( get_queried_object()->parent != 0 ) {
if ( get_queried_object()->parent !== 0 ) {
// phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
$parents = apply_filters(
'taxonomy-images-get-terms',
@ -181,7 +181,7 @@
// phpcs:enable
if ( count( $children ) > 0 ) :
?>
<h2 class="subheading">Child<?php echo ( count( $children ) != 1 ) ? 'ren' : ''; ?></h2>
<h2 class="subheading">Child<?php echo ( count( $children ) !== 1 ) ? 'ren' : ''; ?></h2>
<ul class="index">
<?php
foreach ( (array) $children as $child ) :