File tree Expand file tree Collapse file tree 7 files changed +34
-3
lines changed Expand file tree Collapse file tree 7 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ public static function detect( string $wp_site_url ) : array {
17
17
$ urls_to_include = [];
18
18
$ users = get_users ();
19
19
$ pagination_base = $ wp_rewrite ->pagination_base ;
20
+
21
+ /**
22
+ * @var int $default_posts_per_page
23
+ */
20
24
$ default_posts_per_page = get_option ( 'posts_per_page ' );
21
25
22
26
foreach ( $ users as $ author ) {
@@ -40,6 +44,10 @@ public static function detect( string $wp_site_url ) : array {
40
44
}
41
45
42
46
foreach ( $ authors_urls as $ author => $ total_posts ) {
47
+ /**
48
+ * @var int $total_posts
49
+ */
50
+
43
51
$ total_pages = ceil ( $ total_posts / $ default_posts_per_page );
44
52
45
53
for ( $ page = 1 ; $ page <= $ total_pages ; $ page ++ ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public static function detect() : array {
26
26
foreach ( $ taxonomies as $ taxonomy ) {
27
27
/** @var list<\WP_Term> $terms */
28
28
$ terms = get_terms (
29
- $ taxonomy ->name ,
29
+ [ $ taxonomy ->name ] ,
30
30
[ 'hide_empty ' => true ]
31
31
);
32
32
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public static function detect() : array {
21
21
foreach ( $ taxonomies as $ taxonomy ) {
22
22
/** @var list<\WP_Term> $terms */
23
23
$ terms = get_terms (
24
- $ taxonomy ->name ,
24
+ [ $ taxonomy ->name ] ,
25
25
[ 'hide_empty ' => true ]
26
26
);
27
27
Original file line number Diff line number Diff line change @@ -26,13 +26,20 @@ public static function detect() : array {
26
26
)
27
27
);
28
28
29
+ /**
30
+ * @var string[] $active_plugins
31
+ */
29
32
$ active_plugins = get_option ( 'active_plugins ' );
33
+ /**
34
+ * @var string[] $active_sitewide_plugins
35
+ */
36
+ $ active_sitewide_plugins = get_option ( 'active_sitewide_plugins ' );
30
37
31
38
if ( is_multisite () ) {
32
39
$ active_plugins = array_unique (
33
40
array_merge (
34
41
$ active_plugins ,
35
- array_keys ( get_site_option ( ' active_sitewide_plugins ' ) )
42
+ array_keys ( $ active_sitewide_plugins )
36
43
)
37
44
);
38
45
}
@@ -45,6 +52,10 @@ function ( $active_plugin ) {
45
52
);
46
53
47
54
foreach ( $ iterator as $ filename => $ file_object ) {
55
+ /**
56
+ * @var string $filename
57
+ */
58
+
48
59
$ path_crawlable =
49
60
FilesHelper::filePathLooksCrawlable ( $ filename );
50
61
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ public static function detect( string $theme_type ) : array {
35
35
);
36
36
37
37
foreach ( $ iterator as $ filename => $ file_object ) {
38
+ /**
39
+ * @var string $filename
40
+ */
41
+
38
42
$ path_crawlable =
39
43
FilesHelper::filePathLooksCrawlable ( $ filename );
40
44
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ public static function detect(
36
36
);
37
37
38
38
foreach ( $ iterator as $ filename => $ file_object ) {
39
+ /**
40
+ * @var string $filename
41
+ */
42
+
39
43
$ path_crawlable =
40
44
FilesHelper::filePathLooksCrawlable ( $ filename );
41
45
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ public static function detect() : array {
29
29
);
30
30
31
31
foreach ( $ iterator as $ filename => $ file_object ) {
32
+ /**
33
+ * @var string $filename
34
+ */
35
+
32
36
$ path_crawlable =
33
37
FilesHelper::filePathLooksCrawlable ( $ filename );
34
38
You can’t perform that action at this time.
0 commit comments