Completed
Push — master ( bd4983...d7e919 )
by Simonas
77:20 queued 12:11
created
Document/Translation.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
     public function getId()
118 118
     {
119 119
         if (!$this->id) {
120
-            $this->setId(sha1($this->getDomain() . $this->getKey()));
120
+            $this->setId(sha1($this->getDomain().$this->getKey()));
121 121
         }
122 122
 
123 123
         return $this->id;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
     }
206 206
 
207 207
     /**
208
-     * @param Message[]|Collection $messages
208
+     * @param Collection $messages
209 209
      */
210 210
     public function setMessages(Collection $messages = null)
211 211
     {
Please login to merge, or discard this patch.
DependencyInjection/ONGRTranslationsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $configuration = new Configuration();
33 33
         $config = $this->processConfiguration($configuration, $configs);
34 34
 
35
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
35
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
36 36
         $loader->load('services.yml');
37 37
         $loader->load('filters_container.yml');
38 38
 
Please login to merge, or discard this patch.
Service/Import/ImportManager.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -156,9 +156,8 @@  discard block
 block discarded – undo
156 156
     public function importBundlesTranslationFiles($bundles, $isBundle = false)
157 157
     {
158 158
         foreach ($bundles as $bundle) {
159
-            $dir = $isBundle?
160
-                dir($bundle->getPath())->path :
161
-                dirname((new \ReflectionClass($bundle))->getFileName());
159
+            $dir = $isBundle ?
160
+                dir($bundle->getPath())->path : dirname((new \ReflectionClass($bundle))->getFileName());
162 161
 
163 162
             $this->importDirTranslationFiles($dir);
164 163
         }
@@ -176,12 +175,12 @@  discard block
 block discarded – undo
176 175
         $finder = null;
177 176
 
178 177
         if (preg_match('#^win#i', PHP_OS)) {
179
-            $path = preg_replace('#' . preg_quote(DIRECTORY_SEPARATOR, '#') . '#', '/', $path);
178
+            $path = preg_replace('#'.preg_quote(DIRECTORY_SEPARATOR, '#').'#', '/', $path);
180 179
         } else {
181 180
             $path = str_replace('\\', '/', $path);
182 181
         }
183 182
 
184
-        $dir = $path . '/Resources/translations';
183
+        $dir = $path.'/Resources/translations';
185 184
 
186 185
         if (is_dir($dir)) {
187 186
             $finder = new Finder();
Please login to merge, or discard this patch.
Service/TranslationManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         }
122 122
 
123 123
         foreach ($content as $key => $value) {
124
-            $method = 'set' . ucfirst($key);
124
+            $method = 'set'.ucfirst($key);
125 125
 
126 126
             if (!method_exists($document, $method)) {
127 127
                 throw new \LogicException('Illegal variable provided for translation');
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     /**
53 53
      * @param string $id
54 54
      *
55
-     * @return Translation|object
55
+     * @return null|\ReflectionClass
56 56
      */
57 57
     public function get($id)
58 58
     {
Please login to merge, or discard this patch.
Service/Export/ExportManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
             foreach ($messages as $key => $message) {
131 131
                 if ($message->getStatus() === Message::DIRTY || $force) {
132 132
                     $path = sprintf(
133
-                        '%s' . DIRECTORY_SEPARATOR . '%s.%s.%s',
133
+                        '%s'.DIRECTORY_SEPARATOR.'%s.%s.%s',
134 134
                         $translation->getPath(),
135 135
                         $translation->getDomain(),
136 136
                         $message->getLocale(),
Please login to merge, or discard this patch.
Controller/ApiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     {
75 75
         $cwd = getcwd();
76 76
         if (substr($cwd, -3) === 'web') {
77
-            chdir($cwd . DIRECTORY_SEPARATOR . '..');
77
+            chdir($cwd.DIRECTORY_SEPARATOR.'..');
78 78
         }
79 79
 
80 80
         $output = ['error' => false];
Please login to merge, or discard this patch.
Command/ExportCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $domains = $input->getOption('domains');
67 67
         $export->export($domains, $input->getOption('force'));
68 68
 
69
-        $prettify = function ($array) {
69
+        $prettify = function($array) {
70 70
             return !empty($array) ? implode('</comment><info>`, `</info><comment>', $array) : 'all';
71 71
         };
72 72
 
Please login to merge, or discard this patch.