From de1ee7d019eeb4d92bbd0d98984f8ee9e9d0d62c Mon Sep 17 00:00:00 2001 From: Jacob Emerick Date: Sat, 28 Nov 2015 11:13:44 -0700 Subject: [PATCH] Updates badge links, style changes on new repository classes --- README.md | 10 +++++----- src/domain/blog/MysqlPostRepository.php | 8 +++++--- src/domain/blog/PostRepository.php | 1 - 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 801b8c1..e8adcee 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# jakemvc -A simple, custom MVC that powers several of my personal sites, including a [blog](http://blog.jacobemerick.com/), [lifestream](http://lifestream.jacobemerick.com/), and [waterfall directory](http://www.waterfallsofthekeweenaw.com/). +# jacobemerick/web +A simple, custom framework that powers several of my personal sites, including a [blog](http://blog.jacobemerick.com/), [lifestream](http://lifestream.jacobemerick.com/), and [waterfall directory](http://www.waterfallsofthekeweenaw.com/). -[![Build Status](https://travis-ci.org/jacobemerick/jakemvc.svg?branch=master)](https://travis-ci.org/jacobemerick/jakemvc) -[![Code Climate](https://codeclimate.com/github/jacobemerick/jakemvc/badges/gpa.svg)](https://codeclimate.com/github/jacobemerick/jakemvc) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jacobemerick/jakemvc/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jacobemerick/jakemvc/?branch=master) +[![Build Status](https://travis-ci.org/jacobemerick/web.svg?branch=master)](https://travis-ci.org/jacobemerick/web) +[![Code Climate](https://codeclimate.com/github/jacobemerick/web/badges/gpa.svg)](https://codeclimate.com/github/jacobemerick/web) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/jacobemerick/web/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/jacobemerick/web/?branch=master) ### Overview This is an ancient codebase (started back in 2008) that has somehow survived multiple half-rewrites and changing coding preferences. The original intent was to send all requests - static, dynamic, and server-side - through a single point to make easy bootstrapping. Oh, and to support many different types of websites through a single MVC directory. diff --git a/src/domain/blog/MysqlPostRepository.php b/src/domain/blog/MysqlPostRepository.php index 5183599..936977f 100644 --- a/src/domain/blog/MysqlPostRepository.php +++ b/src/domain/blog/MysqlPostRepository.php @@ -14,6 +14,7 @@ public function __construct(ConnectionLocator $connections) $this->connections = $connections; } + // todo make this smarter - it should parse by category as well public function findByUri($uri) { $query = " @@ -24,8 +25,9 @@ public function findByUri($uri) $bindings = [ 'uri' => $uri, ]; - return $this->connections->getRead()->fetchOne($query, $bindings); + return $this + ->connections + ->getRead() + ->fetchOne($query, $bindings); } - } - diff --git a/src/domain/blog/PostRepository.php b/src/domain/blog/PostRepository.php index 5ba33a8..c227971 100644 --- a/src/domain/blog/PostRepository.php +++ b/src/domain/blog/PostRepository.php @@ -6,4 +6,3 @@ interface PostRepository { public function findByUri($uri); } -