@@ -748,7 +748,7 @@ protected function _saveNew()
748
748
}
749
749
}
750
750
751
- $ issue = \Model \Issue::create ($ data , !! $ f3 ->get ("POST.notify " ));
751
+ $ issue = \Model \Issue::create ($ data , ( bool ) $ f3 ->get ("POST.notify " ));
752
752
if ($ originalAuthor ) {
753
753
$ issue ->author_id = $ originalAuthor ;
754
754
$ issue ->save (false );
@@ -829,7 +829,7 @@ public function single($f3, $params)
829
829
830
830
$ watching = new \Model \Issue \Watcher ();
831
831
$ watching ->load (["issue_id = ? AND user_id = ? " , $ issue ->id , $ this ->_userId ]);
832
- $ f3 ->set ("watching " , !! $ watching ->id );
832
+ $ f3 ->set ("watching " , ( bool ) $ watching ->id );
833
833
834
834
$ f3 ->set ("issue " , $ issue );
835
835
$ f3 ->set ("ancestors " , $ issue ->getAncestors ());
@@ -1135,7 +1135,7 @@ public function comment_save($f3)
1135
1135
$ issue ->close ();
1136
1136
}
1137
1137
1138
- $ comment = \Model \Issue \Comment::create (["issue_id " => $ post ["issue_id " ], "user_id " => $ this ->_userId , "text " => trim ($ post ["text " ])], !! $ f3 ->get ("POST.notify " ));
1138
+ $ comment = \Model \Issue \Comment::create (["issue_id " => $ post ["issue_id " ], "user_id " => $ this ->_userId , "text " => trim ($ post ["text " ])], ( bool ) $ f3 ->get ("POST.notify " ));
1139
1139
1140
1140
if ($ f3 ->get ("AJAX " )) {
1141
1141
$ this ->_printJson ([
@@ -1209,7 +1209,7 @@ public function file_undelete($f3)
1209
1209
* @param string $q User query string
1210
1210
* @return array [string, keyword, ...]
1211
1211
*/
1212
- protected function _buildSearchWhere ($ q )
1212
+ protected function _buildSearchWhere ($ q ): array
1213
1213
{
1214
1214
if (!$ q ) {
1215
1215
return ["deleted_date IS NULL " ];
@@ -1373,11 +1373,11 @@ function ($file) use ($f3, $orig_name, $user_id, $issue) {
1373
1373
$ comment ->created_date = $ this ->now ();
1374
1374
$ comment ->file_id = $ f3 ->get ('file_id ' );
1375
1375
$ comment ->save ();
1376
- if (!! $ f3 ->get ("POST.notify " )) {
1376
+ if (( bool ) $ f3 ->get ("POST.notify " )) {
1377
1377
$ notification = \Helper \Notification::instance ();
1378
1378
$ notification ->issue_comment ($ issue ->id , $ comment ->id );
1379
1379
}
1380
- } elseif ($ f3 ->get ('file_id ' ) && !! $ f3 ->get ("POST.notify " )) {
1380
+ } elseif ($ f3 ->get ('file_id ' ) && ( bool ) $ f3 ->get ("POST.notify " )) {
1381
1381
$ notification = \Helper \Notification::instance ();
1382
1382
$ notification ->issue_file ($ issue ->id , $ f3 ->get ("file_id " ));
1383
1383
}
0 commit comments