File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 "require" : {
3434 "php" : " >=5.5" ,
3535 "simplesamlphp/composer-module-installer" : " ~1.0" ,
36- "simplesamlphp/simplesamlphp-module-oauth" : " ~1.0" ,
37- "webmozart/assert" : " ^1.4"
36+ "simplesamlphp/simplesamlphp-module-oauth" : " ~1.0"
3837 },
3938 "require-dev" : {
4039 "simplesamlphp/simplesamlphp" : " ^1.17" ,
Original file line number Diff line number Diff line change 22
33namespace SimpleSAML \Module \authtwitter \Auth \Source ;
44
5- use Webmozart \Assert \Assert ;
6-
75$ default = dirname (dirname (dirname (dirname (dirname (__FILE__ ))))).'/oauth/libextinc/OAuth.php ' ;
86$ travis = dirname (dirname (dirname (dirname (__FILE__ )))).'/vendor/simplesamlphp/simplesamlphp/modules/oauth/libextinc/OAuth.php ' ;
97
@@ -62,8 +60,8 @@ class Twitter extends \SimpleSAML\Auth\Source
6260 */
6361 public function __construct ($ info , $ config )
6462 {
65- Assert:: isArray ( $ info );
66- Assert:: isArray ( $ config );
63+ assert ( is_array ( $ info) );
64+ assert ( is_array ( $ config) );
6765
6866 // Call the parent constructor first, as required by the interface
6967 parent ::__construct ($ info , $ config );
@@ -87,7 +85,7 @@ public function __construct($info, $config)
8785 */
8886 public function authenticate (&$ state )
8987 {
90- Assert:: isArray ( $ state );
88+ assert ( is_array ( $ state) );
9189
9290 // We are going to need the authId in order to retrieve this authentication source later
9391 $ state [self ::AUTHID ] = $ this ->authId ;
You can’t perform that action at this time.
0 commit comments