@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 |
||
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 | }); |