@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $settingName = $this->getSettingName($request); |
| 36 | 36 | |
| 37 | 37 | try { |
| 38 | - if (! Setting::get($settingName)) { |
|
| 38 | + if (!Setting::get($settingName)) { |
|
| 39 | 39 | return Redirect::to('install'); |
| 40 | 40 | } |
| 41 | 41 | } catch (Exception $e) { |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function handle($request, Closure $next) |
| 28 | 28 | { |
| 29 | - if (! subscribers_enabled()) { |
|
| 29 | + if (!subscribers_enabled()) { |
|
| 30 | 30 | return Redirect::route('explore'); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | use Illuminate\Support\Facades\Request; |
| 15 | 15 | use Jenssegers\Date\Date; |
| 16 | 16 | |
| 17 | -if (! function_exists('back_url')) { |
|
| 17 | +if (!function_exists('back_url')) { |
|
| 18 | 18 | /** |
| 19 | 19 | * Create a new back url. |
| 20 | 20 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | $url = app('url'); |
| 31 | 31 | |
| 32 | - if (! is_null($route) && $url->previous() === $url->full()) { |
|
| 32 | + if (!is_null($route) && $url->previous() === $url->full()) { |
|
| 33 | 33 | return $url->route($name, $params, $status, $headers); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | -if (! function_exists('set_active')) { |
|
| 40 | +if (!function_exists('set_active')) { |
|
| 41 | 41 | /** |
| 42 | 42 | * Set active class if request is in path. |
| 43 | 43 | * |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | -if (! function_exists('formatted_date')) { |
|
| 62 | +if (!function_exists('formatted_date')) { |
|
| 63 | 63 | /** |
| 64 | 64 | * Formats a date with the user timezone and the selected format. |
| 65 | 65 | * |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -if (! function_exists('subscribers_enabled')) { |
|
| 78 | +if (!function_exists('subscribers_enabled')) { |
|
| 79 | 79 | /** |
| 80 | 80 | * Is the subscriber functionality enabled and configured. |
| 81 | 81 | * |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | } |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | -if (! function_exists('color_darken')) { |
|
| 94 | +if (!function_exists('color_darken')) { |
|
| 95 | 95 | /** |
| 96 | 96 | * Darken a color. |
| 97 | 97 | * |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | -if (! function_exists('color_contrast')) { |
|
| 122 | +if (!function_exists('color_contrast')) { |
|
| 123 | 123 | /** |
| 124 | 124 | * Calculates colour contrast. |
| 125 | 125 | * |
@@ -38,8 +38,8 @@ |
||
| 38 | 38 | { |
| 39 | 39 | parent::boot(); |
| 40 | 40 | |
| 41 | - self::creating(function ($invite) { |
|
| 42 | - if (! $invite->code) { |
|
| 41 | + self::creating(function($invite) { |
|
| 42 | + if (!$invite->code) { |
|
| 43 | 43 | $invite->code = self::generateInviteCode(); |
| 44 | 44 | } |
| 45 | 45 | }); |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | { |
| 99 | 99 | $owner = static::where('path', $path)->first($columns); |
| 100 | 100 | |
| 101 | - if (! $owner) { |
|
| 101 | + if (!$owner) { |
|
| 102 | 102 | throw new ModelNotFoundException(); |
| 103 | 103 | } |
| 104 | 104 | |
@@ -161,11 +161,11 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public static function findByPath($owner_path, $project_path, $columns = ['projects.*']) |
| 163 | 163 | { |
| 164 | - $project = static::leftJoin('owners', function ($join) { |
|
| 164 | + $project = static::leftJoin('owners', function($join) { |
|
| 165 | 165 | $join->on('projects.owner_id', '=', 'owners.id'); |
| 166 | 166 | })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns); |
| 167 | 167 | |
| 168 | - if (! $project) { |
|
| 168 | + if (!$project) { |
|
| 169 | 169 | throw new ModelNotFoundException(); |
| 170 | 170 | } |
| 171 | 171 | |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | */ |
| 236 | 236 | public function getTagsListAttribute() |
| 237 | 237 | { |
| 238 | - $tags = $this->tags->map(function ($tag) { |
|
| 238 | + $tags = $this->tags->map(function($tag) { |
|
| 239 | 239 | return $tag->name; |
| 240 | 240 | }); |
| 241 | 241 | |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | { |
| 56 | 56 | parent::boot(); |
| 57 | 57 | |
| 58 | - self::creating(function ($user) { |
|
| 59 | - if (! $user->verify_code) { |
|
| 58 | + self::creating(function($user) { |
|
| 59 | + if (!$user->verify_code) { |
|
| 60 | 60 | $user->verify_code = self::generateVerifyCode(); |
| 61 | 61 | } |
| 62 | 62 | }); |
@@ -89,8 +89,8 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | parent::boot(); |
| 91 | 91 | |
| 92 | - self::creating(function ($user) { |
|
| 93 | - if (! $user->api_key) { |
|
| 92 | + self::creating(function($user) { |
|
| 93 | + if (!$user->api_key) { |
|
| 94 | 94 | $user->api_key = self::generateApiKey(); |
| 95 | 95 | } |
| 96 | 96 | }); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | { |
| 138 | 138 | $user = static::where('api_key', $token)->first($columns); |
| 139 | 139 | |
| 140 | - if (! $user) { |
|
| 140 | + if (!$user) { |
|
| 141 | 141 | throw new ModelNotFoundException(); |
| 142 | 142 | } |
| 143 | 143 | |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | public function indexAction() |
| 69 | 69 | { |
| 70 | 70 | // Issue & Issue Project list. |
| 71 | - $usedIssueProjects = Issue::where('project_id', '>', 0)->groupBy('project_id')->lists('project_id'); |
|
| 71 | + $usedIssueProjects = Issue::where('project_id', '>', 0)->groupBy('project_id')->lists('project_id'); |
|
| 72 | 72 | $issueProjects = Project::whereIn('id', $usedIssueProjects)->get(); |
| 73 | 73 | |
| 74 | 74 | return View::make('dashboard.issues.index') |