This package follows the PSR-2 coding standard and the PSR-4 autoloading standard.
/**
* Some function.
*
* @param string|array $first_paramater
* @param \Closure|string|null $second_paramater
* @param bool $third_paramater
*
* @return void
*/
public function myFunction($first_paramater, $second_paramater = null, $third_paramater = false)
{
//
}
Don't worry if your code styling isn't perfect! StyleCI will automatically merge any style fixes into the Laravel repository after pull requests are merged. This allows us to focus on the content of the contribution and not the code style.
- MUST run the test suite.
- MUST write (or update) unit tests.
- SHOULD write documentation.
Please, write commit messages that make sense, and rebase your branch before submitting your Pull Request.
You may be asked to squash your commits
too. This is used to "clean" your Pull Request before merging it (we don't want commits such as fix tests
, fix 2
,
fix 3
, etc).