@@ -135,7 +135,7 @@ |
||
| 135 | 135 | $hybridAuth->restoreSessionData($sessionDataStored); |
| 136 | 136 | } |
| 137 | 137 | $adapter = $hybridAuth->authenticate($this->providerKey); |
| 138 | - $sessionData = $hybridAuth->getSessionData(); |
|
| 138 | + $sessionData = $hybridAuth->getSessionData(); |
|
| 139 | 139 | if ($sessionData != $sessionDataStored) { |
| 140 | 140 | $user->updateAuthSession($this->providerKey, $sessionData); |
| 141 | 141 | } |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | /** {@inheritdoc} */ |
| 178 | 178 | public function setLogin($login) |
| 179 | 179 | { |
| 180 | - $this->login = trim((String)$login); |
|
| 180 | + $this->login = trim((String) $login); |
|
| 181 | 181 | return $this; |
| 182 | 182 | } |
| 183 | 183 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | */ |
| 22 | 22 | class MongoDbConnectionString extends AbstractValidator |
| 23 | 23 | { |
| 24 | - const INVALID = 'invalidConnectionString'; |
|
| 24 | + const INVALID = 'invalidConnectionString'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Options |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var array() |
| 63 | 63 | */ |
| 64 | - protected $enableLogins = ['facebook','xing','linkedin','google','github']; |
|
| 64 | + protected $enableLogins = ['facebook', 'xing', 'linkedin', 'google', 'github']; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Enable Registration |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function testSetGetAttachmentsMimeType() |
| 43 | 43 | { |
| 44 | - $mime=array('image','text/plain'); |
|
| 44 | + $mime = array('image', 'text/plain'); |
|
| 45 | 45 | |
| 46 | 46 | $this->options->setAttachmentsMimeType($mime); |
| 47 | 47 | $this->assertEquals($mime, $this->options->getAttachmentsMimeType()); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function testSetGetContactImageMimeType() |
| 65 | 65 | { |
| 66 | - $mime=array('image'); |
|
| 66 | + $mime = array('image'); |
|
| 67 | 67 | |
| 68 | 68 | $this->options->setContactImageMimeType($mime); |
| 69 | 69 | $this->assertEquals($mime, $this->options->getContactImageMimeType()); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public function testSetGetContactImageMaxSize() |
| 77 | 77 | { |
| 78 | - $size=765432; |
|
| 78 | + $size = 765432; |
|
| 79 | 79 | |
| 80 | 80 | $this->options->setContactImageMaxSize($size); |
| 81 | 81 | $this->assertEquals($size, $this->options->getContactImageMaxSize()); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | public function testSetGetAllowedMimeTypes() |
| 89 | 89 | { |
| 90 | - $mime=array('image','application/pdf'); |
|
| 90 | + $mime = array('image', 'application/pdf'); |
|
| 91 | 91 | |
| 92 | 92 | $this->options->setAllowedMimeTypes($mime); |
| 93 | 93 | $this->assertEquals($mime, $this->options->getAllowedMimeTypes()); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function testSetGetRole() |
| 41 | 41 | { |
| 42 | - $input='user'; |
|
| 42 | + $input = 'user'; |
|
| 43 | 43 | $this->options->setRole($input); |
| 44 | 44 | $this->assertEquals($input, $this->options->getRole()); |
| 45 | 45 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function testSetGetFromName() |
| 52 | 52 | { |
| 53 | - $input='Thomas Müller'; |
|
| 53 | + $input = 'Thomas Müller'; |
|
| 54 | 54 | $this->options->setFromName($input); |
| 55 | 55 | $this->assertEquals($input, $this->options->getFromName()); |
| 56 | 56 | } |
@@ -96,16 +96,16 @@ discard block |
||
| 96 | 96 | return array( |
| 97 | 97 | array('setEnableRegistration', 'getEnableRegistration', false), |
| 98 | 98 | array('setEnableRegistration', 'getEnableRegistration', true), |
| 99 | - array(null,'getEnableRegistration', true), |
|
| 99 | + array(null, 'getEnableRegistration', true), |
|
| 100 | 100 | array('setEnableResetPassword', 'getEnableResetPassword', false), |
| 101 | 101 | array('setEnableResetPassword', 'getEnableResetPassword', true), |
| 102 | - array(null,'getEnableRegistration', true), |
|
| 102 | + array(null, 'getEnableRegistration', true), |
|
| 103 | 103 | array('setFromEmail', 'getFromEmail', '[email protected]'), |
| 104 | - array(null,'getFromEmail', '[email protected]'), |
|
| 104 | + array(null, 'getFromEmail', '[email protected]'), |
|
| 105 | 105 | array('setAuthSuffix', 'getAuthSuffix', '[email protected]'), |
| 106 | - array(null,'getAuthSuffix', ''), |
|
| 106 | + array(null, 'getAuthSuffix', ''), |
|
| 107 | 107 | array('setMailSubjectRegistration', 'getMailSubjectRegistration', 'Mail Subject'), |
| 108 | - array(null,'getMailSubjectRegistration', 'Welcome to YAWIK'), |
|
| 108 | + array(null, 'getMailSubjectRegistration', 'Welcome to YAWIK'), |
|
| 109 | 109 | ); |
| 110 | 110 | } |
| 111 | 111 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | */ |
| 116 | 116 | public function testSetGetEnableLogins() |
| 117 | 117 | { |
| 118 | - $input=['xing','linkedin']; |
|
| 118 | + $input = ['xing', 'linkedin']; |
|
| 119 | 119 | $this->options->setEnableLogins($input); |
| 120 | 120 | $this->assertEquals($input, $this->options->getEnableLogins()); |
| 121 | 121 | } |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | $filter->setUri('http://aaa.bbb.cc/ddd/'); |
| 87 | 87 | $f = $filter->filter($test['original']); |
| 88 | - preg_match_all ( '/(?:href|src)\s*=\s*"([^"]*)"/', $f, $matches); |
|
| 88 | + preg_match_all('/(?:href|src)\s*=\s*"([^"]*)"/', $f, $matches); |
|
| 89 | 89 | foreach ($matches[1] as $uri) { |
| 90 | 90 | $this->assertRegExp("/^https?:\/\//", $uri); |
| 91 | 91 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | class ParamsTest extends \PHPUnit_Framework_TestCase |
| 17 | 17 | { |
| 18 | 18 | |
| 19 | - public function getHelper(MvcEvent $e=null) |
|
| 19 | + public function getHelper(MvcEvent $e = null) |
|
| 20 | 20 | { |
| 21 | 21 | if (null == $e) { |
| 22 | 22 | $e = new MvcEvent(); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | public function testFromFilesMethod() |
| 53 | 53 | { |
| 54 | - $_FILES=array( |
|
| 54 | + $_FILES = array( |
|
| 55 | 55 | 'testFile1' => array( |
| 56 | 56 | 'name' => 'testfile1.txt', |
| 57 | 57 | 'type' => 'text/plain', |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | public function testExtendsZfAbstractHelper() |
| 29 | 29 | { |
| 30 | 30 | $options = new ModuleOptions; |
| 31 | - $target = new SocialButtons($options,[]); |
|
| 31 | + $target = new SocialButtons($options, []); |
|
| 32 | 32 | $this->assertInstanceOf('\Zend\View\Helper\AbstractHelper', $target); |
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | \ No newline at end of file |