fix the indentation

This commit is contained in:
Kunio Murasawa
2014-07-16 09:39:07 +09:00
parent 9a41f407f0
commit 40101b60ba

View File

@@ -27,7 +27,7 @@ Consider the most basic step:
{% highlight php %}
<?php
function getAllSomethings($db) {
return $db->query('SELECT * FROM table');
return $db->query('SELECT * FROM table');
}
foreach (getAllFoos() as $row) {
@@ -63,16 +63,16 @@ include 'views/foo-list.php';
<?php
class Foo()
{
protected $db;
protected $db;
public function __construct(PDO $db)
{
$this->db = $db;
}
public function __construct(PDO $db)
{
$this->db = $db;
}
public function getAllFoos() {
return $this->db->query('SELECT * FROM table');
}
public function getAllFoos() {
return $this->db->query('SELECT * FROM table');
}
}
{% endhighlight %}