Skip to content

Commit

Permalink
Merge branch 'release/3.4.11' into v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Dec 6, 2015
2 parents b05f973 + 642b490 commit 45bf08a
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/TeenQuotes/Api/V1/Controllers/APIGlobalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ protected function retrieveUser()
*/
protected function isNotFound($content)
{
return (is_null($content) or empty($content) or $content->count() == 0);
return is_null($content) or empty($content) or $content->count() == 0;
}
}
4 changes: 2 additions & 2 deletions app/TeenQuotes/Newsletters/Models/Newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Newsletter extends Eloquent
*/
public function isDaily()
{
return ($this->type == self::DAILY);
return $this->type == self::DAILY;
}

/**
Expand All @@ -44,7 +44,7 @@ public function isDaily()
*/
public function isWeekly()
{
return ($this->type == self::WEEKLY);
return $this->type == self::WEEKLY;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/TeenQuotes/Quotes/Controllers/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,6 @@ private function shouldSearchForUsers($query)
*/
private function stringIsSingleWord($string)
{
return (str_word_count($string) == 1);
return str_word_count($string) == 1;
}
}
12 changes: 6 additions & 6 deletions app/TeenQuotes/Quotes/Models/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getTotalCommentsAttribute()
*/
public function getHasFavoritesAttribute()
{
return ($this->total_favorites > 0);
return $this->total_favorites > 0;
}

/**
Expand All @@ -160,7 +160,7 @@ public function getTotalFavoritesAttribute()
*/
public function getHasCommentsAttribute()
{
return ($this->total_comments > 0);
return $this->total_comments > 0;
}

/**
Expand Down Expand Up @@ -198,22 +198,22 @@ public function isFavoriteForCurrentUser()

public function isPublished()
{
return ($this->approved == self::PUBLISHED);
return $this->approved == self::PUBLISHED;
}

public function isPending()
{
return ($this->approved == self::PENDING);
return $this->approved == self::PENDING;
}

public function isWaiting()
{
return ($this->approved == self::WAITING);
return $this->approved == self::WAITING;
}

public function isRefused()
{
return ($this->approved == self::REFUSED);
return $this->approved == self::REFUSED;
}

/**
Expand Down
9 changes: 4 additions & 5 deletions app/TeenQuotes/Users/Controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private function redirectUserIfContentNotAvailable($user, $type)

private function userViewingSelfProfile($user)
{
return (Auth::check() and Auth::user()->login == $user->login);
return Auth::check() and Auth::user()->login == $user->login;
}

/**
Expand Down Expand Up @@ -300,10 +300,9 @@ public function show($user_id, $type = 'published')

private function shouldDisplayWelcomeTutorial($quotes, $user)
{
return (
return
(empty($quotes) or (($quotes instanceof Collection) and $quotes->isEmpty()))
and $this->userViewingSelfProfile($user)
);
and $this->userViewingSelfProfile($user);
}

private function dataShowFavorites(User $user)
Expand Down Expand Up @@ -423,7 +422,7 @@ private function getCountryAndCity(User $user)

private function userIsAllowedToEdit($user)
{
return ($user->login == Auth::user()->login);
return $user->login == Auth::user()->login;
}

/**
Expand Down
Binary file added public/assets/images/logo-xmas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/logo-xmas@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/rev-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"assets/css/styles.min.css": "assets/css/styles.min-34d8d28f67.css",
"assets/css/styles.min.css": "assets/css/styles.min-8485130ce5.css",
"assets/js/scripts.min.js": "assets/js/scripts.min-026f200b51.js"
}
4 changes: 2 additions & 2 deletions ressources/sass/screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ h3 {

.navbar-fixed-top {
.logo {
@include background-image-retina($imagesFolder + 'logo', 'png', 200px, 30px);
@include background-image-retina($imagesFolder + 'logo-xmas', 'png', 200px, 30px);
background-repeat: no-repeat;
width: 200px;
height: 30px;
display: block;
margin: 12px 10px 0 0;
margin: 9px 10px 0 0;
float: left;

@media screen and (min-width: 320px) and (max-width: 992px) {
Expand Down

0 comments on commit 45bf08a

Please sign in to comment.