Completed
Push — master ( b71929...bf05f4 )
by Jacob
10:14
created
src/Domain/Waterfall/Watercourse/WatercourseRepositoryInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface WatercourseRepositoryInterface
6 6
 {
7
-    public function getWatercourseList();
7
+	public function getWatercourseList();
8 8
 }
Please login to merge, or discard this patch.
src/Domain/Waterfall/Waterfall/MysqlWaterfallRepository.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -7,38 +7,38 @@
 block discarded – undo
7 7
 class MysqlWaterfallRepository implements WaterfallRepositoryInterface
8 8
 {
9 9
 
10
-    /** @var  Aura\Sql\ConnectionLocator */
11
-    protected $connections;
12
-
13
-    /**
14
-     * @param Aura\Sql\ConnectionLocator $connections
15
-     */
16
-    public function __construct(ConnectionLocator $connections)
17
-    {
18
-        $this->connections = $connections;
19
-    }
20
-
21
-    public function getWaterfalls($limit = null, $offset = 0)
22
-    {
23
-        $query = "
10
+	/** @var  Aura\Sql\ConnectionLocator */
11
+	protected $connections;
12
+
13
+	/**
14
+	 * @param Aura\Sql\ConnectionLocator $connections
15
+	 */
16
+	public function __construct(ConnectionLocator $connections)
17
+	{
18
+		$this->connections = $connections;
19
+	}
20
+
21
+	public function getWaterfalls($limit = null, $offset = 0)
22
+	{
23
+		$query = "
24 24
             SELECT `waterfall`.`id`, `waterfall`.`name`, `waterfall`.`alias`,
25 25
                    `watercourse`.`name` AS `watercourse`, `watercourse`.`alias` AS `watercourse_alias`
26 26
             FROM `jpemeric_waterfall`.`waterfall`
27 27
             INNER JOIN `jpemeric_waterfall`.`watercourse` ON `waterfall`.`watercourse` = `watercourse`.`id`
28 28
             WHERE `is_public` = :public
29 29
             ORDER BY `name`, `watercourse`";
30
-        if ($limit != null) {
31
-            $query .= "
30
+		if ($limit != null) {
31
+			$query .= "
32 32
             LIMIT {$offset}, {$limit}";
33
-        }
33
+		}
34 34
 
35
-        $bindings = [
36
-            'public' => 1,
37
-        ];
35
+		$bindings = [
36
+			'public' => 1,
37
+		];
38 38
 
39
-        return $this
40
-            ->connections
41
-            ->getRead()
42
-            ->fetchAll($query, $bindings);
43
-    }
39
+		return $this
40
+			->connections
41
+			->getRead()
42
+			->fetchAll($query, $bindings);
43
+	}
44 44
 }
Please login to merge, or discard this patch.
src/Domain/Waterfall/Waterfall/WaterfallRepositoryInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface WaterfallRepositoryInterface
6 6
 {
7
-    public function getWaterfalls($limit = null, $offset= 0);
7
+	public function getWaterfalls($limit = null, $offset= 0);
8 8
 }
Please login to merge, or discard this patch.
src/Domain/Stream/Changelog/ChangelogRepositoryInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface ChangelogRepositoryInterface
6 6
 {
7
-    public function getChanges($limit = null, $offset = 0);
7
+	public function getChanges($limit = null, $offset = 0);
8 8
 }
Please login to merge, or discard this patch.
controller/site/ChangelogController.class.inc.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 
29 29
 	private function get_changelog()
30 30
 	{
31
-    global $container;
32
-    $changelogRepository = new MysqlChangelogRepository($container['db_connection_locator']);
33
-    $changelog_result = $changelogRepository->getChanges(40);
31
+	global $container;
32
+	$changelogRepository = new MysqlChangelogRepository($container['db_connection_locator']);
33
+	$changelog_result = $changelogRepository->getChanges(40);
34 34
 		
35 35
 		foreach($changelog_result as $change)
36 36
 		{
Please login to merge, or discard this patch.
src/Domain/Stream/Activity/ActivityRepositoryInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,9 +4,9 @@
 block discarded – undo
4 4
 
5 5
 interface ActivityRepositoryInterface
6 6
 {
7
-    public function getActivityById($id);
8
-    public function getActivities($limit = null, $offset = 0);
9
-    public function getActivitiesCount();
10
-    public function getActivitiesByType($type, $limit = null, $offset = 0);
11
-    public function getActivitiesByTypeCount($type);
7
+	public function getActivityById($id);
8
+	public function getActivities($limit = null, $offset = 0);
9
+	public function getActivitiesCount();
10
+	public function getActivitiesByType($type, $limit = null, $offset = 0);
11
+	public function getActivitiesByTypeCount($type);
12 12
 }
Please login to merge, or discard this patch.
controller/lifestream/DefaultPageController.class.inc.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 
11 11
   public function __construct()
12 12
   {
13
-    parent::__construct();
13
+	parent::__construct();
14 14
 
15
-    global $container;
16
-    $this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
15
+	global $container;
16
+	$this->activityRepository = new Jacobemerick\Web\Domain\Stream\Activity\MysqlActivityRepository($container['db_connection_locator']);
17 17
   }
18 18
 
19 19
 	protected function set_head_data()
Please login to merge, or discard this patch.
controller/lifestream/HomeController.class.inc.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
 	protected function get_list_results()
47 47
 	{
48
-    return $this->activityRepository->getActivities(self::$POSTS_PER_PAGE, $this->offset);
48
+	return $this->activityRepository->getActivities(self::$POSTS_PER_PAGE, $this->offset);
49 49
 	}
50 50
 
51 51
 	protected function get_list_description()
Please login to merge, or discard this patch.
controller/lifestream/TagController.class.inc.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 			case 'distance' :
58 58
 				return 'Run, Jacob, and Hike';
59 59
 			break;
60
-      case 'github' :
61
-        return 'Jacob, Code Monkey';
62
-      break;
60
+	  case 'github' :
61
+		return 'Jacob, Code Monkey';
62
+	  break;
63 63
 			case 'hulu' :
64 64
 				return 'Jacob watches Hulu';
65 65
 			break;
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 			case 'distance' :
86 86
 				return 'All the cool kids like to be in shape. Jacob goes running and hiking.';
87 87
 			break;
88
-      case 'github' :
89
-        return 'Since he is trying to be a developer, Jacob codes. Here is some code that he pushed around on the Githubs.';
90
-      break;
88
+	  case 'github' :
89
+		return 'Since he is trying to be a developer, Jacob codes. Here is some code that he pushed around on the Githubs.';
90
+	  break;
91 91
 			case 'hulu' :
92 92
 				return 'Occasionally Jacob chills and watches some Hulu. Well, used to, anyways.';
93 93
 			break;
Please login to merge, or discard this patch.