Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Jul 5, 2017
1 parent 78ffe17 commit 2062e61
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/App/Formatter/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class JSON implements Formatter, OutputFormatter
protected function getOptions()
{
// Are we in development environment?
$dev_env = Kohana::$environment === Kohana::DEVELOPMENT;
return $dev_env ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : null;
return env('APP_DEBUG', false) ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : null;
}

// Formatter
Expand Down
8 changes: 4 additions & 4 deletions src/App/Formatter/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class Media extends API
protected function addMetadata(array $data, Entity $media)
{
// Set image dimensions from the config file
$medium_width = Kohana::$config->load('media.image_medium_width');
$medium_height = Kohana::$config->load('media.image_medium_height');
$thumbnail_width = Kohana::$config->load('media.image_thumbnail_width');
$thumbnail_height = Kohana::$config->load('media.image_thumbnail_height');
// $medium_width = Kohana::$config->load('media.image_medium_width');
// $medium_height = Kohana::$config->load('media.image_medium_height');
// $thumbnail_width = Kohana::$config->load('media.image_thumbnail_width');
// $thumbnail_height = Kohana::$config->load('media.image_thumbnail_height');

return $data + [
// Add additional URLs and sizes
Expand Down
1 change: 0 additions & 1 deletion src/App/Listener/PostSetListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function handle(EventInterface $event, $set_id = null, $post_id = null)
'set' => $set_id,
'post' => $post_id
];

$entity = $this->repo->getEntity();
$entity->setState($state);
$this->repo->create($entity);
Expand Down
13 changes: 9 additions & 4 deletions src/App/Repository/Config/data-provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@

return array(
'default_providers' => array(
Message_Type::SMS => 'smssync',
Message_Type::IVR => false,
Message_Type::EMAIL => 'email',
Message_Type::TWITTER => 'twitter'
// Message_Type::SMS => 'smssync',
// Message_Type::IVR => false,
// Message_Type::EMAIL => 'email',
// Message_Type::TWITTER => 'twitter'

'sms' => 'smssync',
'ivr' => false,
'email' => 'email',
'twitter' => 'twitter'
),
'providers' => array(
// List of data providers key=provider value=enabled
Expand Down
File renamed without changes
File renamed without changes.

0 comments on commit 2062e61

Please sign in to comment.