@@ -148,7 +148,7 @@ |
||
148 | 148 | 'app_id' => $this->config['app_id'], |
149 | 149 | 'secret' => $this->config['secret'], |
150 | 150 | ], |
151 | - function ($title, $message) { |
|
151 | + function($title, $message) { |
|
152 | 152 | if (version_compare(PHP_VERSION, '5.4', '>=')) { |
153 | 153 | $this->debugSection($title, $message); |
154 | 154 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $this->name = $name; |
17 | 17 | $this->actor = $actor; |
18 | 18 | |
19 | - $this->multiSessionModules = array_filter($modules, function ($m) { |
|
19 | + $this->multiSessionModules = array_filter($modules, function($m) { |
|
20 | 20 | return $m instanceof Interfaces\MultiSession; |
21 | 21 | }); |
22 | 22 |
@@ -59,7 +59,6 @@ |
||
59 | 59 | * return strpos(' ', $value) !== false; |
60 | 60 | * }); |
61 | 61 | * // => use it as 'string:slug' |
62 | - |
|
63 | 62 | * |
64 | 63 | * // add custom function to matcher with `len($val)` syntax |
65 | 64 | * // parameter matching patterns should be valid regex and start with `/` char |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | foreach ($this->jsonArray as $array) { |
103 | 103 | $res = $this->typeComparison($array, $jsonType); |
104 | 104 | if ($res !== true) { |
105 | - $msg .= "\n" . $res; |
|
105 | + $msg .= "\n".$res; |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | if ($msg) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | { |
118 | 118 | foreach ($jsonType as $key => $type) { |
119 | 119 | if (!array_key_exists($key, $data)) { |
120 | - return "Key `$key` doesn't exist in " . json_encode($data); |
|
120 | + return "Key `$key` doesn't exist in ".json_encode($data); |
|
121 | 121 | } |
122 | 122 | if (is_array($jsonType[$key])) { |
123 | 123 | $message = $this->typeComparison($data[$key], $jsonType[$key]); |
@@ -51,7 +51,6 @@ |
||
51 | 51 | throw new ElementNotFound($cssOrXPath); |
52 | 52 | } |
53 | 53 | /** |
54 | - |
|
55 | 54 | * @param $xml |
56 | 55 | * @return bool |
57 | 56 | */ |
@@ -83,7 +83,7 @@ |
||
83 | 83 | |
84 | 84 | if (!in_array('Codeception\CustomCommandInterface', $interfaces)) { |
85 | 85 | throw new ConfigurationException("Extension: Command {$commandClass} must implement " . |
86 | - "the interface `Codeception\\CustomCommandInterface`"); |
|
86 | + "the interface `Codeception\\CustomCommandInterface`"); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | return $commandClass::getCommandName(); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $interfaces = class_implements($commandClass); |
83 | 83 | |
84 | 84 | if (!in_array('Codeception\CustomCommandInterface', $interfaces)) { |
85 | - throw new ConfigurationException("Extension: Command {$commandClass} must implement " . |
|
85 | + throw new ConfigurationException("Extension: Command {$commandClass} must implement ". |
|
86 | 86 | "the interface `Codeception\\CustomCommandInterface`"); |
87 | 87 | } |
88 | 88 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->preloadConfiguration($argv[++$i]); |
151 | 151 | } |
152 | 152 | if (!empty($match[1])) { |
153 | - $argvWithoutConfig[] = "-" . $match[1]; //rest commands |
|
153 | + $argvWithoutConfig[] = "-".$match[1]; //rest commands |
|
154 | 154 | } |
155 | 155 | continue; |
156 | 156 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | } |
18 | 18 | |
19 | 19 | if ($status === CodeceptionTest::STATUS_ERROR) { |
20 | - $this->getTestResultObject()->addError($this, $exception, $time); |
|
20 | + $this->getTestResultObject()->addError($this, $exception, $time); |
|
21 | 21 | } |
22 | 22 | if ($status === CodeceptionTest::STATUS_FAIL) { |
23 | 23 | $this->getTestResultObject()->addFailure($this, $exception, $time); |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | continue; |
58 | 58 | } |
59 | 59 | |
60 | - if (!self::deleteDir($dir . DIRECTORY_SEPARATOR . $item)) { |
|
61 | - chmod($dir . DIRECTORY_SEPARATOR . $item, 0777); |
|
62 | - if (!self::deleteDir($dir . DIRECTORY_SEPARATOR . $item)) { |
|
60 | + if (!self::deleteDir($dir.DIRECTORY_SEPARATOR.$item)) { |
|
61 | + chmod($dir.DIRECTORY_SEPARATOR.$item, 0777); |
|
62 | + if (!self::deleteDir($dir.DIRECTORY_SEPARATOR.$item)) { |
|
63 | 63 | return false; |
64 | 64 | } |
65 | 65 | } |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | @mkdir($dst); |
79 | 79 | while (false !== ($file = readdir($dir))) { |
80 | 80 | if (($file != '.') && ($file != '..')) { |
81 | - if (is_dir($src . DIRECTORY_SEPARATOR . $file)) { |
|
82 | - self::copyDir($src . DIRECTORY_SEPARATOR . $file, $dst . DIRECTORY_SEPARATOR . $file); |
|
81 | + if (is_dir($src.DIRECTORY_SEPARATOR.$file)) { |
|
82 | + self::copyDir($src.DIRECTORY_SEPARATOR.$file, $dst.DIRECTORY_SEPARATOR.$file); |
|
83 | 83 | } else { |
84 | - copy($src . DIRECTORY_SEPARATOR . $file, $dst . DIRECTORY_SEPARATOR . $file); |
|
84 | + copy($src.DIRECTORY_SEPARATOR.$file, $dst.DIRECTORY_SEPARATOR.$file); |
|
85 | 85 | } |
86 | 86 | } |
87 | 87 | } |
@@ -47,11 +47,11 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | // normalize namespace prefix |
50 | - $prefix = trim($prefix, '\\') . '\\'; |
|
50 | + $prefix = trim($prefix, '\\').'\\'; |
|
51 | 51 | |
52 | 52 | // normalize the base directory with a trailing separator |
53 | - $base_dir = rtrim($base_dir, '/') . DIRECTORY_SEPARATOR; |
|
54 | - $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR) . '/'; |
|
53 | + $base_dir = rtrim($base_dir, '/').DIRECTORY_SEPARATOR; |
|
54 | + $base_dir = rtrim($base_dir, DIRECTORY_SEPARATOR).'/'; |
|
55 | 55 | |
56 | 56 | // initialize the namespace prefix array |
57 | 57 | if (isset(self::$map[$prefix]) === false) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | // fix for empty prefix |
110 | 110 | if (isset(self::$map['\\']) && ($class[0] != '\\')) { |
111 | - return self::load('\\' . $class); |
|
111 | + return self::load('\\'.$class); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | // backwards compatibility with old autoloader |
@@ -138,9 +138,9 @@ |
||
138 | 138 | $operands = []; |
139 | 139 | foreach ($attributes as $attribute => $value) { |
140 | 140 | if (is_int($attribute)) { |
141 | - $operands[] = '@' . $value; |
|
141 | + $operands[] = '@'.$value; |
|
142 | 142 | } else { |
143 | - $operands[] = '@' . $attribute . ' = ' . Translator::getXpathLiteral($value); |
|
143 | + $operands[] = '@'.$attribute.' = '.Translator::getXpathLiteral($value); |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 | return sprintf('//%s[%s]', $element, implode(' and ', $operands)); |