Completed
Push — master ( d7e919...298f7d )
by Simonas
64:16
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.
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.
Service/Import/ImportManager.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
      *
134 134
      * @param string $domain
135 135
      * @param string $path
136
-     * @param array $directories
136
+     * @param string[] $directories
137 137
      *
138 138
      * @return array
139 139
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@
 block discarded – undo
141 141
     {
142 142
         if (!$directories) {
143 143
             $directories = [
144
-                $path . 'Resources/translations',
145
-                $this->kernelRoot . DIRECTORY_SEPARATOR . $domain . DIRECTORY_SEPARATOR . 'translations',
144
+                $path.'Resources/translations',
145
+                $this->kernelRoot.DIRECTORY_SEPARATOR.$domain.DIRECTORY_SEPARATOR.'translations',
146 146
             ];
147 147
         }
148 148
 
Please login to merge, or discard this patch.
Service/TranslationManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
     /**
112 112
      * @param string $id
113 113
      *
114
-     * @return Translation|object
114
+     * @return null|\ReflectionClass
115 115
      */
116 116
     public function getTranslation($id)
117 117
     {
Please login to merge, or discard this patch.
Command/ImportCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             $translations = $import->getTranslationsFromFiles(
77 77
                 $domain,
78 78
                 null,
79
-                [$this->getContainer()->getParameter('kernel.root_dir') . 'translations']
79
+                [$this->getContainer()->getParameter('kernel.root_dir').'translations']
80 80
             );
81 81
             $import->writeToStorage($domain, $translations);
82 82
             $output->writeln('<info>*** Importing bundles translation files ***</info>');
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
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             foreach ($messages as $key => $message) {
124 124
                 if ($message->getStatus() === Message::DIRTY || $force) {
125 125
                     $path = sprintf(
126
-                        '%s' . DIRECTORY_SEPARATOR . '%s.%s.%s',
126
+                        '%s'.DIRECTORY_SEPARATOR.'%s.%s.%s',
127 127
                         $translation->getPath(),
128 128
                         'messages',
129 129
                         $message->getLocale(),
Please login to merge, or discard this patch.