@@ -22,16 +22,16 @@ |
||
22 | 22 | public function testFactory($config) |
23 | 23 | { |
24 | 24 | $serviceManager = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager') |
25 | - ->disableOriginalConstructor()->getMock(); |
|
25 | + ->disableOriginalConstructor()->getMock(); |
|
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | 29 | if (isset($config['core_options'])) { |
30 | 30 | $coreOptions = new \Core\Options\ModuleOptions($config['core_options']); |
31 | 31 | $serviceManager->expects($this->exactly(2)) |
32 | - ->method('get') |
|
33 | - ->withConsecutive(array('Config'), array('Core/Options')) |
|
34 | - ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
32 | + ->method('get') |
|
33 | + ->withConsecutive(array('Config'), array('Core/Options')) |
|
34 | + ->will($this->onConsecutiveCalls($config, $coreOptions)); |
|
35 | 35 | } else { |
36 | 36 | $serviceManager->expects($this->once())->method('get')->with('Config')->willReturn($config); |
37 | 37 | } |
@@ -51,12 +51,12 @@ |
||
51 | 51 | $target = new CheckJobCreatePermissionListener(); |
52 | 52 | |
53 | 53 | $events = $this->getMockBuilder('\Zend\EventManager\SharedEventManager') |
54 | - ->disableOriginalConstructor() |
|
55 | - ->getMock(); |
|
54 | + ->disableOriginalConstructor() |
|
55 | + ->getMock(); |
|
56 | 56 | |
57 | 57 | $events->expects($this->once()) |
58 | - ->method('attach') |
|
59 | - ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
58 | + ->method('attach') |
|
59 | + ->with('Jobs/Acl/Assertion/Create', AssertionEvent::EVENT_ASSERT, array($target, 'checkCreatePermission')); |
|
60 | 60 | |
61 | 61 | $target->attachShared($events); |
62 | 62 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | public function testProvidesFluentInterface() |
58 | 58 | { |
59 | 59 | $this->assertSame($this->filter, $this->filter->setStripParams(array()), |
60 | - 'Fluent interface broken in method SetStripParams'); |
|
60 | + 'Fluent interface broken in method SetStripParams'); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * Gets the Day of the date of birth |
31 | 31 | * |
32 | 32 | * @return string |
33 | - */ |
|
33 | + */ |
|
34 | 34 | public function getBirthDay(); |
35 | 35 | |
36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * Gets the month of the date of birth |
45 | 45 | * |
46 | 46 | * @return string |
47 | - */ |
|
47 | + */ |
|
48 | 48 | public function getBirthMonth(); |
49 | 49 | |
50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Gets the Year of the date of birth. |
59 | 59 | * |
60 | 60 | * @return string |
61 | - */ |
|
61 | + */ |
|
62 | 62 | public function getBirthYear(); |
63 | 63 | |
64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * Gets the gender |
112 | 112 | * |
113 | 113 | * @return string |
114 | - */ |
|
114 | + */ |
|
115 | 115 | public function getGender(); |
116 | 116 | |
117 | 117 | |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * Gets the users street |
155 | 155 | * |
156 | 156 | * @return string |
157 | - */ |
|
157 | + */ |
|
158 | 158 | public function getStreet(); |
159 | 159 | |
160 | 160 | /** |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | public function init() |
29 | 29 | { |
30 | 30 | $this->setName('data') |
31 | - ->setLabel('Group data') |
|
32 | - ->setUseAsBaseFieldset(true) |
|
33 | - ->setHydrator(new EntityHydrator()); |
|
31 | + ->setLabel('Group data') |
|
32 | + ->setUseAsBaseFieldset(true) |
|
33 | + ->setHydrator(new EntityHydrator()); |
|
34 | 34 | |
35 | 35 | $this->add( |
36 | 36 | array( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'required' => true, |
70 | 70 | 'validators' => array( |
71 | 71 | array('name' => 'Auth/Form/UniqueGroupName', |
72 | - 'options' => array( |
|
72 | + 'options' => array( |
|
73 | 73 | 'allowName' => 'edit' == $this->getOption('mode') |
74 | 74 | ? $this->getObject()->getName() |
75 | 75 | : null |
@@ -93,8 +93,8 @@ |
||
93 | 93 | // Create a file with the class/file map. |
94 | 94 | // Stupid syntax highlighters make separating < from PHP declaration necessary |
95 | 95 | $content = '<' . "?php\n" |
96 | - . "\n" |
|
97 | - . 'return ' . var_export($config, true) . ';'; |
|
96 | + . "\n" |
|
97 | + . 'return ' . var_export($config, true) . ';'; |
|
98 | 98 | |
99 | 99 | // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op |
100 | 100 | $content = str_replace("\\'", "'", $content); |
@@ -211,14 +211,14 @@ |
||
211 | 211 | { |
212 | 212 | return $this->repository; |
213 | 213 | } |
214 | - /** |
|
215 | - * @param SocialProfilePlugin |
|
216 | - * @return HybridAuth |
|
217 | - */ |
|
218 | - public function setSocialProfilePlugin(SocialProfilePlugin $socialProfilePlugin) |
|
219 | - { |
|
220 | - $this->socialProfilePlugin = $socialProfilePlugin; |
|
214 | + /** |
|
215 | + * @param SocialProfilePlugin |
|
216 | + * @return HybridAuth |
|
217 | + */ |
|
218 | + public function setSocialProfilePlugin(SocialProfilePlugin $socialProfilePlugin) |
|
219 | + { |
|
220 | + $this->socialProfilePlugin = $socialProfilePlugin; |
|
221 | 221 | |
222 | - return $this; |
|
223 | - } |
|
222 | + return $this; |
|
223 | + } |
|
224 | 224 | } |
@@ -61,14 +61,14 @@ |
||
61 | 61 | return $this->useDefaultValidation ? \Zend\Form\Form::isValid() : parent::isValid(); |
62 | 62 | } |
63 | 63 | |
64 | - /** |
|
65 | - * @param bool $bool |
|
66 | - * @return SocialProfiles |
|
67 | - */ |
|
68 | - public function setUseDefaultValidation($bool) |
|
69 | - { |
|
70 | - $this->useDefaultValidation = (bool)$bool; |
|
64 | + /** |
|
65 | + * @param bool $bool |
|
66 | + * @return SocialProfiles |
|
67 | + */ |
|
68 | + public function setUseDefaultValidation($bool) |
|
69 | + { |
|
70 | + $this->useDefaultValidation = (bool)$bool; |
|
71 | 71 | |
72 | - return $this; |
|
73 | - } |
|
72 | + return $this; |
|
73 | + } |
|
74 | 74 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | ]; |
34 | 34 | |
35 | 35 | // do nothing for allowed routes |
36 | - if (in_array($routeName, $allowedRoutes)) |
|
36 | + if (in_array($routeName, $allowedRoutes)) |
|
37 | 37 | { |
38 | 38 | return; |
39 | 39 | } |