@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | protected function execute($is_absolute = false, $size = 'medium') |
13 | 13 | { |
14 | 14 | preg_match_all(self::$PHOTO_PLACEHOLDER_MATCH, $this->content, $matches); |
15 | - foreach($matches[1] as $key => $match) |
|
15 | + foreach ($matches[1] as $key => $match) |
|
16 | 16 | { |
17 | 17 | $photo_content = $this->get_photo_content($match, $size, $is_absolute); |
18 | 18 | $this->content = str_replace($matches[0][$key], $photo_content, $this->content); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | Loader::load('collector', 'image/PhotoCollector'); |
39 | 39 | $photo_result = PhotoCollector::fetchRow($category, $photo); |
40 | - if($photo_result == false) |
|
40 | + if ($photo_result == false) |
|
41 | 41 | return ''; |
42 | 42 | |
43 | 43 | $height = $file_size[1]; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $description = $photo_result->description; |
46 | 46 | |
47 | 47 | $domain = '/'; |
48 | - if($is_absolute) |
|
48 | + if ($is_absolute) |
|
49 | 49 | $domain = Loader::getRootUrl('blog'); |
50 | 50 | |
51 | 51 | return sprintf(self::$PHOTO_CONTENT, $domain, $category, $photo, $size, $height, $width, $description, $description); |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | ], |
34 | 34 | [ |
35 | 35 | 'name' => 'Projects', |
36 | - 'link' => Loader::getRootURL() . 'projects/', |
|
36 | + 'link' => Loader::getRootURL().'projects/', |
|
37 | 37 | ], |
38 | 38 | [ |
39 | 39 | 'name' => 'Résumé', |
40 | - 'link' => Loader::getRootURL() . 'resume/', |
|
40 | + 'link' => Loader::getRootURL().'resume/', |
|
41 | 41 | ], |
42 | 42 | ]; |
43 | 43 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $active_page = ucfirst(URLDecode::getPiece(1)); |
48 | 48 | } |
49 | 49 | |
50 | - return array_map(function ($row) use ($active_page) { |
|
50 | + return array_map(function($row) use ($active_page) { |
|
51 | 51 | $row = (object) $row; |
52 | 52 | $row->active = ($row->name == $active_page); |
53 | 53 | return $row; |