Passed
Push — master ( 5eca78...328917 )
by Oleg
13:53
created
Micro.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         if (!$this->loaded) {
139 139
             $this->initialize();
140 140
 
141
-            $this->addListener('kernel.kill', function () {
141
+            $this->addListener('kernel.kill', function() {
142 142
                 /** @var IRequest $request */
143 143
                 $request = $this->injector->get('request');
144 144
 
Please login to merge, or discard this patch.
mvc/models/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
                 if (self::$primaryKey) {
375 375
                     $where .= '`'.self::$primaryKey.'` = :'.self::$primaryKey;
376 376
                 } else {
377
-                    throw new Exception('In table ' . static::$tableName . ' option `' . self::$primaryKey . '` not defined/not use.'
377
+                    throw new Exception('In table '.static::$tableName.' option `'.self::$primaryKey.'` not defined/not use.'
378 378
                     );
379 379
                 }
380 380
             }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
         }
419 419
         if ($this->beforeDelete()) {
420 420
             if (!self::$primaryKey) {
421
-                throw new Exception('In table ' . static::$tableName . ' option `' . self::$primaryKey . '` not defined/not use.');
421
+                throw new Exception('In table '.static::$tableName.' option `'.self::$primaryKey.'` not defined/not use.');
422 422
             }
423 423
 
424 424
             if (
Please login to merge, or discard this patch.
mvc/views/PhpView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         if ($this->layout && (!$layoutPath = $this->getLayoutFile((new Injector)->get('kernel')->getAppDir(),
92 92
                 $this->module))
93 93
         ) {
94
-            (new Injector)->get('logger')->send('error', 'Layout `' . $this->layout . '` not found');
94
+            (new Injector)->get('logger')->send('error', 'Layout `'.$this->layout.'` not found');
95 95
         }
96 96
 
97 97
         if ($layoutPath) {
Please login to merge, or discard this patch.
web/Asset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 
66 66
         $this->hash = md5($this->sourcePath);
67 67
 
68
-        $this->publishPath = '/' . (($dir = (new Injector)->get('assetsDirName')) ? $dir : 'assets') . '/' . $this->hash;
68
+        $this->publishPath = '/'.(($dir = (new Injector)->get('assetsDirName')) ? $dir : 'assets').'/'.$this->hash;
69 69
 
70 70
         $web = (new Injector)->get('kernel')->getWebDir();
71 71
 
Please login to merge, or discard this patch.
resolver/HMVCResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     protected function prepareExtensions(&$uriBlocks)
108 108
     {
109 109
         foreach ($uriBlocks as $i => $block) {
110
-            if (file_exists((new Injector)->get('kernel')->getAppDir() . $this->extensions . '/extensions/' . $block)) {
110
+            if (file_exists((new Injector)->get('kernel')->getAppDir().$this->extensions.'/extensions/'.$block)) {
111 111
                 $this->extensions .= '/Extensions/'.ucfirst($block);
112 112
 
113 113
                 unset($uriBlocks[$i]);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     protected function prepareModules(&$uriBlocks)
134 134
     {
135
-        $path = (new Injector)->get('kernel')->getAppDir() . ($this->extensions ?: '');
135
+        $path = (new Injector)->get('kernel')->getAppDir().($this->extensions ?: '');
136 136
 
137 137
         foreach ($uriBlocks as $i => $block) {
138 138
             if ($block && file_exists($path.strtolower($this->modules).'/modules/'.$block)) {
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     protected function prepareController(&$uriBlocks)
160 160
     {
161
-        $path = (new Injector)->get('kernel')->getAppDir() . ($this->extensions ?: '') . strtolower($this->modules ?: '');
161
+        $path = (new Injector)->get('kernel')->getAppDir().($this->extensions ?: '').strtolower($this->modules ?: '');
162 162
         $str = array_shift($uriBlocks);
163 163
 
164 164
         if (file_exists(str_replace('\\', '/', $path.'/controllers/'.ucfirst($str).'Controller.php'))) {
Please login to merge, or discard this patch.
auth/DbAcl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,9 +241,9 @@
 block discarded – undo
241 241
     public function forbidPrivilege($userId, $privilege = null, $asRole = true)
242 242
     {
243 243
         if ($asRole) {
244
-            (new Injector)->get('db')->delete('acl_user', '`user`="' . $userId . '" AND `role`="' . $privilege . '"');
244
+            (new Injector)->get('db')->delete('acl_user', '`user`="'.$userId.'" AND `role`="'.$privilege.'"');
245 245
         } else {
246
-            (new Injector)->get('db')->delete('acl_user', '`user`="' . $userId . '" AND `perm`="' . $privilege . '"');
246
+            (new Injector)->get('db')->delete('acl_user', '`user`="'.$userId.'" AND `perm`="'.$privilege.'"');
247 247
         }
248 248
     }
249 249
 }
Please login to merge, or discard this patch.
validator/Validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
             return '\\Micro\\Validator\\'.self::$validators[$name];
125 125
         } elseif (class_exists($name) && is_subclass_of($name, '\Micro\Validator\IValidator')) {
126 126
             return $name;
127
-        } elseif (file_exists((new Injector)->get('kernel')->getAppDir() . '/validator/' . $name . '.php')) {
127
+        } elseif (file_exists((new Injector)->get('kernel')->getAppDir().'/validator/'.$name.'.php')) {
128 128
             return '\\App\\Validator\\'.$name;
129 129
         }
130 130
 
Please login to merge, or discard this patch.