Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9cf1459a
Commit
9cf1459a
authored
Sep 18, 2014
by
Jennifer Hodgdon
Browse files
Issue
#2329703
by maximpodorov: Fix spelling in varous files
parent
c1442c5a
Changes
51
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Component/Datetime/DateTimePlus.php
View file @
9cf1459a
...
...
@@ -287,7 +287,7 @@ protected function prepareTime($time) {
* Prepares the input timezone value.
*
* Changes the timezone before trying to use it, if necessary.
* Most imporantly, makes sure there is a valid timezone
* Most impor
t
antly, makes sure there is a valid timezone
* object before moving further.
*
* @param mixed $timezone
...
...
core/lib/Drupal/Component/Gettext/PoStreamReader.php
View file @
9cf1459a
...
...
@@ -438,7 +438,7 @@ private function readLine() {
return
;
}
elseif
(
!
strncmp
(
"msgstr"
,
$line
,
6
))
{
// A string pair for an msgid
id
(with optional context).
// A string pair for an msgid (with optional context).
if
((
$this
->
_context
!=
'MSGID'
)
&&
(
$this
->
_context
!=
'MSGCTXT'
))
{
// Strings are only valid within an id or context scope.
...
...
core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php
View file @
9cf1459a
...
...
@@ -8,7 +8,7 @@
namespace
Drupal\Component\Plugin\Discovery
;
/**
* Interface for discovery comp
e
nents holding a cache of plugin definitions.
* Interface for discovery comp
o
nents holding a cache of plugin definitions.
*/
interface
CachedDiscoveryInterface
extends
DiscoveryInterface
{
...
...
core/lib/Drupal/Component/Transliteration/PHPTransliteration.php
View file @
9cf1459a
...
...
@@ -210,7 +210,7 @@ protected function readLanguageOverrides($langcode) {
* Reads in generic transliteration data for a bank of characters.
*
* The data is read in from a file named "x$bank.php" (with $bank in
* hex
i
decimal notation) in PHPTransliteration::$dataDirectory. These files
* hex
a
decimal notation) in PHPTransliteration::$dataDirectory. These files
* should set up a variable $bank containing an array whose numerical indices
* are the remaining two bytes of the character code, and whose values are the
* transliterations of these characters into US-ASCII. Note that the maximum
...
...
core/lib/Drupal/Component/Utility/OpCodeCache.php
View file @
9cf1459a
...
...
@@ -29,7 +29,7 @@ public static function invalidate($pathname) {
if
(
extension_loaded
(
'Zend OPcache'
))
{
opcache_invalidate
(
$pathname
,
TRUE
);
}
// If apcu extens
t
ion is enabled in PHP 5.5 or greater it emulates apc.
// If apcu extension is enabled in PHP 5.5 or greater it emulates apc.
// This is to provide an easy upgrade path if you are using apc's user
// caching however the emulation does not extend to opcode caching.
// Therefore we need to check if the function exists as well.
...
...
core/lib/Drupal/Core/Ajax/DataCommand.php
View file @
9cf1459a
...
...
@@ -40,7 +40,7 @@ class DataCommand implements CommandInterface {
protected
$name
;
/**
* The value of the data to be atached to elements matched by the selector.
* The value of the data to be at
t
ached to elements matched by the selector.
*
* The data is not limited to strings; it can be any format.
*
...
...
core/lib/Drupal/Core/Archiver/ArchiveTar.php
View file @
9cf1459a
...
...
@@ -118,7 +118,7 @@ function __construct($p_tarname, $p_compress = null)
if
(
$data
==
"
\37\213
"
)
{
$this
->
_compress
=
true
;
$this
->
_compress_type
=
'gz'
;
// No sure it's enough
t
for a magic code ....
// No sure it's enough for a magic code ....
}
elseif
(
$data
==
"BZ"
)
{
$this
->
_compress
=
true
;
$this
->
_compress_type
=
'bz2'
;
...
...
@@ -617,7 +617,7 @@ function setAttribute()
break
;
default
:
$this
->
_error
(
'Unknow attribute code '
.
$v_att_list
[
$i
]
.
''
);
$this
->
_error
(
'Unknow
n
attribute code '
.
$v_att_list
[
$i
]
.
''
);
return
false
;
}
...
...
@@ -1826,7 +1826,7 @@ function _dirCheck($p_dir)
/**
* Compress path by changing for example "/dir/foo/../bar" to "/dir/bar",
* rand emove double slashes.
* rand
r
emove double slashes.
*
* @param string $p_dir path to reduce
*
...
...
core/lib/Drupal/Core/Asset/CssCollectionRenderer.php
View file @
9cf1459a
...
...
@@ -68,11 +68,11 @@ public function render(array $css_assets) {
for
(
$i
=
0
;
$i
<
count
(
$css_assets_keys
);
$i
++
)
{
$css_asset
=
$css_assets
[
$css_assets_keys
[
$i
]];
switch
(
$css_asset
[
'type'
])
{
// For file items, there are three possibilites.
// For file items, there are three possibilit
i
es.
// - There are up to 31 CSS assets on the page (some of which may be
// aggregated). In this case, output a LINK tag for file CSS assets.
// - There are more than 31 CSS assets on the page, yet we must stay
// below IE<10's limit of 31 total CSS inclus
s
ion tags, we handle this
// below IE<10's limit of 31 total CSS inclusion tags, we handle this
// in two ways:
// - file CSS assets that are not eligible for aggregation (their
// 'preprocess' flag has been set to FALSE): in this case, output a
...
...
core/lib/Drupal/Core/Authentication/AuthenticationManager.php
View file @
9cf1459a
...
...
@@ -89,7 +89,7 @@ public function authenticate(Request $request) {
$account
=
NULL
;
// Iterate the avail
l
able providers.
// Iterate the available providers.
foreach
(
$this
->
getSortedProviders
()
as
$provider_id
=>
$provider
)
{
if
(
$provider
->
applies
(
$request
))
{
// Try to authenticate with this provider, skipping all others.
...
...
core/lib/Drupal/Core/Block/BlockBase.php
View file @
9cf1459a
...
...
@@ -355,7 +355,7 @@ public function blockForm($form, FormStateInterface $form_state) {
* {@inheritdoc}
*
* Most block plugins should not override this method. To add validation
* for a specific block type, override BlockBase::blockVal
d
iate().
* for a specific block type, override BlockBase::blockVali
d
ate().
*
* @see \Drupal\Core\Block\BlockBase::blockValidate()
*/
...
...
core/lib/Drupal/Core/Block/BlockPluginInterface.php
View file @
9cf1459a
...
...
@@ -21,7 +21,7 @@
*
* @todo Add detailed documentation here explaining the block system's
* architecture and the relationships between the various objects, including
* brif references to the important components that are not coupled to the
* bri
e
f references to the important components that are not coupled to the
* interface.
*
* @ingroup block_api
...
...
core/lib/Drupal/Core/Cache/CacheCollector.php
View file @
9cf1459a
...
...
@@ -200,10 +200,10 @@ protected function persist($key, $persist = TRUE) {
* Resolves a cache miss.
*
* When an offset is not found in the object, this is treated as a cache
* miss. This method allows classes using this implementatio to look up the
* miss. This method allows classes using this implementatio
n
to look up the
* actual value and allow it to be cached.
*
* @param sring $key
* @param s
t
ring $key
* The offset that was requested.
*
* @return mixed
...
...
core/lib/Drupal/Core/Cache/CacheContexts.php
View file @
9cf1459a
...
...
@@ -99,13 +99,13 @@ public function convertTokensToKeys(array $keys) {
}
/**
* Provides the string representaton of a cache context.
* Provides the string representat
i
on of a cache context.
*
* @param string $context
* A cache context token of an available cache context service.
*
* @return string
* The string representaton of a cache context.
* The string representat
i
on of a cache context.
*/
protected
function
getContext
(
$context
)
{
return
$this
->
getService
(
$context
)
->
getContext
();
...
...
core/lib/Drupal/Core/Cache/ChainedFastBackend.php
View file @
9cf1459a
...
...
@@ -16,7 +16,7 @@
* single web node, and will not require a network round trip to fetch a cache
* item. The fast backend will also typically be inconsistent (will only see
* changes from one web node). The slower backend will be something like Mysql,
* Mecached or Redis, and will be used by all web nodes, thus making it
* Me
m
cached or Redis, and will be used by all web nodes, thus making it
* consistent, but also require a network round trip for each cache get.
*
* In addition to being useful for sites running on multiple web nodes, this
...
...
core/lib/Drupal/Core/Cache/DatabaseBackend.php
View file @
9cf1459a
...
...
@@ -220,7 +220,7 @@ public function setMultiple(array $items) {
$transaction
=
$this
->
connection
->
startTransaction
();
try
{
// Delete all items first so we can do one insert. Rather than mul
i
tple
// Delete all items first so we can do one insert. Rather than mult
i
ple
// merge queries.
$this
->
deleteMultiple
(
array_keys
(
$items
));
...
...
@@ -361,7 +361,7 @@ public function invalidate($cid) {
}
/**
* Implements Drupal\Core\Cache\CacheBackendInterface::invalideMultiple().
* Implements Drupal\Core\Cache\CacheBackendInterface::invalid
at
eMultiple().
*/
public
function
invalidateMultiple
(
array
$cids
)
{
$cids
=
array_values
(
array_map
(
array
(
$this
,
'normalizeCid'
),
$cids
));
...
...
core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
View file @
9cf1459a
...
...
@@ -59,7 +59,7 @@ public function setSyncing($status);
* - Status does not affect the loading of entities. I.e. Disabling
* configuration entities should only have UI/access implications.
* - It should only take effect when a 'status' key is explicitly declared
* in the entity_keys info of a configuration entitys annotation data.
* in the entity_keys info of a configuration entity
'
s annotation data.
* - Each entity implementation (entity/controller) is responsible for
* checking and managing the status.
*
...
...
core/lib/Drupal/Core/Config/FileStorage.php
View file @
9cf1459a
...
...
@@ -139,7 +139,7 @@ public function write($name, array $data) {
$target
=
$this
->
getFilePath
(
$name
);
$status
=
@
file_put_contents
(
$target
,
$data
);
if
(
$status
===
FALSE
)
{
// Try to make sure the directory exists and try witing again.
// Try to make sure the directory exists and try w
r
iting again.
$this
->
ensureStorage
();
$status
=
@
file_put_contents
(
$target
,
$data
);
}
...
...
core/lib/Drupal/Core/Config/StorageComparer.php
View file @
9cf1459a
...
...
@@ -185,7 +185,7 @@ protected function addChangeList($collection, $op, array $changes, array $sort_o
$this
->
changelist
[
$collection
][
$op
]
=
array_merge
(
$this
->
changelist
[
$collection
][
$op
],
$changes
);
if
(
isset
(
$sort_order
))
{
$count
=
count
(
$this
->
changelist
[
$collection
][
$op
]);
// Sort the changlist in the same order as the $sort_order array and
// Sort the chang
e
list in the same order as the $sort_order array and
// ensure the array is keyed from 0.
$this
->
changelist
[
$collection
][
$op
]
=
array_values
(
array_intersect
(
$sort_order
,
$this
->
changelist
[
$collection
][
$op
]));
if
(
$count
!=
count
(
$this
->
changelist
[
$collection
][
$op
]))
{
...
...
core/lib/Drupal/Core/Config/TypedConfigManagerInterface.php
View file @
9cf1459a
...
...
@@ -80,7 +80,7 @@ public function create(DataDefinitionInterface $definition, $value, $name = NULL
* The base type definition array, for which a data definition should be
* created.
* @param $value
* Optional value of the configura
i
ton element.
* Optional value of the configurat
i
on element.
* @param string $name
* Optional name of the configuration element.
* @param object $parent
...
...
core/lib/Drupal/Core/Controller/HtmlFormController.php
View file @
9cf1459a
...
...
@@ -2,7 +2,7 @@
/**
* @file
* Contains \Drupal\Core\Controler\HtmlFormController.
* Contains \Drupal\Core\Control
l
er\HtmlFormController.
*/
namespace
Drupal\Core\Controller
;
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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