@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/GameIndividual.php" ; |
|
6 | -require_once __DIR__."/../Model/Game/Game.php" ; |
|
7 | -require_once __DIR__."/../Model/Individual/Individual.php" ; |
|
8 | -require_once __DIR__."/../Model/Individual/IndividualRole.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GameIndividual.php"; |
|
6 | +require_once __DIR__."/../Model/Game/Game.php"; |
|
7 | +require_once __DIR__."/../Model/Individual/Individual.php"; |
|
8 | +require_once __DIR__."/../Model/Individual/IndividualRole.php"; |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * DAO for game individuals |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/SoundHardware.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/SoundHardware.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Sound Hardware |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/ProgrammingLanguage.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/ProgrammingLanguage.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for programming languages |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/Enhancement.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Enhancement.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for ports |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/Engine.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Engine.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for game engines |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../../lib/functions.php" ; |
|
6 | -require_once __DIR__."/../Model/News/NewsSubmission.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../../lib/functions.php"; |
|
6 | +require_once __DIR__."/../Model/News/NewsSubmission.php"; |
|
7 | 7 | |
8 | 8 | use AL\Common\Model\NewsSubmission; |
9 | 9 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | private function getSubmissionQuery($user_id = null, $news_id = null) { |
22 | - $query = "SELECT |
|
22 | + $query = "SELECT |
|
23 | 23 | news_submission.news_submission_id, |
24 | 24 | news_submission.news_headline, |
25 | 25 | news_submission.news_text, |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | //$text = InsertALCode($text); |
234 | 234 | //$text = trim($text); |
235 | 235 | //$text = RemoveSmillies($text); |
236 | - $breaks = array("<br />","<br>","<br/>"); |
|
236 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
237 | 237 | $text = str_ireplace($breaks, "\r\n", $text); |
238 | 238 | |
239 | 239 | $news[] = new \AL\Common\Model\NewsSubmission\NewsSubmission( |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Review/GameReview.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Review/GameReview.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Game Review |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Link/LinkCategory.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Link/LinkCategory.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Link Categories |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/Port.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Port.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for ports |