Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Core/src/Service/EntityEraser/EntityEraserEvents.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function setEventPrototype(EventInterface $prototype)
36 36
     {
37 37
         if (!$prototype instanceof DependencyResultEvent) {
38
-            throw new \InvalidArgumentException('This event manager only accepts events of the type ' . DependencyResultEvent::class);
38
+            throw new \InvalidArgumentException('This event manager only accepts events of the type '.DependencyResultEvent::class);
39 39
         }
40 40
 
41 41
         parent::setEventPrototype($prototype);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     protected function triggerListeners(EventInterface $event, callable $callback = null)
56 56
     {
57 57
         if (!$event instanceof DependencyResultEvent) {
58
-            throw new \InvalidArgumentException('This event manager only accepts events of the type ' . DependencyResultEvent::class);
58
+            throw new \InvalidArgumentException('This event manager only accepts events of the type '.DependencyResultEvent::class);
59 59
         }
60 60
 
61 61
         $results = parent::triggerListeners($event, $callback);
Please login to merge, or discard this patch.
module/Core/src/EventManager/ListenerAggregateTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 {
51 51
     use ZfListenerAggregateTrait;
52 52
 
53
-    public function attach(EventManagerInterface $events, $priority=1)
53
+    public function attach(EventManagerInterface $events, $priority = 1)
54 54
     {
55 55
         return $this->attachEvents($events);
56 56
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $method = $spec[1];
90 90
             $priority = isset($spec[2]) ? $spec[2] : 0;
91 91
 
92
-            $this->listeners[] = $events->attach($event, [ $this, $method ], $priority);
92
+            $this->listeners[] = $events->attach($event, [$this, $method], $priority);
93 93
         }
94 94
 
95 95
         return $this;
Please login to merge, or discard this patch.
module/Settings/src/Form/SettingsFieldset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName;
75 75
 
76 76
             if (is_array($inputLabel)) {
77
-                $priority = isset($inputLabel[1])?$inputLabel[1]:0;
77
+                $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0;
78 78
                 $inputLabel = $inputLabel[0];
79 79
             } else {
80 80
                 $priority = 0;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     ),
89 89
             );
90 90
             if (is_bool($value)) {
91
-                $input['type']= 'Checkbox';
91
+                $input['type'] = 'Checkbox';
92 92
                 $input['attributes']['checked'] = $value;
93 93
             } else {
94 94
                 $input['attributes']['value'] = $value;
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         foreach ($children as $name => $child) {
100 100
             $objectClass  = ltrim(get_class($settings), '\\');
101 101
             $moduleName   = substr($objectClass, 0, strpos($objectClass, '\\'));
102
-            $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset';
102
+            $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset';
103 103
             
104 104
             if ($this->formManager->has($fieldsetName)) {
105 105
                 $fieldset = $this->formManager->get($fieldsetName);
Please login to merge, or discard this patch.
module/Settings/src/Form/AbstractSettingsForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
         $this->setAttribute('method', 'post');
72 72
         $object = $this->getObject();
73
-        $fieldsetName = $object->getModuleName() . '/SettingsFieldset';
73
+        $fieldsetName = $object->getModuleName().'/SettingsFieldset';
74 74
         
75 75
         if ($this->formManager->has($fieldsetName)) {
76 76
             $fieldset = $this->formManager->get($fieldsetName);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->add([
89 89
             'type' => 'DefaultButtonsFieldset'
90 90
         ]);
91
-        $this->isBuild=true;
91
+        $this->isBuild = true;
92 92
     }
93 93
         
94 94
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     
107 107
     public function setName($name)
108 108
     {
109
-        parent::setName(strtolower($name) . '-settings');
109
+        parent::setName(strtolower($name).'-settings');
110 110
         $urlHelper = $this->viewHelper->get('url');
111 111
         
112 112
         $url = $urlHelper('lang/settings', array('module' => $name), true);
Please login to merge, or discard this patch.
module/Settings/src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
      */
46 46
     public function getConfig()
47 47
     {
48
-        return include __DIR__ . '/../config/module.config.php';
48
+        return include __DIR__.'/../config/module.config.php';
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
module/Settings/src/Entity/SettingsContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function __get($property)
140 140
     {
141
-        $getter = "get" . ucfirst($property);
141
+        $getter = "get".ucfirst($property);
142 142
         if (method_exists($this, $getter)) {
143 143
             return $this->$getter();
144 144
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $this->checkWriteAccess();
161 161
         
162
-        $setter = 'set' . ucfirst($property);
162
+        $setter = 'set'.ucfirst($property);
163 163
         if (method_exists($this, $setter)) {
164 164
             $this->$setter($value);
165 165
             return;
Please login to merge, or discard this patch.
src/Entity/Hydrator/Strategy/DisableElementsCapableFormSettings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function filterArrayStrings($array, $search, $replace)
58 58
     {
59 59
         $return = array();
60
-        foreach ((array)$array as $key => $value) {
60
+        foreach ((array) $array as $key => $value) {
61 61
             $key = str_replace($search, $replace, $key);
62 62
             $value = is_array($value)
63 63
                 ? $this->filterArrayStrings($value, $search, $replace)
Please login to merge, or discard this patch.
module/Settings/src/Controller/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $mvcEvent->setParam('__settings_active_module', $moduleName);
86 86
         
87 87
         $formManager = $this->formManager;
88
-        $formName = $moduleName . '/SettingsForm';
88
+        $formName = $moduleName.'/SettingsForm';
89 89
         if (!$formManager->has($formName)) {
90 90
             $formName = "Settings/Form";
91 91
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $valid   = $form->isValid();
109 109
             $partial = $this->viewHelper->get('partial');
110 110
             $text    = $valid
111
-                     ?  /*@translate*/'Changes successfully saved'
111
+                     ? /*@translate*/'Changes successfully saved'
112 112
                      :  /*@translate*/'Changes could not be saved';
113 113
             $this->notification()->success($translator->translate($text));
114 114
 
Please login to merge, or discard this patch.
module/Install/src/Factory/Controller/LazyControllerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     
34 34
     public function canCreate(ContainerInterface $container, $requestedName)
35 35
     {
36
-        list($module, ) = explode('\\', __NAMESPACE__, 2);
37
-        return strstr($requestedName, $module . '\Controller') !== false;
36
+        list($module,) = explode('\\', __NAMESPACE__, 2);
37
+        return strstr($requestedName, $module.'\Controller') !== false;
38 38
     }
39 39
     
40 40
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
Please login to merge, or discard this patch.