Completed
Push — master ( bc6801...6b8e14 )
by Avtandil
06:40
created
src/MultiLang/Repository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function getCacheName($lang, $scope = null)
63 63
     {
64 64
         $key = $this->config->get('db.texts_table', 'texts') . '_' . $lang;
65
-        if (! is_null($scope)) {
65
+        if (!is_null($scope)) {
66 66
             $key .= '_' . $scope;
67 67
         }
68 68
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
         $query = $this->getDb()->table($this->getTableName())
82 82
             ->where('lang', $lang);
83 83
 
84
-        if (! is_null($scope) && $scope !== 'global') {
85
-            $query = $query->whereNested(function ($query) use ($scope) {
84
+        if (!is_null($scope) && $scope !== 'global') {
85
+            $query = $query->whereNested(function($query) use ($scope) {
86 86
                 $query->where('scope', 'global');
87 87
                 $query->orWhere('scope', $scope);
88 88
             });
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
     {
112 112
         $query = $this->getDb()->table($this->getTableName());
113 113
 
114
-        if (! is_null($lang)) {
114
+        if (!is_null($lang)) {
115 115
             $query = $query->where('lang', $lang);
116 116
         }
117 117
 
118
-        if (! is_null($scope)) {
119
-            $query = $query->whereNested(function ($query) use ($scope) {
118
+        if (!is_null($scope)) {
119
+            $query = $query->whereNested(function($query) use ($scope) {
120 120
                 $query->where('scope', 'global');
121 121
                 $query->orWhere('scope', $scope);
122 122
             });
Please login to merge, or discard this patch.