Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 2 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
37 | public function play() |
||
38 | { |
||
39 | // ヘッダ情報のセット |
||
40 | $header = $this->getDefaultHeader(); |
||
41 | $header = $this->replaceHeader( $header, 'robots', 'NOINDEX,NOFOLLOW' ); |
||
42 | $header = $this->replaceHeader( $header, 'title', 'エラーが発生しました' ); |
||
|
|||
43 | |||
44 | // テンプレートエンジン関連の処理 |
||
45 | $assign_value = [ 'header' => $header ]; |
||
46 | $this->risolutoView( $assign_value ); |
||
47 | } |
||
48 | } |
This check looks for type mismatches where the missing type is
false
. This is usually indicative of an error condtion.Consider the follow example
This function either returns a new
DateTime
object or false, if there was an error. This is a typical pattern in PHP programming to show that an error has occurred without raising an exception. The calling code should check for this returnedfalse
before passing on the value to another function or method that may not be able to handle afalse
.