Completed
Pull Request — master (#4852)
by
unknown
15:00
created
src/Codeception/Module/Facebook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Codeception/Lib/Friend.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Codeception/Util/JsonType.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/Codeception/Util/XmlStructure.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,6 @@
 block discarded – undo
51 51
         throw new ElementNotFound($cssOrXPath);
52 52
     }
53 53
     /**
54
-
55 54
      * @param $xml
56 55
      * @return bool
57 56
      */
Please login to merge, or discard this patch.
src/Codeception/Application.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Codeception/Test/Feature/ErrorLogger.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Codeception/Util/FileSystem.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Codeception/Util/Autoload.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Codeception/Util/Locator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,9 +138,9 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.