diff --git a/Behavioral/ChainOfResponsibilities/Handler.php b/Behavioral/ChainOfResponsibilities/Handler.php
index 8e6a74d..e6e2f9b 100644
--- a/Behavioral/ChainOfResponsibilities/Handler.php
+++ b/Behavioral/ChainOfResponsibilities/Handler.php
@@ -1,4 +1,6 @@
-enableDate) {
- $str .= ' ['.date('Y-m-d').']';
+ $str .= ' [' . date('Y-m-d') . ']';
}
$this->output[] = $str;
diff --git a/Behavioral/Command/Tests/CommandTest.php b/Behavioral/Command/Tests/CommandTest.php
index 2d0626c..1170f2c 100644
--- a/Behavioral/Command/Tests/CommandTest.php
+++ b/Behavioral/Command/Tests/CommandTest.php
@@ -1,4 +1,6 @@
-execute();
$invoker->run();
- $this->assertSame("Hello World\nHello World [".date('Y-m-d').']', $receiver->getOutput());
+ $this->assertSame("Hello World\nHello World [" . date('Y-m-d') . ']', $receiver->getOutput());
$messageDateCommand->undo();
$invoker->run();
- $this->assertSame("Hello World\nHello World [".date('Y-m-d')."]\nHello World", $receiver->getOutput());
+ $this->assertSame("Hello World\nHello World [" . date('Y-m-d') . "]\nHello World", $receiver->getOutput());
}
}
diff --git a/Behavioral/Command/UndoableCommand.php b/Behavioral/Command/UndoableCommand.php
index 055ddde..95a3d1a 100644
--- a/Behavioral/Command/UndoableCommand.php
+++ b/Behavioral/Command/UndoableCommand.php
@@ -1,4 +1,6 @@
-getTitle().' by '.$this->getAuthor();
+ return $this->getTitle() . ' by ' . $this->getAuthor();
}
}
diff --git a/Behavioral/Iterator/BookList.php b/Behavioral/Iterator/BookList.php
index dd6683e..7726e99 100644
--- a/Behavioral/Iterator/BookList.php
+++ b/Behavioral/Iterator/BookList.php
@@ -1,4 +1,6 @@
-logger->log('We are in '.__METHOD__);
+ $this->logger->log('We are in ' . __METHOD__);
}
}
diff --git a/Behavioral/NullObject/Tests/LoggerTest.php b/Behavioral/NullObject/Tests/LoggerTest.php
index 5967494..0cd1552 100644
--- a/Behavioral/NullObject/Tests/LoggerTest.php
+++ b/Behavioral/NullObject/Tests/LoggerTest.php
@@ -1,4 +1,6 @@
- self::STATE_DRAFT,
diff --git a/More/Repository/InMemoryPersistence.php b/More/Repository/InMemoryPersistence.php
index 33b4adb..fc565ef 100644
--- a/More/Repository/InMemoryPersistence.php
+++ b/More/Repository/InMemoryPersistence.php
@@ -1,4 +1,6 @@
-from[] = $table.' AS '.$alias;
+ $this->from[] = $table . ' AS ' . $alias;
return $this;
}
diff --git a/Structural/FluentInterface/Tests/FluentInterfaceTest.php b/Structural/FluentInterface/Tests/FluentInterfaceTest.php
index fb0010d..59a8fe5 100644
--- a/Structural/FluentInterface/Tests/FluentInterfaceTest.php
+++ b/Structural/FluentInterface/Tests/FluentInterfaceTest.php
@@ -1,4 +1,6 @@
-vendor
-
+