Skip to content

Commit 63bf89e

Browse files
committed
Merge branch 'develop' of github.com:laravel/laravel into develop
2 parents c9faa95 + bd11b2a commit 63bf89e

File tree

14 files changed

+31
-31
lines changed

14 files changed

+31
-31
lines changed

laravel/documentation/artisan/tasks.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a name="the-basics"></a>
1111
## The Basics
1212

13-
Laravel's command-line tool is called Artisan. Artisan can be used to run "tasks" such as migrations, cronjobs, unit-tests, or anything that want.
13+
Laravel's command-line tool is called Artisan. Artisan can be used to run "tasks" such as migrations, cronjobs, unit-tests, or anything that you want.
1414

1515
<a name="creating-tasks"></a>
1616
## Creating & Running Tasks
@@ -23,7 +23,7 @@ To create a task create a new class in your **application/tasks** directory. The
2323

2424
public function run($arguments)
2525
{
26-
// Do awesome notifying...
26+
// Do awesome notifying
2727
}
2828

2929
}
@@ -42,7 +42,7 @@ Now you can call the "run" method of your task via the command-line. You can eve
4242

4343
Command::run(array('notify'));
4444

45-
#### Calling a task from your application with arguements:
45+
#### Calling a task from your application with arguments:
4646

4747
Command::run(array('notify', 'taylor'));
4848

@@ -54,7 +54,7 @@ Remember, you can call specific methods on your task, so, let's add an "urgent"
5454

5555
public function run($arguments)
5656
{
57-
// Do awesome notifying...
57+
// Do awesome notifying
5858
}
5959

6060
public function urgent($arguments)

laravel/documentation/bundles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Each time a bundle is started, it fires an event. You can listen for the startin
116116

117117
Event::listen('laravel.started: admin', function()
118118
{
119-
// The "admin" bundle has started...
119+
// The "admin" bundle has started
120120
});
121121

122122
It is also possible to "disable" a bundle so that it will never be started.

laravel/documentation/changes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ Add the following code above `Blade::sharpen()` in `application/start.php`..
328328
## Laravel 3.1.4
329329

330330
- Fixes Response header casing bug.
331-
- Fixes SQL "where in" (...) short-cut bug.
331+
- Fixes SQL "where in" () short-cut bug.
332332

333333
<a name="upgrade-3.1.4"></a>
334334
### Upgrading From 3.1.3

laravel/documentation/contrib/command-line.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Next, commit the changes to the repository:
8888

8989
# git commit -s -m "I added some more stuff to the Localization documentation."
9090

91-
"- **-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core.
92-
"- **-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed.
91+
- **-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core.
92+
- **-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed.
9393

9494
<a name="pushing-to-your-fork"></a>
9595
## Pushing to your Fork

laravel/documentation/contrib/tortoisegit.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Login to GitHub and visit the [Laravel Repository](https://github.com/laravel/la
2828

2929
Open up Windows Explorer and create a new directory where you can make development changes to Laravel.
3030

31-
- Right-click the Laravel directory to bring up the context menu. Click on **Git Clone...**
31+
- Right-click the Laravel directory to bring up the context menu. Click on **Git Clone**
3232
- Git clone
3333
- **Url:** https://github.com/laravel/laravel.git
3434
- **Directory:** the directory that you just created in the previous step
@@ -73,7 +73,7 @@ Now that you have created your own branch and have switched to it, it's time to
7373

7474
Now that you have finished coding and testing your changes, it's time to commit them to your local repository:
7575

76-
- Right-click the Laravel directory and goto **Git Commit -> "feature/localization-docs"...**
76+
- Right-click the Laravel directory and goto **Git Commit -> "feature/localization-docs"**
7777
- Commit
7878
- **Message:** Provide a brief explaination of what you added or changed
7979
- Click **Sign** - This tells the Laravel team know that you personally agree to your code being added to the Laravel core
@@ -85,7 +85,7 @@ Now that you have finished coding and testing your changes, it's time to commit
8585

8686
Now that your local repository has your committed changes, it's time to push (or sync) your new branch to your fork that is hosted in GitHub:
8787

88-
- Right-click the Laravel directory and goto **Git Sync...**
88+
- Right-click the Laravel directory and goto **Git Sync**
8989
- Git Syncronization
9090
- **Local Branch:** feature/localization-docs
9191
- **Remote Branch:** leave this blank

laravel/documentation/controllers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Define the controller class and store it in **controllers/admin/panel.php**.
140140
<a name="controller-layouts"></a>
141141
## Controller Layouts
142142

143-
Full documentation on using layouts with Controllers [can be found on the Templating page](http://laravel.com/docs/views/templating).
143+
Full documentation on using layouts with Controllers [can be found on the Templating page](/docs/views/templating).
144144

145145
<a name="restful-controllers"></a>
146146
## RESTful Controllers

laravel/documentation/database/eloquent.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ In this example, **only two queries will be executed**!
425425

426426
SELECT * FROM "books"
427427

428-
SELECT * FROM "authors" WHERE "id" IN (1, 2, 3, 4, 5, ...)
428+
SELECT * FROM "authors" WHERE "id" IN (1, 2, 3, 4, 5, )
429429

430430
Obviously, wise use of eager loading can dramatically increase the performance of your application. In the example above, eager loading cut the execution time in half.
431431

laravel/documentation/input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ By default, *null* will be returned if the input item does not exist. However, y
4141

4242
#### Determining if the input contains a given item:
4343

44-
if (Input::has('name')) ...
44+
if (Input::has('name'))
4545

4646
> **Note:** The "has" method will return *false* if the input item is an empty string.
4747

laravel/documentation/models.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Services contain the *processes* of your application. So, let's keep using our T
8585

8686
public static function validate(Location $location)
8787
{
88-
// Validate the location instance...
88+
// Validate the location instance
8989
}
9090

9191
}
@@ -104,7 +104,7 @@ Repositories are the data access layer of your application. They are responsible
104104

105105
public function save(Location $location, $user_id)
106106
{
107-
// Store the location for the given user ID...
107+
// Store the location for the given user ID
108108
}
109109

110110
}

laravel/documentation/validation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Laravel makes working with your error messages a cinch using a simple error coll
286286

287287
if ($validation->errors->has('email'))
288288
{
289-
// The e-mail attribute has errors...
289+
// The e-mail attribute has errors
290290
}
291291

292292
#### Retrieve the first error message for an attribute:
@@ -327,7 +327,7 @@ Once you have performed your validation, you need an easy way to get the errors
327327

328328
Route::post('register', function()
329329
{
330-
$rules = array(...);
330+
$rules = array();
331331

332332
$validation = Validator::make(Input::all(), $rules);
333333

@@ -438,13 +438,13 @@ Or by adding an entry for your rule in the **language/en/validation.php** file:
438438

439439
As mentioned above, you may even specify and receive a list of parameters in your custom rule:
440440

441-
// When building your rules array...
441+
// When building your rules array
442442

443443
$rules = array(
444444
'username' => 'required|awesome:yes',
445445
);
446446

447-
// In your custom rule...
447+
// In your custom rule
448448

449449
Validator::register('awesome', function($attribute, $value, $parameters)
450450
{

laravel/documentation/views/home.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Now each time the "home" view is created, an instance of the View will be passed
184184
<a name="redirects"></a>
185185
## Redirects
186186

187-
It's important to note that both routes and controllers require responses to be returned with the 'return' directive. Instead of calling "Redirect::to()"" where you'd like to redirect the user. You'd instead use "return Redirect::to()". This distinction is important as it's different than most other PHP frameworks and it could be easy to accidentally overlook the importance of this practice.
187+
It's important to note that both routes and controllers require responses to be returned with the 'return' directive. Instead of calling "Redirect::to()" where you'd like to redirect the user. You'd instead use "return Redirect::to()". This distinction is important as it's different than most other PHP frameworks and it could be easy to accidentally overlook the importance of this practice.
188188

189189
#### Redirecting to another URI:
190190

laravel/documentation/views/pagination.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can also pass an optional array of table columns to select in the query:
3838

3939
The links method will create an intelligent, sliding list of page links that looks something like this:
4040

41-
Previous 1 2 ... 24 25 26 27 28 29 30 ... 78 79 Next
41+
Previous 1 2 24 25 26 27 28 29 30 78 79 Next
4242

4343
The Paginator will automatically determine which page you're on and update the results and links accordingly.
4444

@@ -86,7 +86,7 @@ All pagination link elements can be style using CSS classes. Here is an example
8686
<li><a href="foo">1</a></li>
8787
<li><a href="foo">2</a></li>
8888

89-
<li class="dots disabled"><a href="#">...</a></li>
89+
<li class="dots disabled"><a href="#"></a></li>
9090

9191
<li><a href="foo">11</a></li>
9292
<li><a href="foo">12</a></li>
@@ -96,7 +96,7 @@ All pagination link elements can be style using CSS classes. Here is an example
9696
<li><a href="foo">14</a></li>
9797
<li><a href="foo">15</a></li>
9898

99-
<li class="dots disabled"><a href="#">...</a></li>
99+
<li class="dots disabled"><a href="#"></a></li>
100100

101101
<li><a href="foo">25</a></li>
102102
<li><a href="foo">26</a></li>

laravel/documentation/views/templating.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Similarly, you can use **@render**, which behaves the same as **@include** excep
152152
Login
153153
@endunless
154154

155-
// Equivalent to...
155+
// Equivalent to
156156

157157
<?php if ( ! Auth::check()): ?>
158158
Login

laravel/tests/cases/html.test.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function testGeneratingScript()
3636
$html2 = HTML::script('http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js');
3737
$html3 = HTML::script('foo.js', array('type' => 'text/javascript'));
3838

39-
$this->assertEquals('<script src="http://localhost/foo.js"></script>'."\n", $html1);
40-
$this->assertEquals('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>'."\n", $html2);
41-
$this->assertEquals('<script src="http://localhost/foo.js" type="text/javascript"></script>'."\n", $html3);
39+
$this->assertEquals('<script src="http://localhost/foo.js"></script>'.PHP_EOL, $html1);
40+
$this->assertEquals('<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>'.PHP_EOL, $html2);
41+
$this->assertEquals('<script src="http://localhost/foo.js" type="text/javascript"></script>'.PHP_EOL, $html3);
4242
}
4343

4444
/**
@@ -52,9 +52,9 @@ public function testGeneratingStyle()
5252
$html2 = HTML::style('http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js');
5353
$html3 = HTML::style('foo.css', array('media' => 'print'));
5454

55-
$this->assertEquals('<link href="http://localhost/foo.css" media="all" type="text/css" rel="stylesheet">'."\n", $html1);
56-
$this->assertEquals('<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js" media="all" type="text/css" rel="stylesheet">'."\n", $html2);
57-
$this->assertEquals('<link href="http://localhost/foo.css" media="print" type="text/css" rel="stylesheet">'."\n", $html3);
55+
$this->assertEquals('<link href="http://localhost/foo.css" media="all" type="text/css" rel="stylesheet">'.PHP_EOL, $html1);
56+
$this->assertEquals('<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js" media="all" type="text/css" rel="stylesheet">'.PHP_EOL, $html2);
57+
$this->assertEquals('<link href="http://localhost/foo.css" media="print" type="text/css" rel="stylesheet">'.PHP_EOL, $html3);
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)