Skip to content

Commit ecb1f5d

Browse files
Merge pull request #371 from thephpleague/docs
Documentation Improvements
2 parents aae8666 + 3428f56 commit ecb1f5d

26 files changed

+71
-65
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Scott Robertson <[email protected]>
43
Copyright (c) 2014 Graham Campbell <[email protected]>
4+
Copyright (c) 2014 Scott Robertson <[email protected]>
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ Please check out our [contribution guidelines](CONTRIBUTING.md) for details.
275275

276276
## Credits
277277

278-
Factory Muffin is based on [Zizaco Zizuini](https://github.com/Zizaco)'s original work on "Factory Muff", and is currently maintained by [Scott Robertson](https://github.com/scottrobertson) and [Graham Campbell](https://github.com/GrahamCampbell). Thank you to all our wonderful [contributors](https://github.com/thephpleague/factory-muffin/contributors) too.
278+
Factory Muffin is based on [Zizaco Zizuini](https://github.com/Zizaco)'s original work on "Factory Muff", and is currently maintained by [Graham Campbell](https://github.com/GrahamCampbell) and [Scott Robertson](https://github.com/scottrobertson). Thank you to all our wonderful [contributors](https://github.com/thephpleague/factory-muffin/contributors) too.
279279

280280

281281
## License

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"homepage": "http://factory-muffin.thephpleague.com/",
66
"license": "MIT",
77
"authors": [
8-
{
9-
"name": "Scott Robertson",
10-
"email": "[email protected]"
11-
},
128
{
139
"name": "Graham Campbell",
1410
"email": "[email protected]"
11+
},
12+
{
13+
"name": "Scott Robertson",
14+
"email": "[email protected]"
1515
}
1616
],
1717
"require": {

src/Arr.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
*
2020
* This class contains some array helpers we use internally.
2121
*
22-
* @author Scott Robertson <[email protected]>
2322
* @author Graham Campbell <[email protected]>
23+
* @author Scott Robertson <[email protected]>
2424
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2525
*/
2626
class Arr
2727
{
2828
/**
2929
* Get an item from an array.
3030
*
31-
* @param array $array
32-
* @param string $key
31+
* @param array $array The array to get the item from.
32+
* @param string $key The index the item is located at.
3333
*
3434
* @return mixed
3535
*/
@@ -43,8 +43,8 @@ public static function get(&$array, $key)
4343
/**
4444
* Is the item in the array.
4545
*
46-
* @param array $array
47-
* @param mixed $item
46+
* @param array $array The array to search.
47+
* @param mixed $item The item to search for.
4848
*
4949
* @return bool
5050
*/
@@ -56,8 +56,8 @@ public static function has(&$array, $item)
5656
/**
5757
* Add an object to an array.
5858
*
59-
* @param array $array
60-
* @param object $object
59+
* @param array $array The array to add to.
60+
* @param object $object The object to add.
6161
*
6262
* @return void
6363
*/
@@ -69,9 +69,9 @@ public static function add(&$array, $object)
6969
/**
7070
* Move an object to another array.
7171
*
72-
* @param array $old
73-
* @param array $new
74-
* @param object $object
72+
* @param array $old The old array.
73+
* @param array $new The new array.
74+
* @param object $object The object to move.
7575
*
7676
* @return void
7777
*/

src/Definition.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
/**
1818
* This is the model definition class.
1919
*
20-
* @author Scott Robertson <[email protected]>
2120
* @author Graham Campbell <[email protected]>
21+
* @author Scott Robertson <[email protected]>
2222
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2323
*/
2424
class Definition
@@ -83,9 +83,9 @@ public function getClass()
8383
/**
8484
* Set the model group.
8585
*
86-
* @param string|null $group
86+
* @param string|null $group The model group.
8787
*
88-
* @return $this
88+
* @return \League\FactoryMuffin\Definition
8989
*/
9090
public function setGroup($group)
9191
{
@@ -107,9 +107,9 @@ public function getGroup()
107107
/**
108108
* Set the maker.
109109
*
110-
* @param callable $maker
110+
* @param callable $maker The maker.
111111
*
112-
* @return $this
112+
* @return \League\FactoryMuffin\Definition
113113
*/
114114
public function setMaker(callable $maker)
115115
{
@@ -121,7 +121,7 @@ public function setMaker(callable $maker)
121121
/**
122122
* Clear the maker.
123123
*
124-
* @return $this
124+
* @return \League\FactoryMuffin\Definition
125125
*/
126126
public function clearMaker()
127127
{
@@ -143,9 +143,9 @@ public function getMaker()
143143
/**
144144
* Set the callback.
145145
*
146-
* @param callable $callback
146+
* @param callable $callback The callback.
147147
*
148-
* @return $this
148+
* @return \League\FactoryMuffin\Definition
149149
*/
150150
public function setCallback(callable $callback)
151151
{
@@ -157,7 +157,7 @@ public function setCallback(callable $callback)
157157
/**
158158
* Clear the callback.
159159
*
160-
* @return $this
160+
* @return \League\FactoryMuffin\Definition
161161
*/
162162
public function clearCallback()
163163
{
@@ -181,10 +181,10 @@ public function getCallback()
181181
*
182182
* Note that we're appending to the original attribute definitions here.
183183
*
184-
* @param string $attribute
185-
* @param string|callable $definition
184+
* @param string $attribute The attribute name.
185+
* @param string|callable $definition The attribute definition.
186186
*
187-
* @return $this
187+
* @return \League\FactoryMuffin\Definition
188188
*/
189189
public function addDefinition($attribute, $definition)
190190
{
@@ -199,9 +199,9 @@ public function addDefinition($attribute, $definition)
199199
* Note that we're appending to the original attribute definitions here
200200
* instead of switching them out for the new ones.
201201
*
202-
* @param array $definitions
202+
* @param array $definitions The attribute definitions.
203203
*
204-
* @return $this
204+
* @return \League\FactoryMuffin\Definition
205205
*/
206206
public function setDefinitions(array $definitions = [])
207207
{
@@ -213,7 +213,7 @@ public function setDefinitions(array $definitions = [])
213213
/**
214214
* Clear the attribute definitions.
215215
*
216-
* @return $this
216+
* @return \League\FactoryMuffin\Definition
217217
*/
218218
public function clearDefinitions()
219219
{

src/Exceptions/DeleteFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* loose comparison. This class extends ModelException, so you may want to try
2222
* to catch that exception instead, if you want to be more general.
2323
*
24-
* @author Scott Robertson <[email protected]>
2524
* @author Graham Campbell <[email protected]>
25+
* @author Scott Robertson <[email protected]>
2626
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2727
*/
2828
class DeleteFailedException extends ModelException

src/Exceptions/DeleteMethodNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
* extends MethodNotFoundException and ModelException, so you may want to try
2222
* to catch one of those exceptions instead, if you want to be more general.
2323
*
24-
* @author Scott Robertson <[email protected]>
2524
* @author Graham Campbell <[email protected]>
25+
* @author Scott Robertson <[email protected]>
2626
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2727
*/
2828
class DeleteMethodNotFoundException extends MethodNotFoundException

src/Exceptions/DeletingFailedException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
* underlying exception, in the order they were thrown during the whole
2626
* process, by calling getExceptions to return an array of exceptions.
2727
*
28-
* @author Scott Robertson <[email protected]>
2928
* @author Graham Campbell <[email protected]>
29+
* @author Scott Robertson <[email protected]>
3030
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
3131
*/
3232
class DeletingFailedException extends Exception
3333
{
3434
/**
35-
* The array of exceptions.
35+
* The array of caught exceptions.
3636
*
3737
* @var \Exception[]
3838
*/
@@ -77,7 +77,7 @@ private function plural($word, $count)
7777
}
7878

7979
/**
80-
* Get the array of exceptions.
80+
* Get the array of caught exceptions.
8181
*
8282
* @return \Exception[]
8383
*/

src/Exceptions/DirectoryNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* This is thrown if you try to load model definitions from a directory that
2323
* doesn't exit.
2424
*
25-
* @author Scott Robertson <[email protected]>
2625
* @author Graham Campbell <[email protected]>
26+
* @author Scott Robertson <[email protected]>
2727
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2828
*/
2929
class DirectoryNotFoundException extends Exception

src/Exceptions/MethodNotFoundException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
* This exception is never directly thrown, but you may try to catch this
2121
* exception rather than the 2 other exceptions that extend this class.
2222
*
23-
* @author Scott Robertson <[email protected]>
2423
* @author Graham Campbell <[email protected]>
24+
* @author Scott Robertson <[email protected]>
2525
* @license <https://github.com/thephpleague/factory-muffin/blob/master/LICENSE> MIT
2626
*/
2727
class MethodNotFoundException extends ModelException
2828
{
2929
/**
30-
* The method.
30+
* The method name.
3131
*
3232
* @var string
3333
*/
@@ -50,7 +50,7 @@ public function __construct($class, $method, $message)
5050
}
5151

5252
/**
53-
* Get the method.
53+
* Get the method name.
5454
*
5555
* @return string
5656
*/

0 commit comments

Comments
 (0)