@@ -46,11 +46,11 @@ discard block |
||
| 46 | 46 | { |
| 47 | 47 | $allModels = [ |
| 48 | 48 | [ |
| 49 | - 'path' => app_path() . DIRECTORY_SEPARATOR, |
|
| 49 | + 'path' => app_path().DIRECTORY_SEPARATOR, |
|
| 50 | 50 | 'namespace' => '{{app}}', |
| 51 | 51 | ], |
| 52 | 52 | [ |
| 53 | - 'path' => __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Models' . DIRECTORY_SEPARATOR, |
|
| 53 | + 'path' => __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Models'.DIRECTORY_SEPARATOR, |
|
| 54 | 54 | 'namespace' => 'Distilleries\\Expendable\\Models\\', |
| 55 | 55 | ], |
| 56 | 56 | ]; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $choice = explode('/', $model); |
| 65 | 65 | $model = preg_replace('/.php/i', '', last($choice)); |
| 66 | - $choices[$config['namespace'] . $model] = $model; |
|
| 66 | + $choices[$config['namespace'].$model] = $model; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | protected function getUpdateRules() |
| 78 | 78 | { |
| 79 | 79 | $key = \Request::get($this->model->getKeyName()); |
| 80 | - static::$rules_update['email'] = 'required|email|unique:users,email,' . $key; |
|
| 80 | + static::$rules_update['email'] = 'required|email|unique:users,email,'.$key; |
|
| 81 | 81 | |
| 82 | 82 | return parent::getUpdateRules(); |
| 83 | 83 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | protected function getUpdateRules() |
| 45 | 45 | { |
| 46 | 46 | $key = \Request::get($this->model->getKeyName()); |
| 47 | - static::$rules['iso'] = 'required|unique:languages,iso,' . $key; |
|
| 47 | + static::$rules['iso'] = 'required|unique:languages,iso,'.$key; |
|
| 48 | 48 | |
| 49 | 49 | return parent::getUpdateRules(); |
| 50 | 50 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function getQualifiedStatusColumn() |
| 47 | 47 | { |
| 48 | - return $this->getTable() . '.' . $this->getStatusColumn(); |
|
| 48 | + return $this->getTable().'.'.$this->getStatusColumn(); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | |
| 15 | 15 | public function scopeWithoutCurrentLanguage($query) |
| 16 | 16 | {
|
| 17 | - return $query->where($this->getTable().'.iso','<>',app()->getLocale()); |
|
| 17 | + return $query->where($this->getTable().'.iso', '<>', app()->getLocale()); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function scopeWithTranslationElement($query) |
| 21 | 21 | {
|
| 22 | - return $query->where($this->getTable().'.iso','<>',app()->getLocale()); |
|
| 22 | + return $query->where($this->getTable().'.iso', '<>', app()->getLocale()); |
|
| 23 | 23 | } |
| 24 | 24 | } |
| 25 | 25 | \ No newline at end of file |
@@ -53,8 +53,8 @@ |
||
| 53 | 53 | |
| 54 | 54 | public function scopeByElement($query, Model $model) |
| 55 | 55 | { |
| 56 | - return $query->where($this->getTable() . '.' . $this->getModelColumn(), '=', $model->getTable()) |
|
| 57 | - ->where($this->getTable() . '.' . $this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 56 | + return $query->where($this->getTable().'.'.$this->getModelColumn(), '=', $model->getTable()) |
|
| 57 | + ->where($this->getTable().'.'.$this->getIdSourceColumn(), '=', $model->getKey()); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | foreach ($this->events as $name => $event) |
| 22 | 22 | { |
| 23 | - Event::listen($name, get_class($this) . '@' . $event['action'], $event['priority']); |
|
| 23 | + Event::listen($name, get_class($this).'@'.$event['action'], $event['priority']); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | foreach ($dataActions as $action) |
| 63 | 63 | { |
| 64 | - $dataResult[$action] = trans('expendable::mail.' . $action); |
|
| 64 | + $dataResult[$action] = trans('expendable::mail.'.$action); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | return self::getLabel($dataResult, $id); |
@@ -227,6 +227,6 @@ |
||
| 227 | 227 | */ |
| 228 | 228 | protected function getStub() |
| 229 | 229 | { |
| 230 | - return __DIR__ . '/Lib/stubs/' . $this->getTemplate() . '.stub'; |
|
| 230 | + return __DIR__.'/Lib/stubs/'.$this->getTemplate().'.stub'; |
|
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | \ No newline at end of file |