WIP add namespaces to all classes

This commit is contained in:
elliot sawyer 2017-04-21 12:27:01 +12:00
parent 9aac0ff1aa
commit abdfe1947f
34 changed files with 37 additions and 33 deletions

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\ClassInfo;
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
use SilverStripe\Core\ClassInfo;
use SilverStripe\ORM\DataObject;
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
/**
* Represents a search query
*

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
/**
* This class is responsible for capturing changes to DataObjects and triggering index updates of the resulting dirty index
* items.

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
use SilverStripe\Core\ClassInfo;
/**
* A Search Variant handles decorators and other situations where the items to reindex or search through are modified

View File

@ -1,4 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
class SearchVariantSiteTreeSubsitesPolyhome extends SearchVariant
{

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
class SearchVariantSubsites extends SearchVariant
{
public function appliesToEnvironment()

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search;
class SearchVariantVersioned extends SearchVariant
{
public function appliesToEnvironment()

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
/**
* Provides batching of search updates
*/

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
if (!interface_exists('QueuedJob')) {
return;
}

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
class SearchUpdateImmediateProcessor extends SearchUpdateProcessor
{
public function triggerProcessing()

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
class SearchUpdateMessageQueueProcessor extends SearchUpdateProcessor
{
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
abstract class SearchUpdateProcessor
{
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Search\Processors;
if (!interface_exists('QueuedJob')) {
return;
}

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
class Solr3Service_Core extends SolrService_Core
{
}

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
class Solr4Service_Core extends SolrService_Core
{
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
/**
* Class SolrConfigStore
*

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
Solr::include_client_api();
use SilverStripe\Dev\BuildTask;

View File

@ -1,7 +1,8 @@
<?php
namespace SilverStripe\FullTextSearch\Solr;
Solr::include_client_api();
use SilverStripe\Core\Config\Config;
use \Apache_Solr_Service;
/**
* The API for accessing a specific core of a Solr server. Exactly the same as Apache_Solr_Service for now.

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
use Psr\Log\LoggerInterface;
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
use Psr\Log\LoggerInterface;
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
use Psr\Log\LoggerInterface;
/**

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
use Psr\Log\LoggerInterface;
if (!class_exists('MessageQueue')) {

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
use Psr\Log\LoggerInterface;
if (!interface_exists('QueuedJob')) {

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
if (!interface_exists('QueuedJob')) {
return;
}

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
if (!interface_exists('QueuedJob')) {
return;
}

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
use Monolog\Logger;
use Psr\Log\LoggerInterface;

View File

@ -1,5 +1,6 @@
<?php
namespace SilverStripe\FullTextSearch\Utils;
use Iterator;
class CombinationsArrayIterator implements Iterator
{
protected $arrays;

View File

@ -1,5 +1,6 @@
<?php
namespace SilverStripe\FullTextSearch\Utils;
use Iterator;
class MultipleArrayIterator implements Iterator
{
protected $arrays;

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Utils;
class WebDAV
{
public static function curl_init($url, $method)

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Utils\Logging;
use Monolog\Formatter\FormatterInterface;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\HandlerInterface;

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Utils\Logging;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Logger;

View File

@ -1,5 +1,5 @@
<?php
namespace SilverStripe\FullTextSearch\Utils\Logging;
use Psr\Log;
interface SearchLogFactory