Completed
Pull Request — develop (#501)
by ANTHONIUS
10:57
created
module/Core/src/Form/SummaryFormButtonsFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@
 block discarded – undo
103 103
      */
104 104
     public function setFormId($formId)
105 105
     {
106
-        $this->formId = $formId . '-';
106
+        $this->formId = $formId.'-';
107 107
        
108 108
         foreach ($this as $button) {
109
-            $button->setAttribute('id', $this->formId . $button->getAttribute('id'));
109
+            $button->setAttribute('id', $this->formId.$button->getAttribute('id'));
110 110
         }
111 111
         return $this;
112 112
     }
Please login to merge, or discard this patch.
module/Core/src/Form/LocalizationSettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             )
47 47
         );
48 48
 
49
-        $timezones=array_merge(
49
+        $timezones = array_merge(
50 50
             \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA),
51 51
             \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA),
52 52
             \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA),
Please login to merge, or discard this patch.
module/Core/src/Form/BaseForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function init()
37 37
     {
38 38
         if (empty($this->baseFieldset)) {
39
-            throw new \InvalidArgumentException('For the Form ' . get_class($this) . ' there is no Basefieldset');
39
+            throw new \InvalidArgumentException('For the Form '.get_class($this).' there is no Basefieldset');
40 40
         }
41 41
         $this->addBaseFieldset();
42 42
         $this->addButtonsFieldset();
Please login to merge, or discard this patch.
module/Core/src/Module.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
             // assets-install info
62 62
             'assets-install [--symlink] [--relative] <target>' => 'Install assets in the given target',
63 63
             'The assets-install command will install assets in the given <target> directory. If no option given this command will copy assets into the target.',
64
-            ['--symlink','This option will install assets using absolute symlink directory'],
65
-            ['--relative','This option will install assets using relative symlink'],
64
+            ['--symlink', 'This option will install assets using absolute symlink directory'],
65
+            ['--relative', 'This option will install assets using relative symlink'],
66 66
             ""
67 67
         ];
68 68
 
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
                 'subsplit [--heads] [--tags] [--skip-update] [--dry-run] [--verbose|v]' => 'Subsplit development repository',
73 73
                 'The subsplit command will automatically subsplit all changes in the develop into github yawik/* repository'.PHP_EOL
74 74
                 .'This command will available only in the Yawik main development repository',
75
-                ['--heads','If defined then will subsplit that branch.'],
76
-                ['--tags','Subsplit given tags only'],
77
-                ['--skip-update','Directly subsplit repository without pull remote branch'],
78
-                ['--dry-run','Only show the list of git command that will be executed.'],
75
+                ['--heads', 'If defined then will subsplit that branch.'],
76
+                ['--tags', 'Subsplit given tags only'],
77
+                ['--skip-update', 'Directly subsplit repository without pull remote branch'],
78
+                ['--dry-run', 'Only show the list of git command that will be executed.'],
79 79
                 ['--verbose | -v', 'Show debug output.'],
80 80
             ]);
81 81
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         $eventManager->attach(
145 145
             MvcEvent::EVENT_DISPATCH_ERROR,
146
-            function ($event) {
146
+            function($event) {
147 147
                 if ($event instanceof MvcEvent) {
148 148
                     $application = $event->getApplication();
149 149
                     
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         );
160 160
         $eventManager->attach(
161 161
             MvcEvent::EVENT_DISPATCH,
162
-            function ($event) use ($eventManager) {
162
+            function($event) use ($eventManager) {
163 163
                 $eventManager->trigger('postDispatch', $event);
164 164
             },
165 165
             -150
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function getConfig()
177 177
     {
178
-        $config = include __DIR__ . '/../config/module.config.php';
178
+        $config = include __DIR__.'/../config/module.config.php';
179 179
         return $config;
180 180
     }
181 181
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public function init(ModuleManager $manager)
186 186
     {
187 187
         $events = $manager->getEventManager();
188
-        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this,'onMergeConfig']);
188
+        $events->attach(ModuleEvent::EVENT_MERGE_CONFIG, [$this, 'onMergeConfig']);
189 189
     }
190 190
 
191 191
     /**
Please login to merge, or discard this patch.
module/Core/src/View/Helper/SocialButtons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     public function __invoke()
44 44
     {
45
-        $SocialNetworksEnabled=[];
45
+        $SocialNetworksEnabled = [];
46 46
         foreach ($this->config['hybridauth'] as $key => $val) {
47 47
             if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())) {
48 48
                 $SocialNetworksEnabled[strtolower($key)] = $key;
Please login to merge, or discard this patch.
module/Core/src/View/Helper/Rating.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,12 +67,12 @@
 block discarded – undo
67 67
         
68 68
         $output = '<div class="br-widget br-readonly '
69 69
                 . ('compact' == $mode ? ' br-compact' : '')
70
-                . '" title="' . $this->getView()->translate(self::$ratingValueMap[$rating]) . '">';
71
-        for ($i=1; $i<6; $i++) {
70
+                . '" title="'.$this->getView()->translate(self::$ratingValueMap[$rating]).'">';
71
+        for ($i = 1; $i < 6; $i++) {
72 72
             $class = $i <= $rating ? 'br-selected' : '';
73 73
             $class .= $i == $rating ? ' br-current' : '';
74 74
             
75
-            $output .= '<a class="' . $class . '"></a>';
75
+            $output .= '<a class="'.$class.'"></a>';
76 76
         }
77 77
         $output .= '</div>';
78 78
         
Please login to merge, or discard this patch.
module/Core/src/View/Helper/Link.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                        : '';
59 59
         
60 60
         if (false !== strpos($urlOrEmail, '@')) {
61
-            $urlOrEmail = 'mailto:' . $urlOrEmail;
61
+            $urlOrEmail = 'mailto:'.$urlOrEmail;
62 62
         }
63 63
         
64 64
         return sprintf('<a %s href="%s">%s</a>', $attributesStr, $urlOrEmail, $label);
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $attr       = array();
74 74
         
75 75
         foreach ($attributes as $name => $value) {
76
-            $attr[] = $escape($name) . '="' . $escapeAttr($value) . '"';
76
+            $attr[] = $escape($name).'="'.$escapeAttr($value).'"';
77 77
         }
78 78
         
79 79
         return implode(' ', $attr);
Please login to merge, or discard this patch.
module/Core/src/View/Helper/LanguageSwitcher.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 {
29 29
 
30 30
     /**
31
-    * @var string
32
-    */
31
+     * @var string
32
+     */
33 33
     protected $partial = 'partial/language-switcher';
34 34
 
35 35
     /**
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     {
42 42
 
43 43
         $options = array_merge([
44
-                                   'partial' => $this->partial,
45
-                               ], $options);
44
+                                    'partial' => $this->partial,
45
+                                ], $options);
46 46
 
47 47
         $view = $this->view;
48 48
         $partial = $options['partial'];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $partial = $options['partial'];
49 49
 
50 50
 
51
-        $variables=[];
51
+        $variables = [];
52 52
 
53 53
         return $view->partial($partial, $variables);
54 54
     }
Please login to merge, or discard this patch.
module/Core/src/View/Helper/Salutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function __invoke($gender)
24 24
     {
25
-        $return="";
25
+        $return = "";
26 26
         switch ($gender) {
27 27
             case "male":
28 28
                 $return = "Mr.";
Please login to merge, or discard this patch.