Failed Conditions
Branch refactor/kernels (cc9370)
by Atanas
02:23
created

src/view.php (2 issues)

Labels
Severity
1
<?php
2
/**
3
 * @package   WPEmerge
4
 * @author    Atanas Angelov <[email protected]>
5
 * @copyright 2018 Atanas Angelov
6
 * @license   https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7
 * @link      https://wpemerge.com/
8
 */
9
10
if ( ! defined( 'ABSPATH' ) ) {
11
	exit;
12
}
13
14
/**
15
 * View used to override the loaded view file by WordPress when a route is handled
16
 */
17
$response = \WPEmerge\Facades\Application::resolve( WPEMERGE_RESPONSE_KEY );
0 ignored issues
show
The method resolve() does not exist on WPEmerge\Facades\Application. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
$response = \WPEmerge\Facades\Application::/** @scrutinizer ignore-call */ resolve( WPEMERGE_RESPONSE_KEY );
Loading history...
18
if ( $response !== null ) {
19
	\WPEmerge\Facades\Application::respond( $response );
0 ignored issues
show
The method respond() does not exist on WPEmerge\Facades\Application. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
	\WPEmerge\Facades\Application::/** @scrutinizer ignore-call */ 
20
                                respond( $response );
Loading history...
20
}
21