Skip to content

Commit 42302ed

Browse files
e1himselfGromNaN
authored andcommitted
Drop unnecessary spaces added
1 parent 2a80c07 commit 42302ed

File tree

58 files changed

+169
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+169
-170
lines changed

lib/addon/sfPager.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ abstract public function init();
6262
* @return array
6363
*/
6464
abstract public function getResults();
65-
65+
6666
/**
6767
* Returns an object at a certain offset.
6868
*

lib/autoload/sfAutoload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static public function getInstance()
4747

4848
return self::$instance;
4949
}
50-
50+
5151
/**
5252
* Register sfAutoload in spl autoloader.
5353
*

lib/autoload/sfCoreAutoload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static public function getInstance()
5353

5454
return self::$instance;
5555
}
56-
56+
5757
/**
5858
* Register sfCoreAutoload in spl autoloader.
5959
*

lib/autoload/sfSimpleAutoload.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static public function getInstance($cacheFile = null)
6060

6161
return self::$instance;
6262
}
63-
63+
6464
/**
6565
* Register sfSimpleAutoload in spl autoloader.
6666
*

lib/cache/sfAPCCache.class.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
class sfAPCCache extends sfCache
2020
{
2121
protected $enabled;
22-
22+
2323
/**
2424
* Initializes this sfCache instance.
2525
*
@@ -36,7 +36,7 @@ public function initialize($options = array())
3636

3737
$this->enabled = function_exists('apc_store') && ini_get('apc.enabled');
3838
}
39-
39+
4040
/**
4141
* @see sfCache
4242
* @inheritdoc
@@ -52,7 +52,7 @@ public function get($key, $default = null)
5252

5353
return $has ? $value : $default;
5454
}
55-
55+
5656
/**
5757
* @see sfCache
5858
* @inheritdoc
@@ -85,8 +85,8 @@ private function fetch($key, &$success)
8585

8686
return $value;
8787
}
88-
89-
88+
89+
9090
/**
9191
* @see sfCache
9292
* @inheritdoc
@@ -100,7 +100,7 @@ public function set($key, $data, $lifetime = null)
100100

101101
return apc_store($this->getOption('prefix').$key, $data, $this->getLifetime($lifetime));
102102
}
103-
103+
104104
/**
105105
* @see sfCache
106106
* @inheritdoc
@@ -114,7 +114,7 @@ public function remove($key)
114114

115115
return apc_delete($this->getOption('prefix').$key);
116116
}
117-
117+
118118
/**
119119
* @see sfCache
120120
* @inheritdoc
@@ -131,7 +131,7 @@ public function clean($mode = sfCache::ALL)
131131
return apc_clear_cache('user');
132132
}
133133
}
134-
134+
135135
/**
136136
* @see sfCache
137137
* @inheritdoc
@@ -145,7 +145,7 @@ public function getLastModified($key)
145145

146146
return 0;
147147
}
148-
148+
149149
/**
150150
* @see sfCache
151151
* @inheritdoc
@@ -159,7 +159,7 @@ public function getTimeout($key)
159159

160160
return 0;
161161
}
162-
162+
163163
/**
164164
* @see sfCache
165165
* @inheritdoc

lib/cache/sfCache.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class sfCache
2424

2525
protected
2626
$options = array();
27-
27+
2828
/**
2929
* Class constructor.
3030
*
@@ -173,7 +173,7 @@ public function getLifetime($lifetime)
173173
{
174174
return null === $lifetime ? $this->getOption('lifetime') : $lifetime;
175175
}
176-
176+
177177
/**
178178
* Gets the backend object.
179179
*
@@ -198,7 +198,7 @@ public function getOption($name, $default = null)
198198
{
199199
return isset($this->options[$name]) ? $this->options[$name] : $default;
200200
}
201-
201+
202202
/**
203203
* Sets an option value.
204204
*

lib/cache/sfEAcceleratorCache.class.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function initialize($options = array())
4040
throw new sfInitializationException('You must have EAccelerator installed and enabled to use sfEAcceleratorCache class (or perhaps you forgot to add --with-eaccelerator-shared-memory when installing).');
4141
}
4242
}
43-
43+
4444
/**
4545
* @see sfCache
4646
*
@@ -55,7 +55,7 @@ public function get($key, $default = null)
5555

5656
return null === $value ? $default : $value;
5757
}
58-
58+
5959
/**
6060
* @see sfCache
6161
*
@@ -67,7 +67,7 @@ public function has($key)
6767
{
6868
return null !== eaccelerator_get($this->getOption('prefix'.$key));
6969
}
70-
70+
7171
/**
7272
* @see sfCache
7373
*
@@ -81,7 +81,7 @@ public function set($key, $data, $lifetime = null)
8181
{
8282
return eaccelerator_put($this->getOption('prefix').$key, $data, $this->getLifetime($lifetime));
8383
}
84-
84+
8585
/**
8686
* @see sfCache
8787
* @inheritdoc
@@ -90,7 +90,7 @@ public function remove($key)
9090
{
9191
return eaccelerator_rm($this->getOption('prefix').$key);
9292
}
93-
93+
9494
/**
9595
* @see sfCache
9696
* @inheritdoc
@@ -112,7 +112,7 @@ public function removePattern($pattern)
112112
}
113113
}
114114
}
115-
115+
116116
/**
117117
* @see sfCache
118118
* @inheritdoc
@@ -143,7 +143,7 @@ public function clean($mode = sfCache::ALL)
143143

144144
return true;
145145
}
146-
146+
147147
/**
148148
* @see sfCache
149149
* @inheritdoc
@@ -157,7 +157,7 @@ public function getLastModified($key)
157157

158158
return 0;
159159
}
160-
160+
161161
/**
162162
* @see sfCache
163163
* @inheritdoc

lib/cache/sfFileCache.class.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class sfFileCache extends sfCache
2323
const READ_LAST_MODIFIED = 4;
2424

2525
const EXTENSION = '.cache';
26-
26+
2727
/**
2828
* Initializes this sfCache instance.
2929
*
@@ -47,7 +47,7 @@ public function initialize($options = array())
4747

4848
$this->setcache_dir($this->getOption('cache_dir'));
4949
}
50-
50+
5151
/**
5252
* @see sfCache
5353
* @inheritdoc
@@ -69,7 +69,7 @@ public function get($key, $default = null)
6969

7070
return $data[self::READ_DATA];
7171
}
72-
72+
7373
/**
7474
* @see sfCache
7575
* @inheritdoc
@@ -80,7 +80,7 @@ public function has($key)
8080

8181
return is_file($path) && $this->isValid($path);
8282
}
83-
83+
8484
/**
8585
* @see sfCache
8686
* @inheritdoc
@@ -94,7 +94,7 @@ public function set($key, $data, $lifetime = null)
9494

9595
return $this->write($this->getFilePath($key), $data, time() + $this->getLifetime($lifetime));
9696
}
97-
97+
9898
/**
9999
* @see sfCache
100100
* @inheritdoc
@@ -103,7 +103,7 @@ public function remove($key)
103103
{
104104
return @unlink($this->getFilePath($key));
105105
}
106-
106+
107107
/**
108108
* @see sfCache
109109
* @inheritdoc
@@ -141,7 +141,7 @@ public function removePattern($pattern)
141141
}
142142
}
143143
}
144-
144+
145145
/**
146146
* @see sfCache
147147
* @inheritdoc
@@ -164,7 +164,7 @@ public function clean($mode = sfCache::ALL)
164164

165165
return $result;
166166
}
167-
167+
168168
/**
169169
* @see sfCache
170170
* @inheritdoc
@@ -182,7 +182,7 @@ public function getTimeout($key)
182182

183183
return $data[self::READ_TIMEOUT] < time() ? 0 : $data[self::READ_TIMEOUT];
184184
}
185-
185+
186186
/**
187187
* @see sfCache
188188
* @inheritdoc

lib/cache/sfFunctionCache.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(sfCache $cache)
2929
{
3030
$this->cache = $cache;
3131
}
32-
32+
3333
/**
3434
* Calls a cacheable function or method (or not if there is already a cache for it).
3535
*

lib/cache/sfMemcacheCache.class.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class sfMemcacheCache extends sfCache
2020
{
2121
/** @var Memcache */
2222
protected $memcache = null;
23-
23+
2424
/**
2525
* Initializes this sfCache instance.
2626
*
@@ -86,7 +86,7 @@ public function getBackend()
8686
{
8787
return $this->memcache;
8888
}
89-
89+
9090
/**
9191
* @see sfCache
9292
* @inheritdoc
@@ -97,7 +97,7 @@ public function get($key, $default = null)
9797

9898
return (false === $value && false === $this->getMetadata($key)) ? $default : $value;
9999
}
100-
100+
101101
/**
102102
* @see sfCache
103103
* @inheritdoc
@@ -112,7 +112,7 @@ public function has($key)
112112

113113
return true;
114114
}
115-
115+
116116
/**
117117
* @see sfCache
118118
* @inheritdoc
@@ -137,7 +137,7 @@ public function set($key, $data, $lifetime = null)
137137

138138
return $this->memcache->set($this->getOption('prefix').$key, $data, false, time() + $lifetime);
139139
}
140-
140+
141141
/**
142142
* @see sfCache
143143
* @inheritdoc
@@ -152,7 +152,7 @@ public function remove($key)
152152
}
153153
return $this->memcache->delete($this->getOption('prefix').$key, 0);
154154
}
155-
155+
156156
/**
157157
* @see sfCache
158158
* @inheritdoc
@@ -164,7 +164,7 @@ public function clean($mode = sfCache::ALL)
164164
return $this->memcache->flush();
165165
}
166166
}
167-
167+
168168
/**
169169
* @see sfCache
170170
* @inheritdoc
@@ -178,7 +178,7 @@ public function getLastModified($key)
178178

179179
return $retval['lastModified'];
180180
}
181-
181+
182182
/**
183183
* @see sfCache
184184
* @inheritdoc
@@ -192,7 +192,7 @@ public function getTimeout($key)
192192

193193
return $retval['timeout'];
194194
}
195-
195+
196196
/**
197197
* @see sfCache
198198
* @inheritdoc
@@ -215,7 +215,7 @@ public function removePattern($pattern)
215215
}
216216
}
217217
}
218-
218+
219219
/**
220220
* @see sfCache
221221
* @inheritdoc

0 commit comments

Comments
 (0)