Skip to content

Commit

Permalink
Changed url to URL where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Crowe committed Oct 8, 2013
1 parent 7b57df5 commit c1dd0e4
Show file tree
Hide file tree
Showing 25 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion app/Config/core.php
Expand Up @@ -98,7 +98,7 @@
*
* And uncomment the App.baseUrl below. But keep in mind
* that plugin assets such as images, CSS and JavaScript files
* will not work without url rewriting!
* will not work without URL rewriting!
* To work around this issue you should either symlink or copy
* the plugin assets into you app's webroot directory. This is
* recommended even when you are using mod_rewrite. Handling static
Expand Down
4 changes: 2 additions & 2 deletions app/Config/routes.php
Expand Up @@ -4,7 +4,7 @@
*
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (functions).
* different URLs to chosen controllers and their actions (functions).
*
* PHP 5
*
Expand All @@ -28,7 +28,7 @@
*/
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
/**
* ...and connect the rest of 'Pages' controller's urls.
* ...and connect the rest of 'Pages' controller's URLs.
*/
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));

Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Console/Command/ConsoleShell.php
Expand Up @@ -454,7 +454,7 @@ protected function _routesShow() {
}

/**
* Parse an array url and show the equivalent url as a string
* Parse an array URL and show the equivalent URL as a string
*
* @param mixed $command
* @return void
Expand All @@ -470,7 +470,7 @@ protected function _routeToString($command) {
}

/**
* Parse a string url and show as an array
* Parse a string URL and show as an array
*
* @param mixed $command
* @return void
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Console/Templates/skel/webroot/test.php
Expand Up @@ -83,7 +83,7 @@
}

if (Configure::read('debug') < 1) {
throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.'));
throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this URL.'));
}

require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Controller/Component/AuthComponent.php
Expand Up @@ -189,7 +189,7 @@ class AuthComponent extends Component {
* Normally, if a user is redirected to the $loginAction page, the location they
* were redirected from will be stored in the session so that they can be
* redirected back after a successful login. If this session value is not
* set, redirectUrl() method will return the url specified in $loginRedirect.
* set, redirectUrl() method will return the URL specified in $loginRedirect.
*
* @var mixed
* @link http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#AuthComponent::$loginRedirect
Expand Down Expand Up @@ -375,7 +375,7 @@ protected function _unauthenticated(Controller $controller) {
}

/**
* Normalizes $loginAction and checks if current request url is same as login action.
* Normalizes $loginAction and checks if current request URL is same as login action.
*
* @param Controller $controller A reference to the controller object.
* @return boolean True if current action is login action else false.
Expand Down
4 changes: 2 additions & 2 deletions lib/Cake/Controller/Controller.php
Expand Up @@ -1105,7 +1105,7 @@ public function beforeRender() {
*
* If this method returns false the controller will not continue on to redirect the request.
* The $url, $status and $exit variables have same meaning as for the controller's method. You can also
* return a string which will be interpreted as the url to redirect to or return associative array with
* return a string which will be interpreted as the URL to redirect to or return associative array with
* key 'url' and optionally 'status' and 'exit'.
*
* @param string|array $url A string or array-based URL pointing to another location within the app,
Expand All @@ -1114,7 +1114,7 @@ public function beforeRender() {
* @param boolean $exit If true, exit() will be called after the redirect
* @return mixed
* false to stop redirection event,
* string controllers a new redirection url or
* string controllers a new redirection URL or
* array with the keys url, status and exit to be used by the redirect method.
* @link http://book.cakephp.org/2.0/en/controllers.html#request-life-cycle-callbacks
*/
Expand Down
10 changes: 5 additions & 5 deletions lib/Cake/Network/CakeRequest.php
Expand Up @@ -32,7 +32,7 @@
class CakeRequest implements ArrayAccess {

/**
* Array of parameters parsed from the url.
* Array of parameters parsed from the URL.
*
* @var array
*/
Expand Down Expand Up @@ -62,14 +62,14 @@ class CakeRequest implements ArrayAccess {
public $query = array();

/**
* The url string used for the request.
* The URL string used for the request.
*
* @var string
*/
public $url;

/**
* Base url path.
* Base URL path.
*
* @var string
*/
Expand Down Expand Up @@ -127,7 +127,7 @@ class CakeRequest implements ArrayAccess {
/**
* Constructor
*
* @param string $url Trimmed url string to use. Should not contain the application base path.
* @param string $url Trimmed URL string to use. Should not contain the application base path.
* @param boolean $parseEnvironment Set to false to not auto parse the environment. ie. GET, POST and FILES.
*/
public function __construct($url = null, $parseEnvironment = true) {
Expand Down Expand Up @@ -817,7 +817,7 @@ protected static function _parseAcceptWithQualifier($header) {

/**
* Provides a read accessor for `$this->query`. Allows you
* to use a syntax similar to `CakeSession` for reading url query data.
* to use a syntax similar to `CakeSession` for reading URL query data.
*
* @param string $name Query string variable name
* @return mixed The value being read
Expand Down
14 changes: 7 additions & 7 deletions lib/Cake/Routing/Router.php
Expand Up @@ -372,7 +372,7 @@ public static function connect($route, $defaults = array(), $options = array())
* routes that end in `*` are greedy. As you can remap URLs and not loose any passed/named args.
*
* @param string $route A string describing the template of the route
* @param array $url An URL to redirect to. Can be a string or a Cake array-based URL
* @param array $url A URL to redirect to. Can be a string or a Cake array-based URL
* @param array $options An array matching the named elements in the route to regular expressions which that
* element should match. Also contains additional parameters such as which routed parameters should be
* shifted into the passed arguments. As well as supplying patterns for routing parameters.
Expand Down Expand Up @@ -542,7 +542,7 @@ public static function prefixes() {
}

/**
* Parses given URL string. Returns 'routing' parameters for that url.
* Parses given URL string. Returns 'routing' parameters for that URL.
*
* @param string $url URL to be parsed
* @return array Parsed elements from URL
Expand Down Expand Up @@ -619,7 +619,7 @@ protected static function _parseExtension($url) {

/**
* Takes parameter and path information back from the Dispatcher, sets these
* parameters as the current request parameters that are merged with url arrays
* parameters as the current request parameters that are merged with URL arrays
* created later in the request.
*
* Nested requests will create a stack of requests. You can remove requests using
Expand Down Expand Up @@ -767,7 +767,7 @@ public static function promote($which = null) {
*
* There are a few 'special' parameters that can change the final URL string that is generated
*
* - `base` - Set to false to remove the base path from the generated url. If your application
* - `base` - Set to false to remove the base path from the generated URL. If your application
* is not in the root directory, this can be used to generate URLs that are 'cake relative'.
* cake relative URLs are required when using requestAction.
* - `?` - Takes an array of query string parameters
Expand Down Expand Up @@ -906,8 +906,8 @@ public static function url($url = null, $full = false) {
}

/**
* Sets the full base url that will be used as a prefix for generating
* fully qualified URLs for this application. If not parameters are passed,
* Sets the full base URL that will be used as a prefix for generating
* fully qualified URLs for this application. If no parameters are passed,
* the currently configured value is returned.
*
* ## Note:
Expand Down Expand Up @@ -1139,7 +1139,7 @@ public static function currentRoute() {
*
* @param string $base Base URL
* @param string $plugin Plugin name
* @return string base url with plugin name removed if present
* @return string base URL with plugin name removed if present
*/
public static function stripPlugin($base, $plugin = null) {
if ($plugin) {
Expand Down
Expand Up @@ -1205,7 +1205,7 @@ public function testComponentSettings() {
}

/**
* test that logout deletes the session variables. and returns the correct url
* test that logout deletes the session variables. and returns the correct URL
*
* @return void
*/
Expand Down
Expand Up @@ -449,7 +449,7 @@ public function testNonAjaxRedirect() {
}

/**
* test that redirects with ajax and no url don't do anything.
* test that redirects with ajax and no URL don't do anything.
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -255,7 +255,7 @@ public function testAllowSimulatedFields() {
/**
* test that Caches are getting cleared on save().
* ensure that both inflections of controller names are getting cleared
* as url for controller could be either overallFavorites/index or overall_favorites/index
* as URL for controller could be either overallFavorites/index or overall_favorites/index
*
* @return void
*/
Expand Down
8 changes: 4 additions & 4 deletions lib/Cake/Test/Case/Network/CakeRequestTest.php
Expand Up @@ -127,7 +127,7 @@ public function testConstructionGetParsing() {
}

/**
* Test that querystring args provided in the url string are parsed.
* Test that querystring args provided in the URL string are parsed.
*
* @return void
*/
Expand Down Expand Up @@ -1290,8 +1290,8 @@ public function testBaseUrlwithModRewriteAlias() {
}

/**
* Test base, webroot, url and here parsing when there is url rewriting but
* CakePHP gets called with index.php in url nonetheless.
* Test base, webroot, URL and here parsing when there is URL rewriting but
* CakePHP gets called with index.php in URL nonetheless.
*
* Tests uri with
* - index.php/
Expand Down Expand Up @@ -1354,7 +1354,7 @@ public function testBaseUrlWithModRewriteAndIndexPhp() {
}

/**
* Test base, webroot, and url parsing when there is no url rewriting
* Test base, webroot, and URL parsing when there is no URL rewriting
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php
Expand Up @@ -129,7 +129,7 @@ public function testNotModified() {
}

/**
* Test that no exceptions are thrown for //index.php type urls.
* Test that no exceptions are thrown for //index.php type URLs.
*
* @return void
*/
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/Routing/RouterTest.php
Expand Up @@ -652,7 +652,7 @@ public function testUrlGenerationWithRegexQualifiedParams() {
}

/**
* Test url generation with an admin prefix
* Test URL generation with an admin prefix
*
* @return void
*/
Expand Down Expand Up @@ -1583,7 +1583,7 @@ public function testNamedArgsUrlParsing() {
}

/**
* test url generation with legacy (1.2) style prefix routes.
* Test URL generation with legacy (1.2) style prefix routes.
*
* @return void
* @see testUrlGenerationWithAutoPrefixes
Expand Down Expand Up @@ -2556,7 +2556,7 @@ public function testUrlWithRequestAction() {
}

/**
* test that a route object returning a full url is not modified.
* test that a route object returning a full URL is not modified.
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/View/Helper/CacheHelperTest.php
Expand Up @@ -515,7 +515,7 @@ public function testCacheWithCustomRoutes() {
*
* This test verifies view cache is created correctly when the app name is contained in part of the controller name.
* (webapp Name) base name is 'cache' controller is 'cacheTest' action is 'cache_name'
* apps url would look something like http://localhost/cache/cacheTest/cache_name
* apps URL would look something like http://localhost/cache/cacheTest/cache_name
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/View/Helper/FormHelperTest.php
Expand Up @@ -7761,7 +7761,7 @@ public function testCreateWithAcceptCharset() {
}

/**
* Test base form url when url param is passed with multiple parameters (&)
* Test base form URL when url param is passed with multiple parameters (&)
*
*/
public function testCreateQuerystringrequest() {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/View/HelperTest.php
Expand Up @@ -557,7 +557,7 @@ public function testValueHabtmKeys() {
}

/**
* Ensure HTML escaping of url params. So link addresses are valid and not exploited
* Ensure HTML escaping of URL params. So link addresses are valid and not exploited
*
* @return void
*/
Expand Down
Expand Up @@ -44,7 +44,7 @@ public function add() {
}

/**
* check url params
* check URL params
*
*/
public function url_var() {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
Expand Up @@ -191,7 +191,7 @@ public function setParams($params) {
}

/**
* Parse url params into a 'request'
* Parse URL params into a 'request'
*
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Reporter/CakeBaseReporter.php
Expand Up @@ -111,7 +111,7 @@ public function paintTestMenu() {
/**
* Get the baseUrl if one is available.
*
* @return string The base url for the request.
* @return string The base URL for the request.
*/
public function baseUrl() {
if (!empty($_SERVER['PHP_SELF'])) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/TestSuite/Reporter/CakeTextReporter.php
Expand Up @@ -141,7 +141,7 @@ public function paintFormattedMessage($message) {

/**
* Generate a test case list in plain text.
* Creates as series of url's for tests that can be run.
* Creates as series of URLs for tests that can be run.
* One case per line.
*
* @return void
Expand Down
14 changes: 7 additions & 7 deletions lib/Cake/View/Helper.php
Expand Up @@ -246,7 +246,7 @@ public function __set($name, $value) {
* Returns an URL pointing at the provided parameters.
*
* @param string|array $url Either a relative string url like `/products/view/23` or
* an array of url parameters. Using an array for URLs will allow you to leverage
* an array of URL parameters. Using an array for URLs will allow you to leverage
* the reverse routing features of CakePHP.
* @param boolean $full If true, the full base URL will be prepended to the result
* @return string Full translated URL with base path.
Expand Down Expand Up @@ -293,16 +293,16 @@ public function webroot($file) {
}

/**
* Generate url for given asset file. Depending on options passed provides full url with domain name.
* Generate URL for given asset file. Depending on options passed provides full URL with domain name.
* Also calls Helper::assetTimestamp() to add timestamp to local files
*
* @param string|array Path string or url array
* @param string|array Path string or URL array
* @param array $options Options array. Possible keys:
* `fullBase` Return full url with domain name
* `fullBase` Return full URL with domain name
* `pathPrefix` Path prefix for relative URLs
* `ext` Asset extension to append
* `plugin` False value will prevent parsing path as a plugin
* @return string Generated url
* @return string Generated URL
*/
public function assetUrl($path, $options = array()) {
if (is_array($path)) {
Expand Down Expand Up @@ -341,8 +341,8 @@ public function assetUrl($path, $options = array()) {
/**
* Encodes an URL for use in HTML attributes.
*
* @param string $url The url to encode.
* @return string The url encoded for both URL & HTML contexts.
* @param string $url The URL to encode.
* @return string The URL encoded for both URL & HTML contexts.
*/
protected function _encodeUrl($url) {
$path = parse_url($url, PHP_URL_PATH);
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1721,7 +1721,7 @@ public function postButton($title, $url, $options = array()) {
}

/**
* Creates an HTML link, but access the url using the method you specify (defaults to POST).
* Creates an HTML link, but access the URL using the method you specify (defaults to POST).
* Requires javascript to be enabled in browser.
*
* This method creates a `<form>` element. So do not use this method inside an existing form.
Expand Down

0 comments on commit c1dd0e4

Please sign in to comment.