| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the AdminScoreRepository class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; | 
| 9 | 9 | |
| @@ -112,12 +112,12 @@ discard block | ||
| 112 | 112 | |
| 113 | 113 | // Construct the page name | 
| 114 | 114 |          if (!isset($this->getParameter('rfx')[$domain]['pages'][$type])) { | 
| 115 | - $pageTitle= ''; | |
| 115 | + $pageTitle = ''; | |
| 116 | 116 |          } else { | 
| 117 | -            $pageTitle= $this->getParameter('rfx')[$domain]['pages'][$type]; | |
| 117 | +            $pageTitle = $this->getParameter('rfx')[$domain]['pages'][$type]; | |
| 118 | 118 | } | 
| 119 | 119 | |
| 120 | - $pageTitle.= '/'.$this->user->getUsername(); | |
| 120 | + $pageTitle .= '/'.$this->user->getUsername(); | |
| 121 | 121 | $page = new Page($this->project, $pageTitle); | 
| 122 | 122 | $pageRepo = new PageRepository(); | 
| 123 | 123 | $pageRepo->setContainer($this->container); | 
| @@ -145,7 +145,7 @@ discard block | ||
| 145 | 145 |          $neutral = $rfx->getSection('neutral'); | 
| 146 | 146 | $dup = $rfx->getDuplicates(); | 
| 147 | 147 | |
| 148 | - $total = count($support) + count($oppose) + count($neutral); | |
| 148 | + $total = count($support)+count($oppose)+count($neutral); | |
| 149 | 149 | |
| 150 | 150 |          if (0 === $total) { | 
| 151 | 151 |              $this->addFlashMessage('notice', 'no-result', [$pageTitle]); | 
| @@ -3,7 +3,7 @@ discard block | ||
| 3 | 3 | * This file contains only the I18nHelper. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Helper; | 
| 9 | 9 | |
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | } | 
| 75 | 75 | |
| 76 | 76 | // Find the path, and complain if English doesn't exist. | 
| 77 | -        $path = $this->container->getParameter('kernel.root_dir') . '/../i18n'; | |
| 77 | +        $path = $this->container->getParameter('kernel.root_dir').'/../i18n'; | |
| 78 | 78 |          if (!file_exists("$path/en.json")) { | 
| 79 | 79 |              throw new Exception("Language directory doesn't exist: $path"); | 
| 80 | 80 | } | 
| @@ -129,7 +129,7 @@ discard block | ||
| 129 | 129 |          $messageFiles = glob($this->container->getParameter('kernel.root_dir').'/../i18n/*.json'); | 
| 130 | 130 | |
| 131 | 131 | $languages = array_values(array_unique(array_map( | 
| 132 | -            function ($filename) { | |
| 132 | +            function($filename) { | |
| 133 | 133 | return basename($filename, '.json'); | 
| 134 | 134 | }, | 
| 135 | 135 | $messageFiles | 
| @@ -171,7 +171,7 @@ discard block | ||
| 171 | 171 | $this->getIntuition()->getLangFallbacks($this->getLang()) | 
| 172 | 172 | ); | 
| 173 | 173 | |
| 174 | -        return array_filter($fallbacks, function ($lang) use ($i18nPath) { | |
| 174 | +        return array_filter($fallbacks, function($lang) use ($i18nPath) { | |
| 175 | 175 | return is_file($i18nPath.$lang.'.json'); | 
| 176 | 176 | }); | 
| 177 | 177 | } | 
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the PageAssessmentsRepository class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; | 
| 9 | 9 | |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the AdminStatsRepository class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; | 
| 9 | 9 | |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the CategoryEditsRepository class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; | 
| 9 | 9 | |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the UserRepository class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; | 
| 9 | 9 | |
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | * This file contains only the Model class. | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; | 
| 9 | 9 | |
| @@ -3,7 +3,7 @@ discard block | ||
| 3 | 3 | * An RFX object contains the parsed information for an RFX | 
| 4 | 4 | */ | 
| 5 | 5 | |
| 6 | -declare(strict_types = 1); | |
| 6 | +declare(strict_types=1); | |
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; | 
| 9 | 9 | |
| @@ -106,7 +106,7 @@ discard block | ||
| 106 | 106 | } | 
| 107 | 107 | } | 
| 108 | 108 | |
| 109 | - $final = []; // initialize the final array | |
| 109 | + $final = []; // initialize the final array | |
| 110 | 110 | $finalRaw = []; // Initialize the raw data array | 
| 111 | 111 | |
| 112 | 112 |          foreach (array_keys($this->data) as $key) { | 
| @@ -119,7 +119,7 @@ discard block | ||
| 119 | 119 | |
| 120 | 120 | $final = array_count_values($final); // find repetition and its count | 
| 121 | 121 | |
| 122 | - $final = array_diff($final, [1]); // remove single occurrences | |
| 122 | + $final = array_diff($final, [1]); // remove single occurrences | |
| 123 | 123 | |
| 124 | 124 | $this->duplicates = array_keys($final); | 
| 125 | 125 | } |