Home
last modified time | relevance | path

Searched refs:oldContent (Results 1 – 25 of 196) sorted by relevance

12345678

/dports/www/mediawiki135/mediawiki-1.35.5/includes/diff/
H A DSlotDiffRenderer.php46 * @param Content|null $oldContent
50 abstract public function getDiff( Content $oldContent = null, Content $newContent = null ); argument
79 Content &$oldContent = null, Content &$newContent = null, $allowedClasses = null
81 if ( !$oldContent && !$newContent ) {
89 Assert::parameterType( $allowedClasses . '|null', $oldContent, '$oldContent' );
93 if ( !$oldContent ) {
94 $oldContent = $newContent->getContentHandler()->makeEmptyContent();
96 $newContent = $oldContent->getContentHandler()->makeEmptyContent();
H A DUnsupportedSlotDiffRenderer.php46 public function getDiff( Content $oldContent = null, Content $newContent = null ) { argument
47 $this->normalizeContents( $oldContent, $newContent );
49 $oldModel = $oldContent->getModel();
/dports/www/mediawiki137/mediawiki-1.37.1/includes/diff/
H A DSlotDiffRenderer.php46 * @param Content|null $oldContent
50 abstract public function getDiff( Content $oldContent = null, Content $newContent = null ); argument
79 Content &$oldContent = null, Content &$newContent = null, $allowedClasses = null
81 if ( !$oldContent && !$newContent ) {
89 Assert::parameterType( $allowedClasses . '|null', $oldContent, '$oldContent' );
93 if ( !$oldContent ) {
94 $oldContent = $newContent->getContentHandler()->makeEmptyContent();
96 $newContent = $oldContent->getContentHandler()->makeEmptyContent();
H A DUnsupportedSlotDiffRenderer.php46 public function getDiff( Content $oldContent = null, Content $newContent = null ) { argument
47 $this->normalizeContents( $oldContent, $newContent );
49 $oldModel = $oldContent->getModel();
/dports/www/mediawiki136/mediawiki-1.36.3/includes/diff/
H A DSlotDiffRenderer.php46 * @param Content|null $oldContent
50 abstract public function getDiff( Content $oldContent = null, Content $newContent = null ); argument
79 Content &$oldContent = null, Content &$newContent = null, $allowedClasses = null
81 if ( !$oldContent && !$newContent ) {
89 Assert::parameterType( $allowedClasses . '|null', $oldContent, '$oldContent' );
93 if ( !$oldContent ) {
94 $oldContent = $newContent->getContentHandler()->makeEmptyContent();
96 $newContent = $oldContent->getContentHandler()->makeEmptyContent();
H A DUnsupportedSlotDiffRenderer.php46 public function getDiff( Content $oldContent = null, Content $newContent = null ) { argument
47 $this->normalizeContents( $oldContent, $newContent );
49 $oldModel = $oldContent->getModel();
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/unit/includes/diff/
H A DUnsupportedSlotDiffRendererTest.php13 $oldContent = $this->createMock( TextContent::class );
14 $oldContent->method( 'getModel' )->willReturn( CONTENT_MODEL_TEXT );
15 $oldContent->method( 'getContentHandler' )->willReturn( new TextContentHandler() );
25 yield [ '(unsupported-content-diff)', $oldContent, null ];
27 yield [ '(unsupported-content-diff)', $oldContent, $newContent ];
29 yield [ '(unsupported-content-diff2)', $oldContent, $badContent ];
37 public function testDiff( $expected, $oldContent, $newContent ) { argument
48 $this->assertStringContainsString( $expected, $sdr->getDiff( $oldContent, $newContent ) );
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/unit/includes/diff/
H A DUnsupportedSlotDiffRendererTest.php13 $oldContent = $this->createMock( TextContent::class );
14 $oldContent->method( 'getModel' )->willReturn( CONTENT_MODEL_TEXT );
15 $oldContent->method( 'getContentHandler' )->willReturn( new TextContentHandler() );
25 yield [ '(unsupported-content-diff)', $oldContent, null ];
27 yield [ '(unsupported-content-diff)', $oldContent, $newContent ];
29 yield [ '(unsupported-content-diff2)', $oldContent, $badContent ];
37 public function testDiff( $expected, $oldContent, $newContent ) { argument
48 $this->assertStringContainsString( $expected, $sdr->getDiff( $oldContent, $newContent ) );
/dports/www/mediawiki135/mediawiki-1.35.5/tests/phpunit/includes/diff/
H A DUnsupportedSlotDiffRendererTest.php9 $oldContent = new TextContent( 'Kittens' );
13 yield [ '(unsupported-content-diff)', $oldContent, null ];
15 yield [ '(unsupported-content-diff)', $oldContent, $newContent ];
17 yield [ '(unsupported-content-diff2)', $oldContent, $badContent ];
25 public function testDiff( $expected, $oldContent, $newContent ) { argument
39 $this->assertStringContainsString( $expected, $sdr->getDiff( $oldContent, $newContent ) );
H A DDifferenceEngineSlotDiffRendererTest.php11 $oldContent = ContentHandler::makeContent( 'xxx', null, CONTENT_MODEL_TEXT );
14 $diff = $slotDiffRenderer->getDiff( $oldContent, $newContent );
20 $diff = $slotDiffRenderer->getDiff( $oldContent, null );
/dports/www/mediawiki135/mediawiki-1.35.5/includes/content/
H A DContentHandler.php820 * @param Content $oldContent The page's previous content.
846 * @param Content|null $oldContent The previous text of the page.
853 Content $oldContent = null, argument
857 $oldTarget = $oldContent !== null ? $oldContent->getRedirectTarget() : null;
863 if ( $oldContent && $oldContent->getSize() > 0 &&
896 if ( $oldContent && $newContent && $oldContent->getSize() > 10 * $newContent->getSize() ) {
901 if ( $oldContent && $newContent && $oldContent->getModel() !== $newContent->getModel() ) {
921 Content $oldContent = null, argument
945 $oldTarget = $oldContent->getRedirectTarget();
961 $oldTarget = $oldContent->getRedirectTarget();
[all …]
H A DTextContentHandler.php61 * @param Content $oldContent The page's previous content.
67 public function merge3( Content $oldContent, Content $myContent, Content $yourContent ) { argument
68 $this->checkModelID( $oldContent->getModel() );
74 $old = $this->serializeContent( $oldContent, $format );
/dports/www/mediawiki137/mediawiki-1.37.1/includes/content/
H A DContentHandler.php827 * @param Content $oldContent The page's previous content.
853 * @param Content|null $oldContent The previous text of the page.
860 Content $oldContent = null, argument
864 $oldTarget = $oldContent !== null ? $oldContent->getRedirectTarget() : null;
870 if ( $oldContent && $oldContent->getSize() > 0 &&
903 if ( $oldContent && $newContent && $oldContent->getSize() > 10 * $newContent->getSize() ) {
908 if ( $oldContent && $newContent && $oldContent->getModel() !== $newContent->getModel() ) {
928 Content $oldContent = null, argument
956 $oldTarget = $oldContent->getRedirectTarget();
972 $oldTarget = $oldContent->getRedirectTarget();
[all …]
H A DTextContentHandler.php63 * @param Content $oldContent The page's previous content.
69 public function merge3( Content $oldContent, Content $myContent, Content $yourContent ) { argument
70 $this->checkModelID( $oldContent->getModel() );
76 $old = $this->serializeContent( $oldContent, $format );
/dports/www/mediawiki136/mediawiki-1.36.3/includes/content/
H A DContentHandler.php820 * @param Content $oldContent The page's previous content.
846 * @param Content|null $oldContent The previous text of the page.
853 Content $oldContent = null, argument
857 $oldTarget = $oldContent !== null ? $oldContent->getRedirectTarget() : null;
863 if ( $oldContent && $oldContent->getSize() > 0 &&
896 if ( $oldContent && $newContent && $oldContent->getSize() > 10 * $newContent->getSize() ) {
901 if ( $oldContent && $newContent && $oldContent->getModel() !== $newContent->getModel() ) {
921 Content $oldContent = null, argument
945 $oldTarget = $oldContent->getRedirectTarget();
961 $oldTarget = $oldContent->getRedirectTarget();
[all …]
H A DTextContentHandler.php61 * @param Content $oldContent The page's previous content.
67 public function merge3( Content $oldContent, Content $myContent, Content $yourContent ) { argument
68 $this->checkModelID( $oldContent->getModel() );
74 $old = $this->serializeContent( $oldContent, $format );
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/includes/content/
H A DWikitextContentHandlerTest.php96 $oldContent = new WikitextContent( $old );
100 $merged = $this->handler->merge3( $oldContent, $myContent, $yourContent );
159 $oldContent = $old === null ? null : new WikitextContent( $old );
162 $summary = $this->handler->getAutosummary( $oldContent, $newContent, $flags );
260 $oldContent = $old === null ? null : new WikitextContent( $old );
263 $tag = $this->handler->getChangeTag( $oldContent, $newContent, $flags );
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/includes/content/
H A DWikitextContentHandlerTest.php96 $oldContent = new WikitextContent( $old );
100 $merged = $this->handler->merge3( $oldContent, $myContent, $yourContent );
159 $oldContent = $old === null ? null : new WikitextContent( $old );
162 $summary = $this->handler->getAutosummary( $oldContent, $newContent, $flags );
260 $oldContent = $old === null ? null : new WikitextContent( $old );
263 $tag = $this->handler->getChangeTag( $oldContent, $newContent, $flags );
/dports/security/keybase/client-v5.7.1/go/vendor/gopkg.in/src-d/go-git.v4/storage/filesystem/dotgit/
H A Ddotgit_setref.go61 var oldContent string
64 oldContent = fmt.Sprintf("ref: %s\n", old.Target())
66 oldContent = fmt.Sprintln(old.Hash().String())
73 _, _ = f.Write([]byte(oldContent))
/dports/games/openmw/openmw-openmw-0.47.0/apps/opencs/view/filter/
H A Deditwidget.cpp113 QString oldContent (text()); in createFilterRequest() local
135 …if (oldContent.isEmpty() || !oldContent.contains (QRegExp ("^!.*$", Qt::CaseInsensitive))) //if li… in createFilterRequest()
142 oldContent.remove ('!'); in createFilterRequest()
153 ss << orAnd << oldContent.toUtf8().constData() << ','; in createFilterRequest()
170 ss << orAnd << oldContent.toUtf8().constData() <<','; in createFilterRequest()
/dports/sysutils/go-wtf/wtf-0.21.0/vendor/k8s.io/utils/utils-c2654d5206da/io/
H A Dconsistentread.go36 oldContent, err := ioutil.ReadFile(filename)
48 if bytes.Compare(oldContent, newContent) == 0 {
52 oldContent = newContent
/dports/www/mediawiki135/mediawiki-1.35.5/tests/phpunit/includes/content/
H A DWikitextContentHandlerTest.php170 $oldContent = new WikitextContent( $old );
174 $merged = $this->handler->merge3( $oldContent, $myContent, $yourContent );
233 $oldContent = $old === null ? null : new WikitextContent( $old );
236 $summary = $this->handler->getAutosummary( $oldContent, $newContent, $flags );
334 $oldContent = $old === null ? null : new WikitextContent( $old );
337 $tag = $this->handler->getChangeTag( $oldContent, $newContent, $flags );
/dports/www/gitea/gitea-1.16.5/services/comments/
H A Dcomments.go42 func UpdateComment(c *models.Comment, doer *user_model.User, oldContent string) error {
43 var needsContentHistory = c.Content != oldContent &&
52 c.CreatedUnix, oldContent, true); err != nil {
69 notification.NotifyUpdateComment(doer, c, oldContent)
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/includes/diff/
H A DDifferenceEngineSlotDiffRendererTest.php11 $oldContent = ContentHandler::makeContent( 'xxx', null, CONTENT_MODEL_TEXT );
14 $diff = $slotDiffRenderer->getDiff( $oldContent, $newContent );
20 $diff = $slotDiffRenderer->getDiff( $oldContent, null );
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/includes/diff/
H A DDifferenceEngineSlotDiffRendererTest.php11 $oldContent = ContentHandler::makeContent( 'xxx', null, CONTENT_MODEL_TEXT );
14 $diff = $slotDiffRenderer->getDiff( $oldContent, $newContent );
20 $diff = $slotDiffRenderer->getDiff( $oldContent, null );

12345678