Passed
Pull Request — master (#4)
by Angel
03:26
created
src/storage/Pdo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
     
15 15
     public function __construct($connection = null, $config = array())
16 16
     {
17
-        if($connection === null) {
18
-            if($this->connection !== null && \Yii::$app->has($this->connection)) {
17
+        if ($connection === null) {
18
+            if ($this->connection !== null && \Yii::$app->has($this->connection)) {
19 19
                 $db = \Yii::$app->get($this->connection);
20
-                if(!($db instanceof \yii\db\Connection)) {
20
+                if (!($db instanceof \yii\db\Connection)) {
21 21
                     throw new \yii\base\InvalidConfigException('Connection component must implement \yii\db\Connection.');
22 22
                 }
23 23
                 
24
-                if(!$db->getIsActive()) {
24
+                if (!$db->getIsActive()) {
25 25
                     $db->open();
26 26
                 }
27 27
                 
Please login to merge, or discard this patch.
src/filters/ErrorToExceptionTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     protected function ensureSuccessResponse()
56 56
     {
57 57
         $response = $this->oauth2Module->getResponse();
58
-        if($response === null
58
+        if ($response === null
59 59
             || $response->isInformational()
60 60
             || $response->isSuccessful()
61 61
             || $response->isRedirection()
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
         }
140 140
 
141 141
         $storages = [];
142
-        foreach(array_keys($this->storageMap) as $name) {
142
+        foreach (array_keys($this->storageMap) as $name) {
143 143
             $storages[$name] = Yii::$container->get($name);
144 144
         }
145 145
 
146 146
         $grantTypes = [];
147
-        foreach($this->grantTypes as $name => $options) {
148
-            if(!isset($storages[$name]) || empty($options['class'])) {
147
+        foreach ($this->grantTypes as $name => $options) {
148
+            if (!isset($storages[$name]) || empty($options['class'])) {
149 149
                 throw new InvalidConfigException(
150 150
                     'Invalid grant types configuration.'
151 151
                 );
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         $route = 'roaresearch/yii2/oauth2/';
240 240
 
241
-        if(!isset($app->get('i18n')->translations[$route . '*'])) {
241
+        if (!isset($app->get('i18n')->translations[$route . '*'])) {
242 242
             $app->get('i18n')->translations[$route . '*'] = [
243 243
                 'class'    => PhpMessageSource::class,
244 244
                 'basePath' => __DIR__ . '/messages',
Please login to merge, or discard this patch.
tests/_app/config/db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
     'charset' => 'utf8',
9 9
 ];
10 10
 
11
-if (file_exists(__DIR__.'/db.local.php')) {
12
-    $db = array_merge($db, require(__DIR__.'/db.local.php'));
11
+if (file_exists(__DIR__ . '/db.local.php')) {
12
+    $db = array_merge($db, require(__DIR__ . '/db.local.php'));
13 13
 }
14 14
 
15 15
 return $db;
Please login to merge, or discard this patch.