Completed
Push — master ( 9dab12...67df75 )
by Jacob
07:11
created
controller/blog/DefaultListController.class.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
 	final private function get_list_posts()
56 56
 	{
57 57
 		$post_array = array();
58
-		foreach($this->get_list_results() as $post)
58
+		foreach ($this->get_list_results() as $post)
59 59
 		{
60 60
 			$post_array[] = $this->expand_post($post, 'full');
61 61
 		}
62
-		if(count($post_array) < 1 && URLDecode::getPiece(1) !== 'search')
62
+		if (count($post_array) < 1 && URLDecode::getPiece(1) !== 'search')
63 63
 			$this->eject();
64 64
 		return $post_array;
65 65
 	}
Please login to merge, or discard this patch.
controller/home/ContactController.class.inc.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
 
34 34
 	private function process_form()
35 35
 	{
36
-		if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
36
+		if (!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
37 37
 			return (object) array('display' => 'normal');
38 38
 		
39 39
 		Loader::load('utility', 'Validate');
40 40
 		$error_result = array();
41
-		if(!Validate::checkRequest('post', 'name', 'string'))
41
+		if (!Validate::checkRequest('post', 'name', 'string'))
42 42
 			$error_result['name'] = 'please enter your name';
43
-		if(!Validate::checkRequest('post', 'email', 'string'))
43
+		if (!Validate::checkRequest('post', 'email', 'string'))
44 44
 			$error_result['email'] = 'please enter a valid email';
45
-		if(!Validate::checkRequest('post', 'message', 'string'))
45
+		if (!Validate::checkRequest('post', 'message', 'string'))
46 46
 			$error_result['message'] = 'please write a message';
47 47
 		
48 48
 		$values = (object) array(
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			'email' => Request::getPost('email'),
51 51
 			'message' => Request::getPost('message'));
52 52
 		
53
-		if(count($error_result) > 0)
53
+		if (count($error_result) > 0)
54 54
 		{
55 55
 			return (object) array(
56 56
 				'display' => 'error',
Please login to merge, or discard this patch.
router/map.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
 	)
21 21
 );
22 22
 
23
-Router::route($redirect,$direct);
23
+Router::route($redirect, $direct);
24 24
 
25 25
 ?>
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
tests/unit/domain/blog/MysqlPostRepositoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function __construct()
14 14
     {
15 15
         $extendedPdo = $this->newExtendedPdo();
16
-        $this->connections = new ConnectionLocator(function () use ($extendedPdo) {
16
+        $this->connections = new ConnectionLocator(function() use ($extendedPdo) {
17 17
             return $extendedPdo;
18 18
         });
19 19
     }
Please login to merge, or discard this patch.
src/Domain/Blog/Post/PostRepositoryInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 interface PostRepository
6 6
 {
7 7
     public function findPostByPath($category, $path);
8
-    public function getActivePosts($limit = null, $offset= 0);
8
+    public function getActivePosts($limit = null, $offset = 0);
9 9
     public function getActivePostsCount();
10 10
     public function getActivePostsByTag($tag, $limit = null, $offset = 0);
11 11
     public function getActivePostsCountByTag($tag);
Please login to merge, or discard this patch.
controller/home/HomeController.class.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     $recentPosts = $postRepository->getActivePosts(3);
49 49
 
50 50
 		$recent_post_array = array();
51
-		foreach($recentPosts as $postResult)
51
+		foreach ($recentPosts as $postResult)
52 52
 		{
53 53
 			$post = new stdclass();
54 54
 			$post->title = $postResult['title'];
Please login to merge, or discard this patch.
utility/Debugger.class.inc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 	private static $UNKNOWN_ERROR_FILE		= 'Unknown File';
10 10
 	private static $UNKNOWN_ERROR_LINE		= 'Unknown Line';
11
-	private static $UNKNOWN_ERROR_CONTEXT	= 'Unknown Context';
11
+	private static $UNKNOWN_ERROR_CONTEXT = 'Unknown Context';
12 12
 
13 13
 	private $profiler;
14 14
 	private $display = true;
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 	public static function instance()
26 26
 	{
27
-		if(!isset(self::$instance))
27
+		if (!isset(self::$instance))
28 28
 			self::$instance = new Debugger();
29 29
 		return self::$instance;
30 30
 	}
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 
53 53
 	public static function internal_error($code, $string, $file = null, $line = null, $context = null)
54 54
 	{
55
-		if($file == null)
55
+		if ($file == null)
56 56
 			$file = self::$UNKNOWN_ERROR_FILE;
57
-		if($line == null)
57
+		if ($line == null)
58 58
 			$line = self::$UNKNOWN_ERROR_LINE;
59
-		if($context == null)
59
+		if ($context == null)
60 60
 			$context = self::$UNKNOWN_ERROR_CONTEXT;
61 61
 		
62 62
 		self::instance()->console->logError(new Exception($string), "{$string}... TYPE: {$code}");
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	{
69 69
 		$error = error_get_last();
70 70
 		
71
-		if(isset($error))
71
+		if (isset($error))
72 72
 			self::internal_error($error['type'], $error['message'], $error['file'], $error['line']);
73 73
 		
74 74
 		self::display();
@@ -90,10 +90,10 @@  discard block
 block discarded – undo
90 90
       }
91 91
       if (!empty($pdo)) {
92 92
         $profiles = $pdo->getProfiler()->getProfiles();
93
-        $profiles = array_filter($profiles, function ($profile) {
93
+        $profiles = array_filter($profiles, function($profile) {
94 94
             return $profile['function'] == 'perform';
95 95
         });
96
-        $profiles = array_map(function ($profile) {
96
+        $profiles = array_map(function($profile) {
97 97
             return array(
98 98
                 'sql' => trim(preg_replace('/\s+/', ' ', $profile['statement'])),
99 99
                 'parameters' => $profile['bind_values'],
Please login to merge, or discard this patch.