Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 668df66

Browse files
committed
Remove unnecessary lines
1 parent 26934e0 commit 668df66

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

‎Controller/Blog.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,4 @@ protected function isLogged()
129129
{
130130
return !empty($_SESSION['is_logged']);
131131
}
132-
133132
}

‎Engine/Db.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@
1010

1111
class Db extends \PDO
1212
{
13-
1413
public function __construct()
1514
{
1615
$aDriverOptions[\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES UTF8';
1716
parent::__construct('mysql:host=' . Config::DB_HOST . ';dbname=' . Config::DB_NAME . ';', Config::DB_USR, Config::DB_PWD, $aDriverOptions);
1817
$this->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
1918
}
20-
2119
}

‎Engine/Router.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ public static function run (array $aParams)
3232
call_user_func(array(new $sDefCtrl, 'notFound'));
3333
}
3434
}
35-
3635
}

‎index.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
// Note, the script requires PHP 5.5 or higher
1010
namespace TestProject;
11+
1112
use TestProject\Engine as E;
1213

1314
if (version_compare(PHP_VERSION, '5.5.0', '<'))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /