Skip to content

Commit

Permalink
Merge pull request #8 from bachtiarpanjaitan/dev
Browse files Browse the repository at this point in the history
 Fix Doc and Response 2
  • Loading branch information
bachtiarpanjaitan authored Jul 11, 2023
2 parents 94ebcd7 + 0d9a3b0 commit 0eeb12f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions http/src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ public static function ok($text,$data = [],$append = null){
return self::response200($text,$data,$append);
}

public static function badRequest($text,$dir = null){
public static function badRequest($text,$dir = ''){
return self::response400($text,$dir);
}

public static function movedPermanently($text,$dir = null){
public static function movedPermanently($text,$dir = ''){
return self::response301($text,$dir);
}

public static function unauthorized(){
return self::response401();
}

public static function notFound($text,$dir = null){
public static function notFound($text,$dir = ''){
return self::response404($text,$dir);
}

public static function notAllowed($text,$dir = null){
public static function notAllowed($text,$dir = ''){
return self::response405($text,$dir);
}

Expand Down

0 comments on commit 0eeb12f

Please sign in to comment.