@@ -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 |
@@ -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 |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | public function __construct(Application $app) |
12 | 12 | { |
13 | - self::$app = $app; |
|
13 | + self::$app = $app; |
|
14 | 14 | |
15 | 15 | $this->defineErrorHandler(); |
16 | 16 | $this->defineExceptionHandler(); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | protected static function getApp() |
60 | 60 | { |
61 | - if(is_null(self::$app)) { |
|
61 | + if (is_null(self::$app)) { |
|
62 | 62 | self::$app = Application::getInstance(); |
63 | 63 | } |
64 | 64 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | protected static function defineRenderToUse($renderConfig) |
87 | 87 | { |
88 | - if($renderConfig['active'] === false) { |
|
88 | + if ($renderConfig['active'] === false) { |
|
89 | 89 | return false; |
90 | 90 | } |
91 | 91 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | return $renderConfig['cli']; |
94 | 94 | } |
95 | 95 | |
96 | - if(isset($renderConfig['default'])) { |
|
96 | + if (isset($renderConfig['default'])) { |
|
97 | 97 | return $renderConfig['default']; |
98 | 98 | } |
99 | 99 |
@@ -82,7 +82,7 @@ |
||
82 | 82 | * Recall ReadDirectory to read this directory |
83 | 83 | * This is to avoid having the recursion error |
84 | 84 | * |
85 | - * @param type $directory |
|
85 | + * @param string $directory |
|
86 | 86 | */ |
87 | 87 | protected function dirAction($directory) |
88 | 88 | { |