@@ -40,14 +40,14 @@ |
||
40 | 40 | */ |
41 | 41 | public function broadcastOn() |
42 | 42 | { |
43 | - return new PrivateChannel('comments-'.$this->data['category'].'-'.$this->data['item_id']); |
|
43 | + return new PrivateChannel('comments-' . $this->data[ 'category' ] . '-' . $this->data[ 'item_id' ]); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | public function broadcastWith() |
47 | 47 | { |
48 | 48 | return [ |
49 | 49 | 'user' => $this->user, |
50 | - 'status' => $this->name.' is typing', |
|
50 | + 'status' => $this->name . ' is typing', |
|
51 | 51 | ]; |
52 | 52 | } |
53 | 53 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $requiredName = Str::lower(Arr::last($namePieces)); |
39 | 39 | $requiredName = Str::plural($requiredName); |
40 | 40 | |
41 | - return new PrivateChannel('comments-'.$requiredName.'-'.$this->comment->commentable_id); |
|
41 | + return new PrivateChannel('comments-' . $requiredName . '-' . $this->comment->commentable_id); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | public function broadcastWith() |
@@ -9,7 +9,7 @@ |
||
9 | 9 | public static $hexColorRegex = 'regex:/^#([a-fA-F0-9]{6})$/i'; |
10 | 10 | |
11 | 11 | public static $freeMessagesCount = 10; |
12 | - public static $reviewTypes = ['feedback', 'report']; |
|
12 | + public static $reviewTypes = [ 'feedback', 'report' ]; |
|
13 | 13 | |
14 | 14 | public static $weekDays = [ |
15 | 15 | 'Monday', |
@@ -42,9 +42,9 @@ |
||
42 | 42 | $protocol = 'https://'; |
43 | 43 | |
44 | 44 | return (object)[ |
45 | - '_50' => $protocol . $_SERVER['HTTP_HOST'] . '/images/logo-50.png', |
|
46 | - '_100' => $protocol . $_SERVER['HTTP_HOST'] . '/images/logo-100.png', |
|
47 | - 'original' => $protocol . $_SERVER['HTTP_HOST'] . '/images/logo-original.png', |
|
45 | + '_50' => $protocol . $_SERVER[ 'HTTP_HOST' ] . '/images/logo-50.png', |
|
46 | + '_100' => $protocol . $_SERVER[ 'HTTP_HOST' ] . '/images/logo-100.png', |
|
47 | + 'original' => $protocol . $_SERVER[ 'HTTP_HOST' ] . '/images/logo-original.png', |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | $comments = $model->comments() |
60 | 60 | ->latest() |
61 | - ->with(['creatable.image']) |
|
61 | + ->with([ 'creatable.image' ]) |
|
62 | 62 | ->paginate(Helper::getLimit($request)); |
63 | 63 | |
64 | 64 | CommentsResource::wrap('comments'); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * @param array $columns |
12 | 12 | * @return mixed |
13 | 13 | */ |
14 | - public function scopeExclude($query, array $columns = []) |
|
14 | + public function scopeExclude($query, array $columns = [ ]) |
|
15 | 15 | { |
16 | 16 | $tableColumns = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable()); |
17 | 17 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | protected function registerRoutes($primaryRoute, $secondaryRoute) |
23 | 23 | { |
24 | - Route::group($this->routeConfiguration(), function () use ($primaryRoute, $secondaryRoute) { |
|
24 | + Route::group($this->routeConfiguration(), function() use ($primaryRoute, $secondaryRoute) { |
|
25 | 25 | $this->loadRoutes($primaryRoute); |
26 | 26 | if (config('faithgen-sdk.source')) { |
27 | 27 | $this->loadRoutes($secondaryRoute); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | function getFileName(string $path) |
10 | 10 | { |
11 | 11 | $pieces = explode('/', $path); |
12 | - return $pieces[sizeof($pieces) - 1]; |
|
12 | + return $pieces[ sizeof($pieces) - 1 ]; |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | function getImage(string $dir, string $imageName, int $dimen = 0) |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | function deleteFiles($model) |
34 | 34 | { |
35 | - $images = []; |
|
35 | + $images = [ ]; |
|
36 | 36 | foreach ($model->getImageDimensions() as $imageDimension) { |
37 | 37 | if (is_string($model->getFileName())) |
38 | 38 | array_push($images, $this->getImage($model->filesDir(), $model->getFileName(), $imageDimension)); |
@@ -9,5 +9,5 @@ |
||
9 | 9 | { |
10 | 10 | use BelongsToMinistryTrait; |
11 | 11 | |
12 | - protected $guarded = ['id']; |
|
12 | + protected $guarded = [ 'id' ]; |
|
13 | 13 | } |