Browse files

minors editing of readme for readability sake

  • Loading branch information...
1 parent 926ae6f commit 33e2a43bd5761a3d9a52a39fb039b0880a21b127 @zircote committed Apr 5, 2012
Showing with 21 additions and 3 deletions.
  1. +21 −3 readme.md
View
24 readme.md
@@ -12,9 +12,27 @@ $parent = new Hal_Resource('/dogs');
/* Add any relevent links */
$parent->setLink(new Hal_Link('/dogs?q={text}', 'search'));
$dogs[1] = new Hal_Resource('/dogs/1');
-$dogs[1]->setData(array('id' => '1', 'name' => 'tiber', 'color' => 'black'));
-$dogs[2] = new Hal_Resource('/dogs/2',array('id' => '2', 'name' => 'sally', 'color' => 'white'));
-$dogs[3] = new Hal_Resource('/dogs/3',array('id' => '3', 'name' => 'fido', 'color' => 'gray'));
+$dogs[1]->setData(
+ array(
+ 'id' => '1',
+ 'name' => 'tiber',
+ 'color' => 'black'
+ )
+);
+$dogs[2] = new Hal_Resource(
+ '/dogs/2',array(
+ 'id' => '2',
+ 'name' => 'sally',
+ 'color' => 'white'
+ )
+);
+$dogs[3] = new Hal_Resource(
+ '/dogs/3',array(
+ 'id' => '3',
+ 'name' => 'fido',
+ 'color' => 'gray'
+ )
+);
/* Add the embedded resources */
foreach ($dogs as $dog) {
$parent->setEmbedded('dog', $dog);

0 comments on commit 33e2a43

Please sign in to comment.