Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Code Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Jun 4, 2016
1 parent 3ca25dc commit 4f637f3
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Entities/Entity.php
Expand Up @@ -71,9 +71,9 @@ protected function initialize(array $fields)
/**
* @param string $field
* @param array $settings
* @return static
* @throws InvalidFieldTypeException
* @throws ReservedFieldNameException
* @return static
*/
protected function initializeField($field, $settings)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Fields/Date.php
Expand Up @@ -10,6 +10,6 @@
class Date extends Field
{
public $table = 'field_date';

//TODO :: treat date fields as such
}
1 change: 0 additions & 1 deletion src/Entities/Support/Laravel5/ServiceProvider.php
Expand Up @@ -2,7 +2,6 @@

use Illuminate\Support\Facades\Config;
use Rocket\Entities\Entity;
use Rocket\Entities\EntityManager;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
Expand Down
2 changes: 0 additions & 2 deletions src/Taxonomy/Term.php
Expand Up @@ -294,8 +294,6 @@ public function offsetGet($offset)
if (array_key_exists('lang_' . I18N::getCurrent(), $this->container)) {
return $this->container['lang_' . I18N::getCurrent()][$offset];
}

return;
}

/**
Expand Down
Expand Up @@ -39,7 +39,7 @@ class StoredProcedureWith extends Migration
*
* @var string
*/
protected static $PROCEDURE = <<<SQL
protected static $PROCEDURE = <<<'SQL'
DROP PROCEDURE IF EXISTS WITH_EMULATOR;
CREATE PROCEDURE WITH_EMULATOR(
recursive_table VARCHAR(100), # name of recursive table
Expand Down
6 changes: 3 additions & 3 deletions src/Translation/Bar/events.php
Expand Up @@ -75,7 +75,7 @@ function ($arg) {
} else {
//not translated
$final_strings .= "<div class='t_line string not $class' title='string_$string_id'>" .
$string[1]->text . "</div>";
$string[1]->text . '</div>';
}

$final_translations .= '<div id="string_' . $string_id . '" class="t_internal" style="display:none;">';
Expand All @@ -92,7 +92,7 @@ function ($arg) {
foreach ($string as $lid => $translation) {
$final_translations .= '<div class="t_line">';
$final_translations .= '<div class="t_title">' . t(
I18N::languages((int)$lid, 'name'),
I18N::languages((int) $lid, 'name'),
[],
'languages'
) . '</div>';
Expand All @@ -117,7 +117,7 @@ function ($arg) {
} else {
$final_strings .= "<div class=\"t_line string not\" title=\"taxonomy_$term[term_id]\">" .
$term[lang_fr][title] .
"</div>";
'</div>';
}

$final_translations .= "<div id='taxonomy_$term[term_id]' class='t_internal' style='display:none'>";
Expand Down
18 changes: 9 additions & 9 deletions tests/Entities/EntityManagerTest.php
Expand Up @@ -54,8 +54,8 @@ public function testSaveEntity()
$array = $demo->toArray();
$revision_id = $array['_revision']['id'];

$this->assertInternalType("int", $array['_content']['id']);
$this->assertInternalType("int", $revision_id);
$this->assertInternalType('int', $array['_content']['id']);
$this->assertInternalType('int', $revision_id);

$titles = $demo->getField('titles')->all();

Expand Down Expand Up @@ -88,8 +88,8 @@ public function testRetrieveEntity()

public function testUpdateEntity()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');

$language_id = Language::value('id');

//GIVEN :: a base entity
Expand All @@ -111,26 +111,26 @@ public function testUpdateEntity()

public function testCreateNewRevision()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');
}

public function testPublishOldRevision()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');
}

public function testUnpublishContent()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');
}

public function testDeleteRevision()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');
}

public function testDeleteContent()
{
$this->markTestSkipped("Not implemented yet");
$this->markTestSkipped('Not implemented yet');
}
}

0 comments on commit 4f637f3

Please sign in to comment.