Showing 1 of 1 files from the diff.

@@ -226,20 +226,28 @@
Loading
226 226
	}
227 227
228 228
	if ( isset( $book_information['pb_primary_subject'] ) ) {
229 +
		$name = Metadata\get_subject_from_thema( $book_information['pb_primary_subject'] );
230 +
		if ( is_null( $name ) || ! $name ) {
231 +
			$name = $book_information['pb_primary_subject'];
232 +
		}
229 233
		$book_schema['about'][] = [
230 234
			'@type' => 'Thing',
231 235
			'identifier' => $book_information['pb_primary_subject'],
232 -
			'name' => Metadata\get_subject_from_thema( $book_information['pb_primary_subject'] ),
236 +
			'name' => $name,
233 237
		];
234 238
	}
235 239
236 240
	if ( isset( $book_information['pb_additional_subjects'] ) ) {
237 241
		$additional_subjects = explode( ', ', $book_information['pb_additional_subjects'] );
238 242
		foreach ( $additional_subjects as $additional_subject ) {
243 +
			$name = Metadata\get_subject_from_thema( $additional_subject );
244 +
			if ( is_null( $name ) || ! $name ) {
245 +
				$name = $additional_subject;
246 +
			}
239 247
			$book_schema['about'][] = [
240 248
				'@type' => 'Thing',
241 249
				'identifier' => $additional_subject,
242 -
				'name' => Metadata\get_subject_from_thema( $additional_subject ),
250 +
				'name' => $name,
243 251
			];
244 252
		}
245 253
	}
Files Complexity Coverage
inc 4,856 67.61%
Project Totals (127 files) 4856 67.61%
4051.3
10=0
TRAVIS_OS_NAME=linux
1
codecov:
2
  notify:
3
    require_ci_to_pass: yes
4

5
coverage:
6
  precision: 2
7
  round: down
8
  range: "70...100"
9

10
  status:
11
    project: yes
12
    patch: yes
13
    changes: no
14

15
  notify:
16
    slack:
17
      default:
18
        url: "secret:/oj/A552M7JoclWHak5KXY5DO66SFEZlJcFZLuoPRqiOZK4mHKAGHa4hiSjgWwXTIVzWP2ACNNZnbX5q/QPPUdjWkwk1LpavnvmA9EsmRZBgjWaPJgcXmNSDg2UHM74kT4Nl17TX8RAJ0c2aABuPycxPuz43y2lw+f3CfTv/rLs="
19
        threshold: 1%
20
parsers:
21
  gcov:
22
    branch_detection:
23
      conditional: yes
24
      loop: yes
25
      method: no
26
      macro: no
27

28
comment:
29
  layout: "header, diff"
30
  behavior: default
31
  require_changes: no
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading