Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
62072e52
Commit
62072e52
authored
Feb 04, 2012
by
Phill Sparks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPDoc fixes
parent
f3be544b
Changes
36
Show whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
74 additions
and
56 deletions
+74
-56
base.php
application/controllers/base.php
+1
-1
autoloader.php
laravel/autoloader.php
+2
-2
bundle.php
laravel/bundle.php
+2
-3
cache.php
laravel/cache.php
+2
-2
database.php
laravel/cache/drivers/database.php
+1
-1
driver.php
laravel/cache/drivers/driver.php
+0
-1
redis.php
laravel/cache/drivers/redis.php
+2
-2
console.php
laravel/cli/console.php
+1
-1
database.php
laravel/cli/tasks/migrate/database.php
+1
-1
resolver.php
laravel/cli/tasks/migrate/resolver.php
+1
-1
runner.php
laravel/cli/tasks/test/runner.php
+1
-1
cookie.php
laravel/cookie.php
+1
-1
database.php
laravel/database.php
+3
-3
query.php
laravel/database/query.php
+1
-1
table.php
laravel/database/schema/table.php
+3
-2
file.php
laravel/file.php
+2
-2
form.php
laravel/form.php
+3
-2
helpers.php
laravel/helpers.php
+1
-1
html.php
laravel/html.php
+1
-0
ioc.php
laravel/ioc.php
+1
-0
memcached.php
laravel/memcached.php
+3
-3
messages.php
laravel/messages.php
+1
-0
paginator.php
laravel/paginator.php
+4
-2
redirect.php
laravel/redirect.php
+2
-2
filter.php
laravel/routing/filter.php
+1
-0
route.php
laravel/routing/route.php
+1
-1
router.php
laravel/routing/router.php
+1
-1
session.php
laravel/session.php
+3
-3
apc.php
laravel/session/drivers/apc.php
+2
-2
memcached.php
laravel/session/drivers/memcached.php
+2
-2
redis.php
laravel/session/drivers/redis.php
+2
-2
payload.php
laravel/session/payload.php
+1
-1
str.php
laravel/str.php
+2
-1
validator.php
laravel/validator.php
+1
-1
view.php
laravel/view.php
+1
-1
paths.php
paths.php
+17
-6
No files found.
application/controllers/base.php
View file @
62072e52
...
@@ -7,7 +7,7 @@ class Base_Controller extends Controller {
...
@@ -7,7 +7,7 @@ class Base_Controller extends Controller {
*
*
* @param string $method
* @param string $method
* @param array $parameters
* @param array $parameters
* @return Response
* @return
Laravel\
Response
*/
*/
public
function
__call
(
$method
,
$parameters
)
public
function
__call
(
$method
,
$parameters
)
{
{
...
...
laravel/autoloader.php
View file @
62072e52
...
@@ -183,8 +183,8 @@ class Autoloader {
...
@@ -183,8 +183,8 @@ class Autoloader {
/**
/**
* Map namespaces to directories.
* Map namespaces to directories.
*
*
* @param
string $namespace
* @param
array $mappings
* @
param string $path
* @
return void
*/
*/
public
static
function
namespaces
(
$mappings
)
public
static
function
namespaces
(
$mappings
)
{
{
...
...
laravel/bundle.php
View file @
62072e52
...
@@ -27,8 +27,7 @@ class Bundle {
...
@@ -27,8 +27,7 @@ class Bundle {
* Register a bundle for the application.
* Register a bundle for the application.
*
*
* @param string $bundle
* @param string $bundle
* @param string $location
* @param mixed $config Array of 'location', 'handles' and 'auto'; or string of location.
* @param string $handles
* @return void
* @return void
*/
*/
public
static
function
register
(
$bundle
,
$config
=
array
())
public
static
function
register
(
$bundle
,
$config
=
array
())
...
@@ -111,7 +110,7 @@ class Bundle {
...
@@ -111,7 +110,7 @@ class Bundle {
*
*
* If no bundle is assigned to handle the URI, the default bundle is returned.
* If no bundle is assigned to handle the URI, the default bundle is returned.
*
*
* @param string $
bundle
* @param string $
uri
* @return string
* @return string
*/
*/
public
static
function
handles
(
$uri
)
public
static
function
handles
(
$uri
)
...
...
laravel/cache.php
View file @
62072e52
...
@@ -23,7 +23,7 @@ class Cache {
...
@@ -23,7 +23,7 @@ class Cache {
* </code>
* </code>
*
*
* @param string $driver
* @param string $driver
* @return Cache\Driver
* @return Cache\Driver
s\Driver
*/
*/
public
static
function
driver
(
$driver
=
null
)
public
static
function
driver
(
$driver
=
null
)
{
{
...
@@ -41,7 +41,7 @@ class Cache {
...
@@ -41,7 +41,7 @@ class Cache {
* Create a new cache driver instance.
* Create a new cache driver instance.
*
*
* @param string $driver
* @param string $driver
* @return Driver
* @return
Cache\Drivers\
Driver
*/
*/
protected
static
function
factory
(
$driver
)
protected
static
function
factory
(
$driver
)
{
{
...
...
laravel/cache/drivers/database.php
View file @
62072e52
...
@@ -101,7 +101,7 @@ class Database extends Driver {
...
@@ -101,7 +101,7 @@ class Database extends Driver {
/**
/**
* Get a query builder for the database table.
* Get a query builder for the database table.
*
*
* @return Query
* @return
Laravel\Database\
Query
*/
*/
protected
function
table
()
protected
function
table
()
{
{
...
...
laravel/cache/drivers/driver.php
View file @
62072e52
...
@@ -23,7 +23,6 @@ abstract class Driver {
...
@@ -23,7 +23,6 @@ abstract class Driver {
*
*
* @param string $key
* @param string $key
* @param mixed $default
* @param mixed $default
* @param string $driver
* @return mixed
* @return mixed
*/
*/
public
function
get
(
$key
,
$default
=
null
)
public
function
get
(
$key
,
$default
=
null
)
...
...
laravel/cache/drivers/redis.php
View file @
62072e52
...
@@ -5,14 +5,14 @@ class Redis extends Driver {
...
@@ -5,14 +5,14 @@ class Redis extends Driver {
/**
/**
* The Redis database instance.
* The Redis database instance.
*
*
* @var Redis
* @var
Laravel\
Redis
*/
*/
protected
$redis
;
protected
$redis
;
/**
/**
* Create a new Redis cache driver instance.
* Create a new Redis cache driver instance.
*
*
* @param Redis $redis
* @param
Laravel\
Redis $redis
* @return void
* @return void
*/
*/
public
function
__construct
(
\Laravel\Redis
$redis
)
public
function
__construct
(
\Laravel\Redis
$redis
)
...
...
laravel/cli/console.php
View file @
62072e52
...
@@ -6,7 +6,7 @@ class Console {
...
@@ -6,7 +6,7 @@ class Console {
* Parse the command line arguments and return the results.
* Parse the command line arguments and return the results.
*
*
* @param array $argv
* @param array $argv
* @
param
array
* @
return
array
*/
*/
public
static
function
options
(
$argv
)
public
static
function
options
(
$argv
)
{
{
...
...
laravel/cli/tasks/migrate/database.php
View file @
62072e52
...
@@ -74,7 +74,7 @@ class Database {
...
@@ -74,7 +74,7 @@ class Database {
/**
/**
* Get a database query instance for the migration table.
* Get a database query instance for the migration table.
*
*
* @return Query
* @return
Laravel\Database\
Query
*/
*/
protected
function
table
()
protected
function
table
()
{
{
...
...
laravel/cli/tasks/migrate/resolver.php
View file @
62072e52
...
@@ -14,7 +14,7 @@ class Resolver {
...
@@ -14,7 +14,7 @@ class Resolver {
/**
/**
* Create a new instance of the migration resolver.
* Create a new instance of the migration resolver.
*
*
* @param Database $datbase
* @param Database $dat
a
base
* @return void
* @return void
*/
*/
public
function
__construct
(
Database
$database
)
public
function
__construct
(
Database
$database
)
...
...
laravel/cli/tasks/test/runner.php
View file @
62072e52
...
@@ -41,7 +41,7 @@ class Runner extends Task {
...
@@ -41,7 +41,7 @@ class Runner extends Task {
/**
/**
* Run the tests for a given bundle.
* Run the tests for a given bundle.
*
*
* @param array $
argument
s
* @param array $
bundle
s
* @return void
* @return void
*/
*/
public
function
bundle
(
$bundles
=
array
())
public
function
bundle
(
$bundles
=
array
())
...
...
laravel/cookie.php
View file @
62072e52
...
@@ -113,7 +113,7 @@ class Cookie {
...
@@ -113,7 +113,7 @@ class Cookie {
* @param string $path
* @param string $path
* @param string $domain
* @param string $domain
* @param bool $secure
* @param bool $secure
* @return
bool
* @return
void
*/
*/
public
static
function
put
(
$name
,
$value
,
$minutes
=
0
,
$path
=
'/'
,
$domain
=
null
,
$secure
=
false
)
public
static
function
put
(
$name
,
$value
,
$minutes
=
0
,
$path
=
'/'
,
$domain
=
null
,
$secure
=
false
)
{
{
...
...
laravel/database.php
View file @
62072e52
...
@@ -26,7 +26,7 @@ class Database {
...
@@ -26,7 +26,7 @@ class Database {
* </code>
* </code>
*
*
* @param string $connection
* @param string $connection
* @return Connection
* @return
Database\
Connection
*/
*/
public
static
function
connection
(
$connection
=
null
)
public
static
function
connection
(
$connection
=
null
)
{
{
...
@@ -62,7 +62,7 @@ class Database {
...
@@ -62,7 +62,7 @@ class Database {
* Create a new database connector instance.
* Create a new database connector instance.
*
*
* @param string $driver
* @param string $driver
* @return Connector
* @return
Database\Connectors\
Connector
*/
*/
protected
static
function
connector
(
$driver
)
protected
static
function
connector
(
$driver
)
{
{
...
@@ -90,7 +90,7 @@ class Database {
...
@@ -90,7 +90,7 @@ class Database {
*
*
* @param string $table
* @param string $table
* @param string $connection
* @param string $connection
* @return
Queries
\Query
* @return
Database
\Query
*/
*/
public
static
function
table
(
$table
,
$connection
=
null
)
public
static
function
table
(
$table
,
$connection
=
null
)
{
{
...
...
laravel/database/query.php
View file @
62072e52
...
@@ -625,7 +625,7 @@ class Query {
...
@@ -625,7 +625,7 @@ class Query {
/**
/**
* Get an aggregate value.
* Get an aggregate value.
*
*
* @param string $aggregat
e
* @param string $aggregat
or
* @param string $column
* @param string $column
* @return mixed
* @return mixed
*/
*/
...
...
laravel/database/schema/table.php
View file @
62072e52
...
@@ -99,7 +99,9 @@ class Table {
...
@@ -99,7 +99,9 @@ class Table {
/**
/**
* Create a new index on the table.
* Create a new index on the table.
*
*
* @param string|array
* @param string|array $columns
* @param string $name
* @return Fluent
*/
*/
public
function
index
(
$columns
,
$name
)
public
function
index
(
$columns
,
$name
)
{
{
...
@@ -237,7 +239,6 @@ class Table {
...
@@ -237,7 +239,6 @@ class Table {
* Add a float column to the table.
* Add a float column to the table.
*
*
* @param string $name
* @param string $name
* @param bool $increment
* @return Fluent
* @return Fluent
*/
*/
public
function
float
(
$name
)
public
function
float
(
$name
)
...
...
laravel/file.php
View file @
62072e52
...
@@ -93,7 +93,7 @@ class File {
...
@@ -93,7 +93,7 @@ class File {
/**
/**
* Get the file size of a given file.
* Get the file size of a given file.
*
*
* @param string $
file
* @param string $
path
* @return int
* @return int
*/
*/
public
static
function
size
(
$path
)
public
static
function
size
(
$path
)
...
@@ -149,7 +149,7 @@ class File {
...
@@ -149,7 +149,7 @@ class File {
* $image = File::is(array('jpg', 'png', 'gif'), 'path/to/file');
* $image = File::is(array('jpg', 'png', 'gif'), 'path/to/file');
* </code>
* </code>
*
*
* @param array|string $extension
* @param array|string $extension
s
* @param string $path
* @param string $path
* @return bool
* @return bool
*/
*/
...
...
laravel/form.php
View file @
62072e52
...
@@ -186,6 +186,7 @@ class Form {
...
@@ -186,6 +186,7 @@ class Form {
* echo Form::input('text', 'email', 'example@gmail.com');
* echo Form::input('text', 'email', 'example@gmail.com');
* </code>
* </code>
*
*
* @param string $type
* @param string $name
* @param string $name
* @param mixed $value
* @param mixed $value
* @param array $attributes
* @param array $attributes
...
@@ -389,7 +390,7 @@ class Form {
...
@@ -389,7 +390,7 @@ class Form {
*
*
* @param string $value
* @param string $value
* @param string $display
* @param string $display
* @
return
string $selected
* @
param
string $selected
* @return string
* @return string
*/
*/
protected
static
function
option
(
$value
,
$display
,
$selected
)
protected
static
function
option
(
$value
,
$display
,
$selected
)
...
@@ -506,6 +507,7 @@ class Form {
...
@@ -506,6 +507,7 @@ class Form {
* </code>
* </code>
*
*
* @param string $url
* @param string $url
* @param string $name
* @param array $attributes
* @param array $attributes
* @return string
* @return string
*/
*/
...
@@ -519,7 +521,6 @@ class Form {
...
@@ -519,7 +521,6 @@ class Form {
/**
/**
* Create a HTML button element.
* Create a HTML button element.
*
*
* @param string $name
* @param string $value
* @param string $value
* @param array $attributes
* @param array $attributes
* @return string
* @return string
...
...
laravel/helpers.php
View file @
62072e52
...
@@ -26,7 +26,7 @@ function __($key, $replacements = array(), $language = null)
...
@@ -26,7 +26,7 @@ function __($key, $replacements = array(), $language = null)
return
Laravel\Lang
::
line
(
$key
,
$replacements
,
$language
);
return
Laravel\Lang
::
line
(
$key
,
$replacements
,
$language
);
}
}
/**
a
/**
* Get an item from an array using "dot" notation.
* Get an item from an array using "dot" notation.
*
*
* <code>
* <code>
...
...
laravel/html.php
View file @
62072e52
...
@@ -173,6 +173,7 @@ class HTML {
...
@@ -173,6 +173,7 @@ class HTML {
* @param string $title
* @param string $title
* @param array $parameters
* @param array $parameters
* @param array $attributes
* @param array $attributes
* @param bool $https
* @return string
* @return string
*/
*/
public
static
function
link_to_route
(
$name
,
$title
,
$parameters
=
array
(),
$attributes
=
array
(),
$https
=
false
)
public
static
function
link_to_route
(
$name
,
$title
,
$parameters
=
array
(),
$attributes
=
array
(),
$https
=
false
)
...
...
laravel/ioc.php
View file @
62072e52
...
@@ -21,6 +21,7 @@ class IoC {
...
@@ -21,6 +21,7 @@ class IoC {
*
*
* @param string $name
* @param string $name
* @param Closure $resolver
* @param Closure $resolver
* @param bool $singleton
* @return void
* @return void
*/
*/
public
static
function
register
(
$name
,
Closure
$resolver
,
$singleton
=
false
)
public
static
function
register
(
$name
,
Closure
$resolver
,
$singleton
=
false
)
...
...
laravel/memcached.php
View file @
62072e52
...
@@ -5,7 +5,7 @@ class Memcached {
...
@@ -5,7 +5,7 @@ class Memcached {
/**
/**
* The Memcached connection instance.
* The Memcached connection instance.
*
*
* @var Memcache
* @var Memcache
d
*/
*/
protected
static
$connection
;
protected
static
$connection
;
...
@@ -20,7 +20,7 @@ class Memcached {
...
@@ -20,7 +20,7 @@ class Memcached {
* Memcached::connection()->set('name', 'Taylor');
* Memcached::connection()->set('name', 'Taylor');
* </code>
* </code>
*
*
* @return Memcache
* @return Memcache
d
*/
*/
public
static
function
connection
()
public
static
function
connection
()
{
{
...
@@ -36,7 +36,7 @@ class Memcached {
...
@@ -36,7 +36,7 @@ class Memcached {
* Create a new Memcached connection instance.
* Create a new Memcached connection instance.
*
*
* @param array $servers
* @param array $servers
* @return Memcache
* @return Memcache
d
*/
*/
protected
static
function
connect
(
$servers
)
protected
static
function
connect
(
$servers
)
{
{
...
...
laravel/messages.php
View file @
62072e52
...
@@ -12,6 +12,7 @@ class Messages {
...
@@ -12,6 +12,7 @@ class Messages {
/**
/**
* Create a new Messages instance.
* Create a new Messages instance.
*
*
* @param array $messages
* @return void
* @return void
*/
*/
public
function
__construct
(
$messages
=
array
())
public
function
__construct
(
$messages
=
array
())
...
...
laravel/paginator.php
View file @
62072e52
...
@@ -71,10 +71,10 @@ class Paginator {
...
@@ -71,10 +71,10 @@ class Paginator {
* Create a new Paginator instance.
* Create a new Paginator instance.
*
*
* @param array $results
* @param array $results
* @param int $last
* @param int $page
* @param int $page
* @param int $total
* @param int $total
* @param int $per_page
* @param int $per_page
* @param int $last
* @return void
* @return void
*/
*/
protected
function
__construct
(
$results
,
$page
,
$total
,
$per_page
,
$last
)
protected
function
__construct
(
$results
,
$page
,
$total
,
$per_page
,
$last
)
...
@@ -246,6 +246,7 @@ class Paginator {
...
@@ -246,6 +246,7 @@ class Paginator {
* echo $paginator->previous('Go Back');
* echo $paginator->previous('Go Back');
* </code>
* </code>
*
*
* @param string $text
* @return string
* @return string
*/
*/
public
function
previous
(
$text
=
null
)
public
function
previous
(
$text
=
null
)
...
@@ -266,6 +267,7 @@ class Paginator {
...
@@ -266,6 +267,7 @@ class Paginator {
* echo $paginator->next('Skip Forwards');
* echo $paginator->next('Skip Forwards');
* </code>
* </code>
*
*
* @param string $text
* @return string
* @return string
*/
*/
public
function
next
(
$text
=
null
)
public
function
next
(
$text
=
null
)
...
@@ -364,7 +366,7 @@ class Paginator {
...
@@ -364,7 +366,7 @@ class Paginator {
*
*
* @param int $page
* @param int $page
* @param string $text
* @param string $text
* @param string $
attribute
s
* @param string $
clas
s
* @return string
* @return string
*/
*/
protected
function
link
(
$page
,
$text
,
$class
)
protected
function
link
(
$page
,
$text
,
$class
)
...
...
laravel/redirect.php
View file @
62072e52
...
@@ -28,7 +28,7 @@ class Redirect extends Response {
...
@@ -28,7 +28,7 @@ class Redirect extends Response {
*
*
* @param string $url
* @param string $url
* @param int $status
* @param int $status
* @return Re
sponse
* @return Re
direct
*/
*/
public
static
function
to_secure
(
$url
,
$status
=
302
)
public
static
function
to_secure
(
$url
,
$status
=
302
)
{
{
...
@@ -82,7 +82,7 @@ class Redirect extends Response {
...
@@ -82,7 +82,7 @@ class Redirect extends Response {
*
*
* @param string $key
* @param string $key
* @param mixed $value
* @param mixed $value
* @return Re
sponse
* @return Re
direct
*/
*/
public
function
with
(
$key
,
$value
)
public
function
with
(
$key
,
$value
)
{
{
...
...
laravel/routing/filter.php
View file @
62072e52
...
@@ -155,6 +155,7 @@ class Filter_Collection {
...
@@ -155,6 +155,7 @@ class Filter_Collection {
*
*
* @param string|array $filters
* @param string|array $filters
* @param mixed $parameters
* @param mixed $parameters
* @return void
*/
*/
public
function
__construct
(
$filters
,
$parameters
=
null
)
public
function
__construct
(
$filters
,
$parameters
=
null
)
{
{
...
...
laravel/routing/route.php
View file @
62072e52
...
@@ -142,7 +142,7 @@ class Route {
...
@@ -142,7 +142,7 @@ class Route {
*
*
* If the route belongs to a bundle, the bundle's global filters are returned too.
* If the route belongs to a bundle, the bundle's global filters are returned too.
*
*
* @param string $
filter
* @param string $
event
* @return array
* @return array
*/
*/
protected
function
filters
(
$event
)
protected
function
filters
(
$event
)
...
...
laravel/routing/router.php
View file @
62072e52
...
@@ -254,8 +254,8 @@ class Router {
...
@@ -254,8 +254,8 @@ class Router {
/**
/**
* Locate the URI segment matching a controller name.
* Locate the URI segment matching a controller name.
*
*
* @param string $directory
* @param array $segments
* @param array $segments
* @param string $directory
* @return int
* @return int
*/
*/
protected
static
function
locate
(
$segments
,
$directory
)
protected
static
function
locate
(
$segments
,
$directory
)
...
...
laravel/session.php
View file @
62072e52
...
@@ -5,7 +5,7 @@ class Session {
...
@@ -5,7 +5,7 @@ class Session {
/**
/**
* The session singleton instance for the request.
* The session singleton instance for the request.
*
*
* @var Payload
* @var
Session\
Payload
*/
*/
public
static
$instance
;
public
static
$instance
;
...
@@ -31,7 +31,7 @@ class Session {
...
@@ -31,7 +31,7 @@ class Session {
* Create a new session driver instance.
* Create a new session driver instance.
*
*
* @param string $driver
* @param string $driver
* @return Driver
* @return
Session\Drivers\
Driver
*/
*/
public
static
function
factory
(
$driver
)
public
static
function
factory
(
$driver
)
{
{
...
@@ -71,7 +71,7 @@ class Session {
...
@@ -71,7 +71,7 @@ class Session {
* Session::instance()->put('name', 'Taylor');
* Session::instance()->put('name', 'Taylor');
* </code>
* </code>
*
*
* @return Payload
* @return
Session\
Payload
*/
*/
public
static
function
instance
()
public
static
function
instance
()
{
{
...
...
laravel/session/drivers/apc.php
View file @
62072e52
...
@@ -5,14 +5,14 @@ class APC implements Driver {
...
@@ -5,14 +5,14 @@ class APC implements Driver {
/**
/**
* The APC cache driver instance.
* The APC cache driver instance.
*
*
* @var Cache\Drivers\APC
* @var
Laravel\
Cache\Drivers\APC
*/
*/
private
$apc
;
private
$apc
;
/**
/**
* Create a new APC session driver instance.
* Create a new APC session driver instance.
*
*
* @param Cache\Drivers\APC $apc
* @param
Laravel\
Cache\Drivers\APC $apc
* @return void
* @return void
*/
*/
public
function
__construct
(
\Laravel\Cache\Drivers\APC
$apc
)
public
function
__construct
(
\Laravel\Cache\Drivers\APC
$apc
)
...
...
laravel/session/drivers/memcached.php
View file @
62072e52
...
@@ -5,14 +5,14 @@ class Memcached implements Driver {
...
@@ -5,14 +5,14 @@ class Memcached implements Driver {
/**
/**
* The Memcache cache driver instance.
* The Memcache cache driver instance.
*
*
* @var Cache\Drivers\Memcached
* @var
Laravel\
Cache\Drivers\Memcached
*/
*/
private
$memcached
;
private
$memcached
;
/**
/**
* Create a new Memcached session driver instance.
* Create a new Memcached session driver instance.
*
*
* @param Memcached $memcached
* @param
Laravel\Cache\Drivers\
Memcached $memcached
* @return void
* @return void
*/
*/
public
function
__construct
(
\Laravel\Cache\Drivers\Memcached
$memcached
)
public
function
__construct
(
\Laravel\Cache\Drivers\Memcached
$memcached
)
...
...
laravel/session/drivers/redis.php
View file @
62072e52
...
@@ -5,14 +5,14 @@ class Redis implements Driver {
...
@@ -5,14 +5,14 @@ class Redis implements Driver {
/**
/**
* The Redis cache driver instance.
* The Redis cache driver instance.
*
*
* @var Cache\Drivers\Redis
* @var
Laravel\
Cache\Drivers\Redis
*/
*/
protected
$redis
;
protected
$redis
;
/**
/**
* Create a new Redis session driver.
* Create a new Redis session driver.
*
*
* @param Cache\Drivers\Redis $redis
* @param
Laravel\
Cache\Drivers\Redis $redis
* @return void
* @return void
*/
*/
public
function
__construct
(
\Laravel\Cache\Drivers\Redis
$redis
)
public
function
__construct
(
\Laravel\Cache\Drivers\Redis
$redis
)
...
...
laravel/session/payload.php
View file @
62072e52
...
@@ -202,7 +202,7 @@ class Payload {
...
@@ -202,7 +202,7 @@ class Payload {
* Session::keep(array('name', 'email'));
* Session::keep(array('name', 'email'));
* </code>
* </code>
*
*
* @param string|array $key
* @param string|array $key
s
* @return void
* @return void
*/
*/
public
function
keep
(
$keys
)
public
function
keep
(
$keys
)
...
...
laravel/str.php
View file @
62072e52
...
@@ -154,6 +154,7 @@ class Str {
...
@@ -154,6 +154,7 @@ class Str {
* </code>
* </code>
*
*
* @param string $value
* @param string $value
* @param int $count
* @return string
* @return string
*/
*/
public
static
function
plural
(
$value
,
$count
=
2
)
public
static
function
plural
(
$value
,
$count
=
2
)
...
@@ -177,7 +178,7 @@ class Str {
...
@@ -177,7 +178,7 @@ class Str {
* </code>
* </code>
*
*
* @param string $value
* @param string $value
* @param int $
length
* @param int $
words
* @param string $end
* @param string $end
* @return string
* @return string
*/
*/
...
...
laravel/validator.php
View file @
62072e52
...
@@ -946,7 +946,7 @@ class Validator {
...
@@ -946,7 +946,7 @@ class Validator {
/**
/**
* Get the database connection for the Validator.
* Get the database connection for the Validator.
*
*
* @return Connection
* @return
Database\
Connection
*/
*/
protected
function
db
()
protected
function
db
()
{
{
...
...
laravel/view.php
View file @
62072e52
...
@@ -183,7 +183,7 @@ class View implements ArrayAccess {
...
@@ -183,7 +183,7 @@ class View implements ArrayAccess {
* </code>
* </code>
*
*
* @param string $view
* @param string $view
* @param Closure
* @param Closure
$composer
* @return void
* @return void
*/
*/
public
static
function
composer
(
$view
,
$composer
)
public
static
function
composer
(
$view
,
$composer
)
...
...
paths.php
View file @
62072e52
...
@@ -68,17 +68,28 @@ foreach ($paths as $name => $path)
...
@@ -68,17 +68,28 @@ foreach ($paths as $name => $path)
$GLOBALS
[
'laravel_paths'
][
$name
]
=
realpath
(
$path
)
.
DS
;
$GLOBALS
[
'laravel_paths'
][
$name
]
=
realpath
(
$path
)
.
DS
;
}
}
// --------------------------------------------------------------
/**
// Define a global path helper function.
* A global path helper function.
// --------------------------------------------------------------
*
* <code>
* $storage = path('storage');
* </code>
*
* @param string $path
* @return string
*/
function
path
(
$path
)
function
path
(
$path
)
{
{
return
$GLOBALS
[
'laravel_paths'
][
$path
];
return
$GLOBALS
[
'laravel_paths'
][
$path
];
}
}
// --------------------------------------------------------------
/**
// Define a global path setter function.
* A global path setter function.
// --------------------------------------------------------------
*
* @param string $path
* @param string $value
* @return void
*/
function
set_path
(
$path
,
$value
)
function
set_path
(
$path
,
$value
)
{
{
$GLOBALS
[
'laravel_paths'
][
$path
]
=
$value
;
$GLOBALS
[
'laravel_paths'
][
$path
]
=
$value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment