Use fully qualified namespaces, minor fixes

This commit is contained in:
James Brooks
2014-11-25 20:24:56 +00:00
parent dd976c47e8
commit 243733459d
4 changed files with 25 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
<?php
use Watson\Validating\ValidatingTrait;
use \Watson\Validating\ValidatingTrait;
class Component extends Eloquent implements Dingo\Api\Transformer\TransformableInterface {
class Component extends Eloquent implements \Dingo\Api\Transformer\TransformableInterface {
use ValidatingTrait;
protected $rules = [

View File

@@ -1,8 +1,8 @@
<?php
use Watson\Validating\ValidatingTrait;
use \Watson\Validating\ValidatingTrait;
class Incident extends Eloquent implements Dingo\Api\Transformer\TransformableInterface {
class Incident extends Eloquent implements \Dingo\Api\Transformer\TransformableInterface {
use ValidatingTrait;
use \Illuminate\Database\Eloquent\SoftDeletingTrait;

View File

@@ -1,7 +1,7 @@
<?php
use Watson\Validating\ValidatingTrait;
use Illuminate\Database\Eloquent\SoftDeletingTrait;
use \Watson\Validating\ValidatingTrait;
use \Illuminate\Database\Eloquent\SoftDeletingTrait;
class Subscriber extends Eloquent {
use ValidatingTrait;

View File

@@ -1,26 +1,26 @@
<?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
use \Illuminate\Auth\UserTrait;
use \Illuminate\Auth\UserInterface;
use \Illuminate\Auth\Reminders\RemindableTrait;
use \Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
class User extends Eloquent implements UserInterface, RemindableInterface {
use UserTrait, RemindableTrait;
use UserTrait, RemindableTrait;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('password', 'remember_token');
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = ['password', 'remember_token'];
}
}