@@ -153,7 +153,7 @@ |
||
153 | 153 | $runnerFile = $this->getRunnerFile(); |
154 | 154 | |
155 | 155 | $initFunction = function() use ($runnerFile) { |
156 | - if($runnerFile === null) { |
|
156 | + if ($runnerFile === null) { |
|
157 | 157 | return; |
158 | 158 | } |
159 | 159 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | protected static function getApp() |
28 | 28 | { |
29 | - if(is_null(self::$app)) { |
|
29 | + if (is_null(self::$app)) { |
|
30 | 30 | self::$app = Application::getInstance(); |
31 | 31 | } |
32 | 32 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $renderConfig['cli']; |
58 | 58 | } |
59 | 59 | |
60 | - if(isset($renderConfig['default'])) { |
|
60 | + if (isset($renderConfig['default'])) { |
|
61 | 61 | return $renderConfig['default']; |
62 | 62 | } |
63 | 63 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | ); |
63 | 63 | } |
64 | 64 | |
65 | - if(!$this->ifExists($key)) { |
|
65 | + if (!$this->ifExists($key)) { |
|
66 | 66 | return false; |
67 | 67 | } |
68 | 68 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | public function __construct(\BFW\Application $app) |
14 | 14 | { |
15 | - if(PHP_VERSION_ID > 70000) { |
|
15 | + if (PHP_VERSION_ID > 70000) { |
|
16 | 16 | throw new Exception( |
17 | 17 | 'PHP Memcache Extension not supported for PHP 7' |
18 | 18 | ); |
@@ -38,11 +38,11 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $methodName = 'connect'; |
41 | - if($persistent === true) { |
|
41 | + if ($persistent === true) { |
|
42 | 42 | $methodName = 'pconnect'; |
43 | 43 | } |
44 | 44 | |
45 | - if($timeout !== null) { |
|
45 | + if ($timeout !== null) { |
|
46 | 46 | $this->{$methodName}($host, $port, $timeout); |
47 | 47 | return; |
48 | 48 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $this->app = $app; |
18 | 18 | $this->config = $this->app->getConfig('memcached'); |
19 | 19 | |
20 | - if(!empty($this->config['persistentId'])) { |
|
20 | + if (!empty($this->config['persistentId'])) { |
|
21 | 21 | parent::__construct($this->config['persistentId']); |
22 | 22 | } else { |
23 | 23 | parent::__construct(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | //It should not be to readd the server |
45 | 45 | //(for persistent mode particulary) |
46 | - if(in_array($host.':'.$port, $serversList)) { |
|
46 | + if (in_array($host.':'.$port, $serversList)) { |
|
47 | 47 | continue; |
48 | 48 | } |
49 | 49 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | public static function create($cstName, $cstValue) |
10 | 10 | { |
11 | - if(defined($cstName)) { |
|
11 | + if (defined($cstName)) { |
|
12 | 12 | throw new Exception('Constant '.$cstName.' already defined.'); |
13 | 13 | } |
14 | 14 |