Passed
Push — master ( bd5724...8a312b )
by
unknown
01:47
created
src/Hybridauth.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     ) {
69 69
         if (is_string($config) && file_exists($config)) {
70 70
             $config = include $config;
71
-        } elseif (!is_array($config)) {
71
+        } elseif ( ! is_array($config)) {
72 72
             throw new InvalidArgumentException('Hybridauth config does not exist on the given path.');
73 73
         }
74 74
 
@@ -120,13 +120,13 @@  discard block
 block discarded – undo
120 120
 
121 121
         $adapter = isset($config['adapter']) ? $config['adapter'] : sprintf('Hybridauth\\Provider\\%s', $name);
122 122
 
123
-        if (!class_exists($adapter)) {
123
+        if ( ! class_exists($adapter)) {
124 124
             $unexistingConfiguredAdapter = $adapter;
125 125
             $adapter = null;
126
-            $fs = new \FilesystemIterator(__DIR__ . '/Provider/');
126
+            $fs = new \FilesystemIterator(__DIR__.'/Provider/');
127 127
             /** @var \SplFileInfo $file */
128 128
             foreach ($fs as $file) {
129
-                if (!$file->isDir()) {
129
+                if ( ! $file->isDir()) {
130 130
                     $provider = strtok($file->getFilename(), '.');
131 131
                     if (mb_strtolower($name) === mb_strtolower($provider)) {
132 132
                         $adapter = sprintf('Hybridauth\\Provider\\%s', $provider);
@@ -158,11 +158,11 @@  discard block
 block discarded – undo
158 158
 
159 159
         $providersConfig = array_change_key_case($this->config['providers'], CASE_LOWER);
160 160
 
161
-        if (!isset($providersConfig[$name])) {
161
+        if ( ! isset($providersConfig[$name])) {
162 162
             throw new InvalidArgumentException('Unknown Provider.');
163 163
         }
164 164
 
165
-        if (!$providersConfig[$name]['enabled']) {
165
+        if ( ! $providersConfig[$name]['enabled']) {
166 166
             throw new UnexpectedValueException('Disabled Provider.');
167 167
         }
168 168
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             'debug_file' => $this->config['debug_file'],
173 173
         ];
174 174
 
175
-        if (!isset($config['callback']) && isset($this->config['callback'])) {
175
+        if ( ! isset($config['callback']) && isset($this->config['callback'])) {
176 176
             $config['callback'] = $this->config['callback'];
177 177
         }
178 178
 
Please login to merge, or discard this patch.