Skip to content

Commit

Permalink
Updates badge links, style changes on new repository classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobemerick committed Nov 28, 2015
1 parent 6024632 commit de1ee7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions 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.
Expand Down
8 changes: 5 additions & 3 deletions src/domain/blog/MysqlPostRepository.php
Expand Up @@ -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 = "
Expand All @@ -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);
}

}

1 change: 0 additions & 1 deletion src/domain/blog/PostRepository.php
Expand Up @@ -6,4 +6,3 @@ interface PostRepository
{
public function findByUri($uri);
}

0 comments on commit de1ee7d

Please sign in to comment.