Completed
Push — master ( b0071f...70260c )
by Jacob
03:06
created
controller/waterfalls/ContactController.class.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@  discard block
 block discarded – undo
35 35
 
36 36
 	private function process_form()
37 37
 	{
38
-		if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
38
+		if (!Request::hasPost() || Request::getPost('submit') != 'Send Message!')
39 39
 			return (object) array('display' => 'normal');
40 40
 		
41 41
 		Loader::load('utility', 'Validate');
42 42
 		$error_result = array();
43
-		if(!Validate::checkRequest('post', 'name', 'string'))
43
+		if (!Validate::checkRequest('post', 'name', 'string'))
44 44
 			$error_result['name'] = 'please enter your name';
45
-		if(!Validate::checkRequest('post', 'email', 'string'))
45
+		if (!Validate::checkRequest('post', 'email', 'string'))
46 46
 			$error_result['email'] = 'please enter a valid email';
47
-		if(!Validate::checkRequest('post', 'message', 'string'))
47
+		if (!Validate::checkRequest('post', 'message', 'string'))
48 48
 			$error_result['message'] = 'please write a message';
49 49
 		
50 50
 		$values = (object) array(
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 			'email' => Request::getPost('email'),
53 53
 			'message' => Request::getPost('message'));
54 54
 		
55
-		if(count($error_result) > 0)
55
+		if (count($error_result) > 0)
56 56
 		{
57 57
 			return (object) array(
58 58
 				'display' => 'error',
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
       ->addTo($container['config']->admin_email)
66 66
       ->setSubject('Home Page Contact')
67 67
       ->setPlainMessage(
68
-        "Name: {$values->name}\n" .
69
-        "Email: {$values->email}\n" .
68
+        "Name: {$values->name}\n".
69
+        "Email: {$values->email}\n".
70 70
         "Message: {$values->message}"
71 71
       )
72 72
       ->send();		
Please login to merge, or discard this patch.
public/site/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $namespace = 'portfolio';
4
-require_once __DIR__ . '/../../bootstrap.php';
4
+require_once __DIR__.'/../../bootstrap.php';
5 5
 
6 6
 // route
7 7
 Loader::loadInstance('router', 'Router');
Please login to merge, or discard this patch.
public/home/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $namespace = 'portfolio';
4
-require_once __DIR__ . '/../../bootstrap.php';
4
+require_once __DIR__.'/../../bootstrap.php';
5 5
 
6 6
 // route
7 7
 Loader::loadInstance('router', 'Router');
Please login to merge, or discard this patch.
public/blog/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $namespace = 'portfolio';
4
-require_once __DIR__ . '/../../bootstrap.php';
4
+require_once __DIR__.'/../../bootstrap.php';
5 5
 
6 6
 // route
7 7
 Loader::loadInstance('router', 'Router');
Please login to merge, or discard this patch.
public/waterfalls/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $namespace = 'portfolio';
4
-require_once __DIR__ . '/../../bootstrap.php';
4
+require_once __DIR__.'/../../bootstrap.php';
5 5
 
6 6
 // route
7 7
 Loader::loadInstance('router', 'Router');
Please login to merge, or discard this patch.
public/lifestream/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 $namespace = 'portfolio';
4
-require_once __DIR__ . '/../../bootstrap.php';
4
+require_once __DIR__.'/../../bootstrap.php';
5 5
 
6 6
 // route
7 7
 Loader::loadInstance('router', 'Router');
Please login to merge, or discard this patch.
tests/unit/Domain/Blog/Post/MysqlPostRepositoryTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             )"
49 49
         );
50 50
 
51
-        self::$connection = new ConnectionLocator(function () use ($extendedPdo) {
51
+        self::$connection = new ConnectionLocator(function() use ($extendedPdo) {
52 52
             return $extendedPdo;
53 53
         });
54 54
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         $this->assertInternalType('array', $data);
174 174
         $this->assertCount(count($testData), $data);
175 175
 
176
-        usort($testData, function ($rowA, $rowB) {
176
+        usort($testData, function($rowA, $rowB) {
177 177
             return ((new DateTime($rowA['date'])) < (new DateTime($rowB['date'])));
178 178
         });
179 179
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $this->assertNotFalse($data);
219 219
         $this->assertInternalType('array', $data);
220 220
 
221
-        $testData = array_filter($testData, function ($row) {
221
+        $testData = array_filter($testData, function($row) {
222 222
             return ($row['display'] == 1);
223 223
         });
224 224
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $this->assertNotFalse($data);
354 354
         $this->assertStringMatchesFormat('%d', $data);
355 355
 
356
-        $testData = array_filter($testData, function ($row) {
356
+        $testData = array_filter($testData, function($row) {
357 357
             return ($row['display'] == 1);
358 358
         });
359 359
 
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         $this->assertInternalType('array', $data);
417 417
         $this->assertCount(count($testPostData), $data);
418 418
 
419
-        usort($testPostData, function ($rowA, $rowB) {
419
+        usort($testPostData, function($rowA, $rowB) {
420 420
             return ((new DateTime($rowA['date'])) < (new DateTime($rowB['date'])));
421 421
         });
422 422
 
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
         $this->assertNotFalse($data);
476 476
         $this->assertInternalType('array', $data);
477 477
 
478
-        $testPostData = array_filter($testPostData, function ($row) {
478
+        $testPostData = array_filter($testPostData, function($row) {
479 479
             return ($row['display'] == 1);
480 480
         });
481 481
 
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
         $this->assertNotFalse($data);
676 676
         $this->assertStringMatchesFormat('%d', $data);
677 677
 
678
-        $testPostData = array_filter($testPostData, function ($row) {
678
+        $testPostData = array_filter($testPostData, function($row) {
679 679
             return ($row['display'] == 1);
680 680
         });
681 681
 
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
         $this->assertInternalType('array', $data);
731 731
         $this->assertCount(count($testData), $data);
732 732
 
733
-        usort($testData, function ($rowA, $rowB) {
733
+        usort($testData, function($rowA, $rowB) {
734 734
             return ((new DateTime($rowA['date'])) < (new DateTime($rowB['date'])));
735 735
         });
736 736
 
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
         $this->assertNotFalse($data);
779 779
         $this->assertInternalType('array', $data);
780 780
 
781
-        $testData = array_filter($testData, function ($row) {
781
+        $testData = array_filter($testData, function($row) {
782 782
             return ($row['display'] == 1);
783 783
         });
784 784
 
@@ -930,7 +930,7 @@  discard block
 block discarded – undo
930 930
         $this->assertNotFalse($data);
931 931
         $this->assertStringMatchesFormat('%d', $data);
932 932
 
933
-        $testData = array_filter($testData, function ($row) {
933
+        $testData = array_filter($testData, function($row) {
934 934
             return ($row['display'] == 1);
935 935
         });
936 936
 
@@ -1118,7 +1118,7 @@  discard block
 block discarded – undo
1118 1118
         $this->assertInternalType('array', $data);
1119 1119
 
1120 1120
         array_shift($testPostData);
1121
-        $testPostData = array_filter($testPostData, function ($row) {
1121
+        $testPostData = array_filter($testPostData, function($row) {
1122 1122
             return ($row['display'] == 1);
1123 1123
         });
1124 1124
 
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
         $this->assertInternalType('array', $data);
1191 1191
 
1192 1192
         array_shift($testPostData);
1193
-        $testPostData = array_filter($testPostData, function ($row) use ($testSeriesPostData) {
1193
+        $testPostData = array_filter($testPostData, function($row) use ($testSeriesPostData) {
1194 1194
             return (!in_array($row['id'], array_column($testSeriesPostData, 'post')));
1195 1195
         });
1196 1196
 
Please login to merge, or discard this patch.