File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44 "type" : " library" ,
55 "require" : {
66 "php" : " ^7.0" ,
7- "rapidwebltd/rw -file-cache" : " ^1.2 " ,
7+ "divineomega/do -file-cache" : " ^2.0 " ,
88 "divineomega/is_offensive" : " ^1.0" ,
99 "davechild/textstatistics" : " ^1.0" ,
1010 "doctrine/inflector" : " ^1.2"
Original file line number Diff line number Diff line change 33namespace DivineOmega \WordInfo ;
44
55use DaveChild \TextStatistics \Syllables ;
6- use rapidweb \ RWFileCache \ RWFileCache ;
6+ use DivineOmega \ DOFileCache \ DOFileCache ;
77
88class Word
99{
1010 /** @var string|null */
1111 private $ word ;
1212
13- /** @var RWFileCache |null */
13+ /** @var DOFileCache |null */
1414 private $ cache ;
1515
1616 /**
@@ -43,7 +43,7 @@ public function __toString()
4343 */
4444 private function setupCache ()
4545 {
46- $ this ->cache = new RWFileCache ();
46+ $ this ->cache = new DOFileCache ();
4747 $ this ->cache ->changeConfig (['cacheDirectory ' => '/tmp/php-word-info-cache/ ' ]);
4848 }
4949
@@ -164,7 +164,7 @@ public function portmanteaus()
164164
165165 foreach ($ responseItems as $ responseItem ) {
166166 $ responseItemPortmanteaus = array_map (function ($ portmanteauString ) {
167- return new Word ($ portmanteauString );
167+ return new self ($ portmanteauString );
168168 }, explode (', ' , $ responseItem ->combined ));
169169
170170 $ portmanteaus = array_merge ($ portmanteaus , $ responseItemPortmanteaus );
You can’t perform that action at this time.
0 commit comments