Skip to content

Commit

Permalink
Remove closing PHP tags (#25)
Browse files Browse the repository at this point in the history
The PHP manual explicitly recommends skipping closing PHP tags to avoid
whitespace errors. Some files indeed had trailing newlines after the the
closing tag causing premature output when using the library in a web
context.
  • Loading branch information
splitbrain authored and gburtini committed Nov 30, 2017
1 parent 0aec3e3 commit 25db579
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/gburtini/Distributions/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
namespace gburtini\Distributions;
require_once dirname(__FILE__) . "/../../../ugly/Bootstrap.php";
class Bootstrap extends \GBPDP_Bootstrap {}
?>
1 change: 0 additions & 1 deletion src/gburtini/Distributions/Dirichlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
namespace gburtini\Distributions;
require_once dirname(__FILE__) . "/../../../ugly/Dirichlet.php";
class Dirichlet extends GBPDP_Dirchlet {}
?>
1 change: 0 additions & 1 deletion src/gburtini/Distributions/Distribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
namespace gburtini\Distributions;
require_once dirname(__FILE__) . "/../../../ugly/Distribution.php";
abstract class Distribution extends \GBPDP_Distribution {}
?>
2 changes: 0 additions & 2 deletions ugly/Accessories/BetaFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,3 @@ public static function continuedFraction($a, $b, $x) {
}

}

?>
1 change: 0 additions & 1 deletion ugly/Accessories/GammaFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ public static function lanczosApproximation($x) {
}
}
}
?>
1 change: 0 additions & 1 deletion ugly/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ public static function resampleWithReplacement($data, $n) {
return $newData;
}
}
?>
2 changes: 0 additions & 2 deletions ugly/Dirichlet.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@ public static function draw($alpha, $k=null) {
);
}
}

?>
1 change: 0 additions & 1 deletion ugly/Distribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ protected static function renderParameters($list) {
return trim(implode(", ", $ret), ", ");
}
}
?>
2 changes: 0 additions & 2 deletions ugly/Gamma.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,3 @@ public static function validateParameters($a, $b) {
}
}
}

?>
1 change: 0 additions & 1 deletion ugly/Normal.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,3 @@ protected static function erf($x) {
}
}
}
?>
2 changes: 0 additions & 2 deletions ugly/T.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,3 @@ public function icdf($p) {
return $sign * $t;
}
}

?>

0 comments on commit 25db579

Please sign in to comment.