@@ -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 |
@@ -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)); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | } |
190 | 190 | $suiteToRun = $suite; |
191 | 191 | if (!empty($envList)) { |
192 | - $suiteToRun .= ' (' . implode(', ', $envArray) . ')'; |
|
192 | + $suiteToRun .= ' ('.implode(', ', $envArray).')'; |
|
193 | 193 | } |
194 | 194 | $this->runSuite($config, $suiteToRun, $test); |
195 | 195 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | public static function versionString() |
208 | 208 | { |
209 | - return 'Codeception PHP Testing Framework v' . self::VERSION; |
|
209 | + return 'Codeception PHP Testing Framework v'.self::VERSION; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | public function printResult() |
@@ -88,7 +88,7 @@ |
||
88 | 88 | if (array_intersect($this->requiredFields, $fields) != $this->requiredFields) { |
89 | 89 | throw new Exception\ModuleConfigException( |
90 | 90 | get_class($this), |
91 | - "\nOptions: " . implode(', ', $this->requiredFields) . " are required\n" . |
|
91 | + "\nOptions: ".implode(', ', $this->requiredFields)." are required\n". |
|
92 | 92 | "Please, update the configuration and set all the required fields\n\n" |
93 | 93 | ); |
94 | 94 | } |
@@ -21,8 +21,8 @@ |
||
21 | 21 | $events = []; |
22 | 22 | if (static::$group) { |
23 | 23 | $events = [ |
24 | - Events::TEST_BEFORE . '.' . static::$group => '_before', |
|
25 | - Events::TEST_AFTER . '.' . static::$group => '_after', |
|
24 | + Events::TEST_BEFORE.'.'.static::$group => '_before', |
|
25 | + Events::TEST_AFTER.'.'.static::$group => '_after', |
|
26 | 26 | ]; |
27 | 27 | } |
28 | 28 | return array_merge($events, $inheritedEvents); |
@@ -5,6 +5,6 @@ |
||
5 | 5 | { |
6 | 6 | public function __construct($locator, $type = "CSS or XPath") |
7 | 7 | { |
8 | - parent::__construct(ucfirst($type) . " locator is malformed: $locator"); |
|
8 | + parent::__construct(ucfirst($type)." locator is malformed: $locator"); |
|
9 | 9 | } |
10 | 10 | } |